diff options
author | Nick Brassel <nick@tzarc.org> | 2021-02-01 08:19:00 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 08:19:00 +1100 |
commit | db11a2a1fd7a7ff9c458e8ec9e963a61a1192bf3 (patch) | |
tree | 982396d6fcaeb2c6aa3a8fa5580ad9c0bbcaf7fa /tmk_core/protocol/chibios/usb_main.h | |
parent | 0fa2e7c790c4b4fcb318479a4951bfd33fd3862f (diff) |
Decouple USB events from the USB interrupt handler. (#10437)
Diffstat (limited to 'tmk_core/protocol/chibios/usb_main.h')
-rw-r--r-- | tmk_core/protocol/chibios/usb_main.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.h b/tmk_core/protocol/chibios/usb_main.h index eaa08d8f79..fb33c8cd0f 100644 --- a/tmk_core/protocol/chibios/usb_main.h +++ b/tmk_core/protocol/chibios/usb_main.h @@ -38,6 +38,17 @@ void init_usb_driver(USBDriver *usbp); 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 * --------------- */ |