- /*
- * Populate WAVEDATA.
- *
- * This is the basic algorithm implemented in our GPIF state machine:
- *
- * State 0: NDP: Delay for a period of time.
- * State 1: DP: If EP2 is full, go to state 7 (the IDLE state), i.e.,
- * end the current waveform. Otherwise, sample data and go to
- * state 0 again, i.e., sample data until EP2 is full.
- * State 2: Unused.
- * State 3: Unused.
- * State 4: Unused.
- * State 5: Unused.
- * State 6: Unused.
- */
+ for(i = 0; i < cmd->sample_delay_h; i++)
+ gpif_make_delay_state(pSTATE++, 0);