diff options
| author | Reinhard Panhuber <[email protected]> | 2020-07-25 14:26:24 +0200 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2020-07-25 14:26:24 +0200 |
| commit | e047fbe8fbc4727cee1fa720b82d4d6918a2d6c0 (patch) | |
| tree | 6de402b58f82c14d7fc516c2351650ae3059ab94 /src/device/usbd.h | |
| parent | d91843bcd21262658b43480240e5dfc2b7d7bd20 (diff) | |
| parent | 60355720364f66fff7856c3de1d18382f7912e31 (diff) | |
Merge remote-tracking branch 'upstream/master' into uac2
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index fa0be803c..0d634d178 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -42,6 +42,8 @@ extern "C" { //--------------------------------------------------------------------+ // Init device stack +// Note: when using with RTOS, this should be called after scheduler/kernel is started. +// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API. bool tud_init (void); // Task function should be called in main/rtos loop @@ -53,6 +55,9 @@ bool tud_task_event_ready(void); // Interrupt handler, name alias to DCD #define tud_int_handler dcd_int_handler +// Get current bus speed +tusb_speed_t tud_speed_get(void); + // Check if device is connected and configured bool tud_mounted(void); |
