41 .DataOUTPipeNumber = 1,
51 DEBUGOUT(
"Audio Output Host Demo running.\r\n");
61 #if defined(__LPC17XX__) || defined(__LPC177X_8X__) || defined(__LPC18XX__) || defined(__LPC43XX__)
68 #if defined(USE_TEST_TONE)
69 static uint8_t SquareWaveSampleCount;
70 static int16_t CurrentWaveValue;
73 if (SquareWaveSampleCount++ == 0xFF) {
74 CurrentWaveValue ^= 0x8000;
83 #if defined(MICROPHONE_BIASED_TO_HALF_RAIL)
112 NVIC_SetPriority(TIMER1_IRQn, ((0x01 << 3) | 0x01));
114 NVIC_EnableIRQ(TIMER1_IRQn);
120 NVIC_DisableIRQ(TIMER1_IRQn);
143 DEBUGOUT((
"Device Attached on port %d\r\n"), corenum);
152 DEBUGOUT((
"\r\nDevice Unattached on port %d\r\n"), corenum);
164 uint16_t ConfigDescriptorSize;
165 uint8_t ConfigDescriptorData[512];
169 DEBUGOUT(
"Error Retrieving Configuration Descriptor.\r\n");
177 DEBUGOUT(
"Attached Device Not a Valid Audio Output Device.\r\n");
183 DEBUGOUT(
"Error Setting Device Configuration.\r\n");
189 DEBUGOUT(
"Error Enabling Audio Stream.\r\n");
199 DEBUGOUT(
"Error Setting Audio Sampling Frequency.\r\n");
204 DEBUGOUT(
"Audio Device Enumerated.\r\n");
215 " -- Error port %d\r\n"
216 " -- Error Code %d\r\n" ), corenum, ErrorCode);
226 const uint8_t ErrorCode,
227 const uint8_t SubErrorCode)
230 " -- Error port %d\r\n"
231 " -- Error Code %d\r\n"
232 " -- Sub Error Code %d\r\n"
233 " -- In State %d\r\n" ),