diff options
| author | HiFiPhile <[email protected]> | 2025-11-28 13:27:09 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-11-30 15:57:50 +0100 |
| commit | 97c5151b34158f08fbfb51684cbfbc807abd77e5 (patch) | |
| tree | 6b449ed2b0b9208c5972f9fcdab8dae5d51154e3 /src/device | |
| parent | ae4e3c032826b4890dde14f01e7f568ae02322f0 (diff) | |
Update note
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index c446638c3..3cf195452 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -38,6 +38,7 @@ extern "C" { //--------------------------------------------------------------------+ // New API to replace tud_init() to init device stack on specific roothub port +// Must be called in the same task/context as tud_task() if RTOS is used bool tud_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init); // Init device stack on roothub port @@ -53,6 +54,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool tud_init (uint8_t rhport) { } // Deinit device stack on roothub port +// Must be called in the same task/context as tud_task() if RTOS is used bool tud_deinit(uint8_t rhport); // Check if device stack is already initialized |
