Add branch for the conversion of demos to use standard C header files for configuration, rather than makefile defined macros.
This commit is contained in:
parent
e8570c4a37
commit
359fbfe14d
395 changed files with 9912 additions and 2756 deletions
|
@ -44,7 +44,10 @@ USB_ClassInfo_Audio_Host_t Speaker_Audio_Interface =
|
|||
{
|
||||
.Config =
|
||||
{
|
||||
.DataOUTPipeNumber = 1,
|
||||
.DataOUTPipe =
|
||||
{
|
||||
.Address = (PIPE_DIR_OUT | 2),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -187,7 +190,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
|
|||
}
|
||||
|
||||
USB_Audio_SampleFreq_t SampleRate = AUDIO_SAMPLE_FREQ(48000);
|
||||
if (Audio_Host_GetSetEndpointProperty(&Speaker_Audio_Interface, Speaker_Audio_Interface.Config.DataOUTPipeNumber,
|
||||
if (Audio_Host_GetSetEndpointProperty(&Speaker_Audio_Interface, Speaker_Audio_Interface.Config.DataOUTPipe.Address,
|
||||
AUDIO_REQ_SetCurrent, AUDIO_EPCONTROL_SamplingFreq,
|
||||
sizeof(SampleRate), &SampleRate) != HOST_SENDCONTROL_Successful)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue