forked from PAWPAW-Mirror/lib_xua
Remove XUA_Endpoint0_lite_init() and XUA_Endpoint0_lite_loop() functions which are not used.
This commit is contained in:
@@ -302,31 +302,6 @@ void XUA_Endpoint0_init(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioCont
|
||||
|
||||
}
|
||||
|
||||
void XUA_Endpoint0_lite_init(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
chanend c_mix_ctl, chanend c_clk_ctl, chanend c_EANativeTransport_ctrl, CLIENT_INTERFACE(i_dfu, dfuInterface) VENDOR_REQUESTS_PARAMS_DEC_)
|
||||
{
|
||||
ep0_out = XUD_InitEp(c_ep0_out);
|
||||
ep0_in = XUD_InitEp(c_ep0_in);
|
||||
|
||||
VendorRequests_Init(VENDOR_REQUESTS_PARAMS);
|
||||
|
||||
#ifdef VENDOR_AUDIO_REQS
|
||||
VendorAudioRequestsInit(c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
#endif
|
||||
|
||||
#if (XUA_DFU_EN == 1)
|
||||
/* Check if device has started in DFU mode */
|
||||
if (DFUReportResetState(null))
|
||||
{
|
||||
/* Stop audio */
|
||||
outuint(c_audioControl, SET_SAMPLE_FREQ);
|
||||
outuint(c_audioControl, AUDIO_STOP_FOR_DFU);
|
||||
/* No Handshake */
|
||||
DFU_mode_active = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void XUA_Endpoint0_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
chanend c_mix_ctl, chanend c_clk_ctl, chanend c_EANativeTransport_ctrl, CLIENT_INTERFACE(i_dfu, dfuInterface) VENDOR_REQUESTS_PARAMS_DEC_)
|
||||
{
|
||||
@@ -861,392 +836,6 @@ void XUA_Endpoint0_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend c_ep0
|
||||
}
|
||||
}
|
||||
|
||||
void XUA_Endpoint0_lite_loop(XUD_Result_t result, USB_SetupPacket_t sp, chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
chanend c_mix_ctl, chanend c_clk_ctl, chanend c_EANativeTransport_ctrl, CLIENT_INTERFACE(i_dfu, dfuInterface) VENDOR_REQUESTS_PARAMS_DEC_
|
||||
, unsigned *input_interface_num, unsigned *output_interface_num)
|
||||
{
|
||||
if (result == XUD_RES_OKAY)
|
||||
{
|
||||
result = XUD_RES_ERR;
|
||||
|
||||
/* Inspect Request type and Receipient and direction */
|
||||
switch( (sp.bmRequestType.Direction << 7) | (sp.bmRequestType.Recipient ) | (sp.bmRequestType.Type << 5) )
|
||||
{
|
||||
case USB_BMREQ_H2D_STANDARD_INT:
|
||||
|
||||
/* Over-riding USB_StandardRequests implementation */
|
||||
if(sp.bRequest == USB_SET_INTERFACE)
|
||||
{
|
||||
switch (sp.wIndex)
|
||||
{
|
||||
/* Check for audio stream from host start/stop */
|
||||
#if (NUM_USB_CHAN_OUT > 0)
|
||||
case INTERFACE_NUMBER_AUDIO_OUTPUT:
|
||||
*output_interface_num = sp.wValue;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if (NUM_USB_CHAN_IN > 0)
|
||||
case INTERFACE_NUMBER_AUDIO_INPUT:
|
||||
*input_interface_num = sp.wValue;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
/* Unhandled interface */
|
||||
break;
|
||||
}
|
||||
} /* if(sp.bRequest == SET_INTERFACE) */
|
||||
|
||||
break; /* BMREQ_H2D_STANDARD_INT */
|
||||
|
||||
case USB_BMREQ_D2H_STANDARD_INT:
|
||||
|
||||
switch(sp.bRequest)
|
||||
{
|
||||
#if( 0 < HID_CONTROLS )
|
||||
case USB_GET_DESCRIPTOR:
|
||||
|
||||
/* Check what inteface request is for */
|
||||
if(sp.wIndex == INTERFACE_NUMBER_HID)
|
||||
{
|
||||
/* High byte of wValue is descriptor type */
|
||||
unsigned descriptorType = sp.wValue & 0xff00;
|
||||
|
||||
switch (descriptorType)
|
||||
{
|
||||
case HID_HID:
|
||||
/* Return HID Descriptor */
|
||||
result = XUD_DoGetRequest(ep0_out, ep0_in, hidDescriptor,
|
||||
sizeof(hidDescriptor), sp.wLength);
|
||||
break;
|
||||
case HID_REPORT:
|
||||
/* Return HID report descriptor */
|
||||
result = XUD_DoGetRequest(ep0_out, ep0_in, hidReportDescriptor,
|
||||
sizeof(hidReportDescriptor), sp.wLength);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
/* Recipient: Device */
|
||||
case USB_BMREQ_H2D_STANDARD_DEV:
|
||||
|
||||
/* Inspect for actual request */
|
||||
switch( sp.bRequest )
|
||||
{
|
||||
/* Standard request: SetConfiguration */
|
||||
/* Overriding implementation in USB_StandardRequests */
|
||||
case USB_SET_CONFIGURATION:
|
||||
|
||||
//if(g_current_config == 1)
|
||||
{
|
||||
/* Consider host active with valid driver at this point */
|
||||
UserHostActive(1);
|
||||
}
|
||||
|
||||
/* We want to run USB_StandardsRequests() implementation also. Don't modify result
|
||||
* and don't call XUD_DoSetRequestStatus() */
|
||||
break;
|
||||
|
||||
default:
|
||||
//Unknown device request"
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
/* Audio Class 1.0 Sampling Freqency Requests go to Endpoint */
|
||||
case USB_BMREQ_H2D_CLASS_EP:
|
||||
case USB_BMREQ_D2H_CLASS_EP:
|
||||
{
|
||||
unsigned epNum = sp.wIndex & 0xff;
|
||||
|
||||
if ((epNum == ENDPOINT_ADDRESS_OUT_AUDIO) || (epNum == ENDPOINT_ADDRESS_IN_AUDIO))
|
||||
{
|
||||
#if (AUDIO_CLASS == 2) && (AUDIO_CLASS_FALLBACK)
|
||||
if(g_curUsbSpeed == XUD_SPEED_FS)
|
||||
{
|
||||
result = AudioEndpointRequests_1(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
}
|
||||
#elif (AUDIO_CLASS==1)
|
||||
result = AudioEndpointRequests_1(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case USB_BMREQ_H2D_CLASS_INT:
|
||||
case USB_BMREQ_D2H_CLASS_INT:
|
||||
{
|
||||
unsigned interfaceNum = sp.wIndex & 0xff;
|
||||
//unsigned request = (sp.bmRequestType.Recipient ) | (sp.bmRequestType.Type << 5);
|
||||
|
||||
/* TODO Check on return value retval = */
|
||||
#if (XUA_DFU_EN == 1)
|
||||
unsigned DFU_IF = INTERFACE_NUMBER_DFU;
|
||||
|
||||
/* DFU interface number changes based on which mode we are currently running in */
|
||||
if (DFU_mode_active)
|
||||
{
|
||||
DFU_IF = 0;
|
||||
}
|
||||
|
||||
if (interfaceNum == DFU_IF)
|
||||
{
|
||||
int reset = 0;
|
||||
|
||||
/* If running in application mode stop audio */
|
||||
/* Don't interupt audio for save and restore cmds */
|
||||
if ((DFU_IF == INTERFACE_NUMBER_DFU) && (sp.bRequest != XMOS_DFU_SAVESTATE) &&
|
||||
(sp.bRequest != XMOS_DFU_RESTORESTATE))
|
||||
{
|
||||
// Stop audio
|
||||
outuint(c_audioControl, SET_SAMPLE_FREQ);
|
||||
outuint(c_audioControl, AUDIO_STOP_FOR_DFU);
|
||||
// Handshake
|
||||
chkct(c_audioControl, XS1_CT_END);
|
||||
}
|
||||
|
||||
/* This will return 1 if reset requested */
|
||||
result = DFUDeviceRequests(ep0_out, &ep0_in, &sp, null, g_interfaceAlt[sp.wIndex], dfuInterface, &reset);
|
||||
|
||||
if(reset)
|
||||
{
|
||||
DFUDelay(50000000);
|
||||
device_reboot();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if( 0 < HID_CONTROLS )
|
||||
if (interfaceNum == INTERFACE_NUMBER_HID)
|
||||
{
|
||||
result = HidInterfaceClassRequests(ep0_out, ep0_in, &sp);
|
||||
}
|
||||
#endif
|
||||
/* Check for: - Audio CONTROL interface request - always 0, note we check for DFU first
|
||||
* - Audio STREAMING interface request (In or Out)
|
||||
* - Audio endpoint request (Audio 1.0 Sampling freq requests are sent to the endpoint)
|
||||
*/
|
||||
if(((interfaceNum == 0) || (interfaceNum == 1) || (interfaceNum == 2))
|
||||
&& result == XUD_RES_ERR
|
||||
#if (XUA_DFU_EN == 1)
|
||||
&& !DFU_mode_active
|
||||
#endif
|
||||
)
|
||||
{
|
||||
#if (AUDIO_CLASS == 2) && (AUDIO_CLASS_FALLBACK)
|
||||
if(g_curUsbSpeed == XUD_SPEED_HS)
|
||||
{
|
||||
result = AudioClassRequests_2(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = AudioClassRequests_1(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
}
|
||||
#elif (AUDIO_CLASS==2)
|
||||
result = AudioClassRequests_2(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
#else
|
||||
result = AudioClassRequests_1(ep0_out, ep0_in, &sp, c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
#endif
|
||||
|
||||
#ifdef VENDOR_AUDIO_REQS
|
||||
/* If result is ERR at this point, then request to audio interface not handled - handle vendor audio reqs */
|
||||
if(result == XUD_RES_ERR)
|
||||
{
|
||||
result = VendorAudioRequests(ep0_out, ep0_in, sp.bRequest,
|
||||
sp.wValue >> 8, sp.wValue & 0xff,
|
||||
sp.wIndex >> 8, sp.bmRequestType.Direction,
|
||||
c_audioControl, c_mix_ctl, c_clk_ctl);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
} /* if(result == XUD_RES_OKAY) */
|
||||
|
||||
{
|
||||
if(result == XUD_RES_ERR)
|
||||
{
|
||||
/* Run vendor defined parsing/processing */
|
||||
/* Note, an interface might seem ideal here but this *must* be executed on the same
|
||||
* core sure to shared memory depandancy */
|
||||
result = VendorRequests(ep0_out, ep0_in, &sp VENDOR_REQUESTS_PARAMS_);
|
||||
}
|
||||
}
|
||||
|
||||
if(result == XUD_RES_ERR)
|
||||
{
|
||||
#if (XUA_DFU_EN == 1)
|
||||
if (!DFU_mode_active)
|
||||
{
|
||||
#endif
|
||||
#if (AUDIO_CLASS_FALLBACK) && (AUDIO_CLASS != 1)
|
||||
/* Return Audio 2.0 Descriptors with Audio 1.0 as fallback */
|
||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),
|
||||
(unsigned char*)&cfgDesc_Audio2, sizeof(cfgDesc_Audio2),
|
||||
(unsigned char*)&devDesc_Audio1, sizeof(devDesc_Audio1),
|
||||
cfgDesc_Audio1, sizeof(cfgDesc_Audio1),
|
||||
(char**)&g_strTable, sizeof(g_strTable)/sizeof(char *),
|
||||
&sp, g_curUsbSpeed);
|
||||
#elif FULL_SPEED_AUDIO_2
|
||||
/* Return Audio 2.0 Descriptors for high_speed and full-speed */
|
||||
|
||||
/* Unfortunately we need to munge the descriptors a bit between full and high-speed */
|
||||
if(g_curUsbSpeed == XUD_SPEED_HS)
|
||||
{
|
||||
/* Modify Audio Class 2.0 Config descriptor for High-speed operation */
|
||||
#if (NUM_USB_CHAN_OUT > 0)
|
||||
cfgDesc_Audio2.Audio_CS_Control_Int.Audio_Out_InputTerminal.bNrChannels = NUM_USB_CHAN_OUT;
|
||||
#if (NUM_USB_CHAN_OUT > 0)
|
||||
cfgDesc_Audio2.Audio_Out_Format.bSubslotSize = HS_STREAM_FORMAT_OUTPUT_1_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format.bBitResolution = HS_STREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint.wMaxPacketSize = HS_STREAM_FORMAT_OUTPUT_1_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface.bNrChannels = NUM_USB_CHAN_OUT;
|
||||
#endif
|
||||
#if (OUTPUT_FORMAT_COUNT > 1)
|
||||
cfgDesc_Audio2.Audio_Out_Format_2.bSubslotSize = HS_STREAM_FORMAT_OUTPUT_2_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format_2.bBitResolution = HS_STREAM_FORMAT_OUTPUT_2_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint_2.wMaxPacketSize = HS_STREAM_FORMAT_OUTPUT_2_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface_2.bNrChannels = NUM_USB_CHAN_OUT;
|
||||
#endif
|
||||
|
||||
#if (OUTPUT_FORMAT_COUNT > 2)
|
||||
cfgDesc_Audio2.Audio_Out_Format_3.bSubslotSize = HS_STREAM_FORMAT_OUTPUT_3_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format_3.bBitResolution = HS_STREAM_FORMAT_OUTPUT_3_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint_3.wMaxPacketSize = HS_STREAM_FORMAT_OUTPUT_3_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface_3.bNrChannels = NUM_USB_CHAN_OUT;
|
||||
#endif
|
||||
#endif
|
||||
#if (NUM_USB_CHAN_IN > 0)
|
||||
cfgDesc_Audio2.Audio_CS_Control_Int.Audio_In_InputTerminal.bNrChannels = NUM_USB_CHAN_IN;
|
||||
cfgDesc_Audio2.Audio_In_Format.bSubslotSize = HS_STREAM_FORMAT_INPUT_1_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_In_Format.bBitResolution = HS_STREAM_FORMAT_INPUT_1_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_In_Endpoint.wMaxPacketSize = HS_STREAM_FORMAT_INPUT_1_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_In_ClassStreamInterface.bNrChannels = NUM_USB_CHAN_IN;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Modify Audio Class 2.0 Config descriptor for Full-speed operation */
|
||||
#if (NUM_USB_CHAN_OUT > 0)
|
||||
cfgDesc_Audio2.Audio_CS_Control_Int.Audio_Out_InputTerminal.bNrChannels = NUM_USB_CHAN_OUT_FS;
|
||||
#if (NUM_USB_CHAN_OUT > 0)
|
||||
cfgDesc_Audio2.Audio_Out_Format.bSubslotSize = FS_STREAM_FORMAT_OUTPUT_1_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format.bBitResolution = FS_STREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint.wMaxPacketSize = FS_STREAM_FORMAT_OUTPUT_1_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface.bNrChannels = NUM_USB_CHAN_OUT_FS;
|
||||
#endif
|
||||
#if (OUTPUT_FORMAT_COUNT > 1)
|
||||
cfgDesc_Audio2.Audio_Out_Format_2.bSubslotSize = FS_STREAM_FORMAT_OUTPUT_2_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format_2.bBitResolution = FS_STREAM_FORMAT_OUTPUT_2_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint_2.wMaxPacketSize = FS_STREAM_FORMAT_OUTPUT_2_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface_2.bNrChannels = NUM_USB_CHAN_OUT_FS;
|
||||
#endif
|
||||
|
||||
#if (OUTPUT_FORMAT_COUNT > 2)
|
||||
cfgDesc_Audio2.Audio_Out_Format_3.bSubslotSize = FS_STREAM_FORMAT_OUTPUT_3_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_Out_Format_3.bBitResolution = FS_STREAM_FORMAT_OUTPUT_3_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_Out_Endpoint_3.wMaxPacketSize = FS_STREAM_FORMAT_OUTPUT_3_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_Out_ClassStreamInterface_3.bNrChannels = NUM_USB_CHAN_OUT_FS;
|
||||
#endif
|
||||
#endif
|
||||
#if (NUM_USB_CHAN_IN > 0)
|
||||
cfgDesc_Audio2.Audio_CS_Control_Int.Audio_In_InputTerminal.bNrChannels = NUM_USB_CHAN_IN_FS;
|
||||
cfgDesc_Audio2.Audio_In_Format.bSubslotSize = FS_STREAM_FORMAT_INPUT_1_SUBSLOT_BYTES;
|
||||
cfgDesc_Audio2.Audio_In_Format.bBitResolution = FS_STREAM_FORMAT_INPUT_1_RESOLUTION_BITS;
|
||||
cfgDesc_Audio2.Audio_In_Endpoint.wMaxPacketSize = FS_STREAM_FORMAT_INPUT_1_MAXPACKETSIZE;
|
||||
cfgDesc_Audio2.Audio_In_ClassStreamInterface.bNrChannels = NUM_USB_CHAN_IN_FS;
|
||||
#endif
|
||||
}
|
||||
|
||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),
|
||||
(unsigned char*)&cfgDesc_Audio2, sizeof(cfgDesc_Audio2),
|
||||
null, 0,
|
||||
null, 0,
|
||||
#ifdef __XC__
|
||||
g_strTable, sizeof(g_strTable), sp, null, g_curUsbSpeed);
|
||||
#else
|
||||
(char**)&g_strTable, sizeof(g_strTable)/sizeof(char *), &sp, g_curUsbSpeed);
|
||||
#endif
|
||||
#elif (AUDIO_CLASS == 1)
|
||||
/* Return Audio 1.0 Descriptors in FS, should never be in HS! */
|
||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||
null, 0,
|
||||
null, 0,
|
||||
(unsigned char*)&devDesc_Audio1, sizeof(devDesc_Audio1),
|
||||
cfgDesc_Audio1, sizeof(cfgDesc_Audio1),
|
||||
(char**)&g_strTable, sizeof(g_strTable)/sizeof(char *), &sp, g_curUsbSpeed);
|
||||
#else
|
||||
/* Return Audio 2.0 Descriptors with Null device as fallback */
|
||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||
(unsigned char*)&devDesc_Audio2, sizeof(devDesc_Audio2),
|
||||
(unsigned char*)&cfgDesc_Audio2, sizeof(cfgDesc_Audio2),
|
||||
devDesc_Null, sizeof(devDesc_Null),
|
||||
cfgDesc_Null, sizeof(cfgDesc_Null),
|
||||
(char**)&g_strTable, sizeof(g_strTable)/sizeof(char *), &sp, g_curUsbSpeed);
|
||||
#endif
|
||||
#if (XUA_DFU_EN == 1)
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
/* Running in DFU mode - always return same descs for DFU whether HS or FS */
|
||||
result = USB_StandardRequests(ep0_out, ep0_in,
|
||||
DFUdevDesc, sizeof(DFUdevDesc),
|
||||
DFUcfgDesc, sizeof(DFUcfgDesc),
|
||||
null, 0, /* Used same descriptors for full and high-speed */
|
||||
null, 0,
|
||||
(char**)&g_strTable, sizeof(g_strTable)/sizeof(char *), &sp, g_curUsbSpeed);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (result == XUD_RES_RST)
|
||||
{
|
||||
#ifdef __XC__
|
||||
g_curUsbSpeed = XUD_ResetEndpoint(ep0_out, ep0_in);
|
||||
#else
|
||||
g_curUsbSpeed = XUD_ResetEndpoint(ep0_out, &ep0_in);
|
||||
#endif
|
||||
g_currentConfig = 0;
|
||||
g_curStreamAlt_Out = 0;
|
||||
g_curStreamAlt_In = 0;
|
||||
|
||||
#if (XUA_DFU_EN == 1)
|
||||
if (DFUReportResetState(null))
|
||||
{
|
||||
if (!DFU_mode_active)
|
||||
{
|
||||
DFU_mode_active = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DFU_mode_active)
|
||||
{
|
||||
DFU_mode_active = 0;
|
||||
|
||||
/* Send reboot command */
|
||||
DFUDelay(5000000);
|
||||
device_reboot();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/* Endpoint 0 function. Handles all requests to the device */
|
||||
void XUA_Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
||||
chanend c_mix_ctl, chanend c_clk_ctl, chanend c_EANativeTransport_ctrl, CLIENT_INTERFACE(i_dfu, dfuInterface) VENDOR_REQUESTS_PARAMS_DEC_)
|
||||
|
||||
Reference in New Issue
Block a user