45 .DataOUTPipeNumber = 1,
71 NVIC_SetPriority(TIMER1_IRQn, ((0x01 << 3) | 0x01));
73 NVIC_EnableIRQ(TIMER1_IRQn);
79 NVIC_DisableIRQ(TIMER1_IRQn);
104 #define USE_TEST_TONE
105 #if defined(__LPC175X_6X__) || defined(__LPC177X_8X__) || defined(__LPC407X_8X__) || defined(__LPC18XX__) || defined(__LPC43XX__)
112 #if defined(USE_TEST_TONE)
113 static uint8_t SquareWaveSampleCount;
114 static int16_t CurrentWaveValue;
117 if (SquareWaveSampleCount++ == 0xFF) {
118 CurrentWaveValue ^= 0x8000;
127 #if defined(MICROPHONE_BIASED_TO_HALF_RAIL)
152 DEBUGOUT(
"Audio Output Host Demo running.\r\n");
165 DEBUGOUT((
"Device Attached on port %d\r\n"), corenum);
173 DEBUGOUT((
"\r\nDevice Unattached on port %d\r\n"), corenum);
182 uint16_t ConfigDescriptorSize;
183 uint8_t ConfigDescriptorData[512];
187 DEBUGOUT(
"Error Retrieving Configuration Descriptor.\r\n");
195 DEBUGOUT(
"Attached Device Not a Valid Audio Output Device.\r\n");
201 DEBUGOUT(
"Error Setting Device Configuration.\r\n");
207 DEBUGOUT(
"Error Enabling Audio Stream.\r\n");
217 DEBUGOUT(
"Error Setting Audio Sampling Frequency.\r\n");
222 DEBUGOUT(
"Audio Device Enumerated.\r\n");
233 " -- Error port %d\r\n"
234 " -- Error Code %d\r\n" ), corenum, ErrorCode);
243 const uint8_t ErrorCode,
244 const uint8_t SubErrorCode)
247 " -- Error port %d\r\n"
248 " -- Error Code %d\r\n"
249 " -- Sub Error Code %d\r\n"
250 " -- In State %d\r\n" ),