X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/9991321321d30ca9383d795ea7e796098c92045f..ee7bd5685e000b3a128069fd75d436c653ab54b2:/Demos/AudioOutput/AudioOutput.c diff --git a/Demos/AudioOutput/AudioOutput.c b/Demos/AudioOutput/AudioOutput.c index 184910e81..0f390f001 100644 --- a/Demos/AudioOutput/AudioOutput.c +++ b/Demos/AudioOutput/AudioOutput.c @@ -34,13 +34,6 @@ * is responsible for the initial application hardware configuration. */ -/* --- Project Configuration (Choose ONE) --- */ -//#define AUDIO_OUT_MONO -#define AUDIO_OUT_STEREO -//#define AUDIO_OUT_LEDS -//#define AUDIO_OUT_PORTC -/* --- --- --- --- --- --- --- --- --- --- --- */ - #include "AudioOutput.h" /* Project Tags, for reading out using the ButtLoad project */ @@ -66,8 +59,8 @@ int main(void) MCUSR &= ~(1 << WDRF); wdt_disable(); - /* Disable Clock Division */ - SetSystemClockPrescaler(0); + /* Disable clock division */ + clock_prescale_set(clock_div_1); /* Hardware Initialization */ LEDs_Init(); @@ -193,7 +186,8 @@ EVENT_HANDLER(USB_UnhandledControlPacket) Scheduler_SetTaskMode(USB_Audio_Task, TASK_STOP); } - /* Handshake the request */ + /* Acknowledge status stage */ + while (!(Endpoint_IsSetupINReady())); Endpoint_ClearSetupIN(); } @@ -249,7 +243,7 @@ TASK(USB_Audio_Task) /* Check to see if the bank is now empty */ if (!(Endpoint_ReadWriteAllowed())) { - /* Acknowedge the packet, clear the bank ready for the next packet */ + /* Acknowledge the packet, clear the bank ready for the next packet */ Endpoint_ClearCurrentBank(); }