diff options
| author | dherrada <33632497+dherrada@users.noreply.github.com> | 2020-07-21 16:18:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-21 16:18:51 -0400 |
| commit | 9e3fa863f1d0dcf8eae54554ffc7016eaa6de157 (patch) | |
| tree | 5130e268b1fad9dec287e93e3505a5a9a61a9249 /supervisor/usb.h | |
| parent | 612c6bb86b8762aa9388566eb69db9bbe4e8bbe4 (diff) | |
| parent | e047ea287f6658f1a1fd10ab31f45f25bce846c1 (diff) | |
Merge branch 'main' into type_hints
Diffstat (limited to 'supervisor/usb.h')
| -rw-r--r-- | supervisor/usb.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/supervisor/usb.h b/supervisor/usb.h index 29280c725..2a447c368 100644 --- a/supervisor/usb.h +++ b/supervisor/usb.h @@ -29,10 +29,15 @@ #include <stdbool.h> -// Ports must call this as frequently as they can in order to keep the USB connection -// alive and responsive. +// Ports must call this as frequently as they can in order to keep the USB +// connection alive and responsive. Normally this is called from background +// tasks after the USB IRQ handler is executed, but in specific circumstances +// it may be necessary to call it directly. void usb_background(void); +// Ports must call this from their particular USB IRQ handler +void usb_irq_handler(void); + // Only inits the USB peripheral clocks and pins. The peripheral will be initialized by // TinyUSB. void init_usb_hardware(void); |
