forked from PAWPAW-Mirror/lib_xua
Added default implementation of VendorRequests_Init (sandbox build fail)
This commit is contained in:
@@ -198,15 +198,6 @@ const unsigned g_chanCount_In_HS[INPUT_FORMAT_COUNT] = {HS_STREAM_FORMAT_I
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef VENDOR_REQUESTS_PARAMS_DEC
|
|
||||||
#define VENDOR_REQUESTS_PARAMS_DEC
|
|
||||||
#endif
|
|
||||||
#ifndef VENDOR_REQUESTS_PARAMS
|
|
||||||
#define VENDOR_REQUESTS_PARAMS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void VendorRequests_Init(VENDOR_REQUESTS_PARAMS_DEC);
|
|
||||||
|
|
||||||
/* Endpoint 0 function. Handles all requests to the device */
|
/* Endpoint 0 function. Handles all requests to the device */
|
||||||
void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
void 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_)
|
chanend c_mix_ctl, chanend c_clk_ctl, chanend c_EANativeTransport_ctrl, CLIENT_INTERFACE(i_dfu, dfuInterface) VENDOR_REQUESTS_PARAMS_DEC_)
|
||||||
|
|||||||
@@ -24,3 +24,10 @@ int VendorRequests(XUD_ep ep0_out, XUD_ep ep0_in, REFERENCE_PARAM(USB_SetupPack
|
|||||||
return XUD_RES_ERR;
|
return XUD_RES_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VendorRequests_Init(VENDOR_REQUESTS_PARAMS_DEC) __attribute__ ((weak));
|
||||||
|
|
||||||
|
void VendorRequests_Init(VENDOR_REQUESTS_PARAMS_DEC)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,13 @@
|
|||||||
#define VENDOR_REQUESTS_PARAMS_DEC_ PREPEND_COMMA(VENDOR_REQUESTS_PARAMS_DEC)
|
#define VENDOR_REQUESTS_PARAMS_DEC_ PREPEND_COMMA(VENDOR_REQUESTS_PARAMS_DEC)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef VENDOR_REQUESTS_PARAMS_DEC
|
||||||
|
#define VENDOR_REQUESTS_PARAMS_DEC
|
||||||
|
#endif
|
||||||
|
#ifndef VENDOR_REQUESTS_PARAMS
|
||||||
|
#define VENDOR_REQUESTS_PARAMS
|
||||||
|
#endif
|
||||||
|
|
||||||
int VendorAudioRequests(XUD_ep ep0_out, XUD_ep ep0_in, unsigned char bRequest, unsigned char cs, unsigned char cn,
|
int VendorAudioRequests(XUD_ep ep0_out, XUD_ep ep0_in, unsigned char bRequest, unsigned char cs, unsigned char cn,
|
||||||
unsigned short unitId, unsigned char direction, chanend c_audioControl,
|
unsigned short unitId, unsigned char direction, chanend c_audioControl,
|
||||||
NULLABLE_RESOURCE(chanend, c_mix_ctl),
|
NULLABLE_RESOURCE(chanend, c_mix_ctl),
|
||||||
@@ -32,6 +39,7 @@ int VendorAudioRequests(XUD_ep ep0_out, XUD_ep ep0_in, unsigned char bRequest, u
|
|||||||
|
|
||||||
int VendorRequests(XUD_ep ep0_out, XUD_ep ep0_in, REFERENCE_PARAM(USB_SetupPacket_t, sp) VENDOR_REQUESTS_PARAMS_DEC_);
|
int VendorRequests(XUD_ep ep0_out, XUD_ep ep0_in, REFERENCE_PARAM(USB_SetupPacket_t, sp) VENDOR_REQUESTS_PARAMS_DEC_);
|
||||||
|
|
||||||
|
void VendorRequests_Init(VENDOR_REQUESTS_PARAMS_DEC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user