diff options
author | Dean Camera <[email protected]> | 2011-06-09 04:08:03 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2011-06-09 04:08:03 +0000 |
commit | 1f1d0710f379a8b08ef646cbadb63d92c35e47fb (patch) | |
tree | 886a528a8ba721733735c1cded2462e6992e11f6 /Demos/Device/ClassDriver/AudioOutput | |
parent | 0bf5064aec5ac43ba2b25d44528bebb27db2f117 (diff) | |
download | qmk_firmware-1f1d0710f379a8b08ef646cbadb63d92c35e47fb.tar.gz qmk_firmware-1f1d0710f379a8b08ef646cbadb63d92c35e47fb.zip |
Add new Audio Class Driver Host demos.
Fix errors in the new Audio Host mode Class Driver, which would have prevented data from being sent or received properly by the device.
Add microphone/square wave generation compile time switch to the Low Level AudioOutput Host demo.
Diffstat (limited to 'Demos/Device/ClassDriver/AudioOutput')
-rw-r--r-- | Demos/Device/ClassDriver/AudioOutput/AudioOutput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c index f1d6060706..a1125d62fe 100644 --- a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c +++ b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c @@ -91,7 +91,8 @@ void SetupHardware(void) ISR(TIMER0_COMPA_vect, ISR_BLOCK) { uint8_t PrevEndpoint = Endpoint_GetCurrentEndpoint(); - + + /* Check that the USB bus is ready for the next sample to read */ if (Audio_Device_IsSampleReceived(&Speaker_Audio_Interface)) { /* Retrieve the signed 16-bit left and right audio samples, convert to 8-bit */ |