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.
This commit is contained in:
parent
0bf5064aec
commit
1f1d0710f3
16 changed files with 5306 additions and 23 deletions
|
@ -98,7 +98,7 @@ ISR(TIMER0_COMPA_vect, ISR_BLOCK)
|
|||
{
|
||||
uint8_t PrevEndpoint = Endpoint_GetCurrentEndpoint();
|
||||
|
||||
/* Check if the sample reload timer period has elapsed, and that the USB bus is ready for a new sample */
|
||||
/* Check that the USB bus is ready for the next sample to write */
|
||||
if (Audio_Device_IsReadyForNextSample(&Microphone_Audio_Interface))
|
||||
{
|
||||
int16_t AudioSample;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue