From 1f1d0710f379a8b08ef646cbadb63d92c35e47fb Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 9 Jun 2011 04:08:03 +0000 Subject: 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. --- Demos/Device/ClassDriver/AudioOutput/AudioOutput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Demos/Device/ClassDriver/AudioOutput') diff --git a/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c b/Demos/Device/ClassDriver/AudioOutput/AudioOutput.c index f1d606070..a1125d62f 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 */ -- cgit v1.2.3