Decouple USB events from the USB interrupt handler. (#10437)

This commit is contained in:
Nick Brassel
2021-02-01 08:19:00 +11:00
committed by GitHub
parent 0fa2e7c790
commit db11a2a1fd
3 changed files with 80 additions and 9 deletions

View File

@ -37,6 +37,17 @@ void init_usb_driver(USBDriver *usbp);
/* Restart the USB driver and bus */
void restart_usb_driver(USBDriver *usbp);
/* ---------------
* USB Event queue
* ---------------
*/
/* Initialisation of the FIFO */
void usb_event_queue_init(void);
/* Task to dequeue and execute any handlers for the USB events on the main thread */
void usb_event_queue_task(void);
/* ---------------
* Keyboard header
* ---------------