Add request hook

main
noah metz 2025-05-27 19:39:19 -06:00
parent f0e1fadfd1
commit 92c5516d47
1 changed files with 9 additions and 2 deletions

@ -257,6 +257,14 @@ static const USBEndpointConfig ep2config = {
NULL
};
/*
* USB Request Hook
*/
static bool usb_request(USBDriver *usbp) {
(void)usbp;
return false;
}
/*
* Handles the USB driver global events.
*/
@ -293,7 +301,6 @@ static void usb_event(USBDriver *usbp, usbevent_t event) {
* Handles the USB driver global events.
*/
static void sof_handler(USBDriver *usbp) {
(void)usbp;
}
@ -303,6 +310,6 @@ static void sof_handler(USBDriver *usbp) {
const USBConfig usbcfg = {
usb_event,
get_descriptor,
NULL,
usb_request,
sof_handler
};