* is responsible for the initial application hardware configuration.\r
*/\r
\r
-/* --- Project Configuration (Choose ONE) --- */\r
-//#define AUDIO_OUT_MONO\r
-#define AUDIO_OUT_STEREO\r
-//#define AUDIO_OUT_LEDS\r
-//#define AUDIO_OUT_PORTC\r
-/* --- --- --- --- --- --- --- --- --- --- --- */\r
-\r
#include "AudioOutput.h"\r
\r
/* Project Tags, for reading out using the ButtLoad project */\r
MCUSR &= ~(1 << WDRF);\r
wdt_disable();\r
\r
- /* Disable Clock Division */\r
- SetSystemClockPrescaler(0);\r
+ /* Disable clock division */\r
+ clock_prescale_set(clock_div_1);\r
\r
/* Hardware Initialization */\r
LEDs_Init();\r
Scheduler_SetTaskMode(USB_Audio_Task, TASK_STOP); \r
}\r
\r
- /* Handshake the request */\r
+ /* Acknowledge status stage */\r
+ while (!(Endpoint_IsSetupINReady()));\r
Endpoint_ClearSetupIN();\r
}\r
\r
/* Check to see if the bank is now empty */\r
if (!(Endpoint_ReadWriteAllowed()))\r
{\r
- /* Acknowedge the packet, clear the bank ready for the next packet */\r
+ /* Acknowledge the packet, clear the bank ready for the next packet */\r
Endpoint_ClearCurrentBank();\r
}\r
\r