Added new incomplete AudioOutputHost Host LowLevel demo.
This commit is contained in:
parent
2a26efc691
commit
68468e0aea
12 changed files with 1351 additions and 8 deletions
|
|
@ -43,7 +43,7 @@ int main(void)
|
|||
{
|
||||
SetupHardware();
|
||||
|
||||
puts_P(PSTR(ESC_FG_CYAN "Audio Host Demo running.\r\n" ESC_FG_WHITE));
|
||||
puts_P(PSTR(ESC_FG_CYAN "Audio Input Host Demo running.\r\n" ESC_FG_WHITE));
|
||||
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
|
||||
sei();
|
||||
|
|
@ -208,7 +208,7 @@ void Audio_Task(void)
|
|||
|
||||
/* Sample reload timer initialization */
|
||||
TIMSK0 = (1 << OCIE0A);
|
||||
OCR0A = ((F_CPU / 8 / 8000) - 1);
|
||||
OCR0A = ((F_CPU / 8 / 48000) - 1);
|
||||
TCCR0A = (1 << WGM01); // CTC mode
|
||||
TCCR0B = (1 << CS01); // Fcpu/8 speed
|
||||
|
||||
|
|
|
|||
|
|
@ -30,11 +30,11 @@
|
|||
|
||||
/** \file
|
||||
*
|
||||
* Header file for AudioHost.c.
|
||||
* Header file for AudioInputHost.c.
|
||||
*/
|
||||
|
||||
#ifndef _AUDIO_HOST_H_
|
||||
#define _AUDIO_HOST_H_
|
||||
#ifndef _AUDIO_INPUT_HOST_H_
|
||||
#define _AUDIO_INPUT_HOST_H_
|
||||
|
||||
/* Includes: */
|
||||
#include <avr/io.h>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -120,7 +120,7 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
/* Retrieve the endpoint address from the endpoint descriptor */
|
||||
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t);
|
||||
|
||||
/* If the endpoint is a IN type endpoint */
|
||||
/* Save the endpoint if it is an IN type endpoint */
|
||||
if (EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR_DIR_IN)
|
||||
DataINEndpoint = EndpointData;
|
||||
}
|
||||
|
|
@ -129,7 +129,7 @@ uint8_t ProcessConfigurationDescriptor(void)
|
|||
StreamingInterfaceAltSetting = AudioStreamingInterface->AlternateSetting;
|
||||
StreamingEndpointAddress = DataINEndpoint->EndpointAddress;
|
||||
|
||||
/* Configure the HID data IN pipe */
|
||||
/* Configure the Audio data IN pipe */
|
||||
Pipe_ConfigurePipe(AUDIO_DATA_IN_PIPE, EP_TYPE_ISOCHRONOUS, PIPE_TOKEN_IN,
|
||||
DataINEndpoint->EndpointAddress, DataINEndpoint->EndpointSize, PIPE_BANK_DOUBLE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue