summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-12-15 16:01:15 +0700
committerGitHub <[email protected]>2025-12-15 16:01:15 +0700
commit9a22543bd2b97455045fa2810b67f7c2b8f6b8d0 (patch)
treebde4580e644f0adb582e138249049aab313ca826 /src/device/usbd.h
parentad5fe66f19e8fb633f175affcfa27b8376e40639 (diff)
parent1583864e0b1379cc2f03717f1bed2429e5473407 (diff)
Merge pull request #3364 from hathach/hcd_fsdev
hcd: add stm32_fsdev driver
Diffstat (limited to 'src/device/usbd.h')
-rw-r--r--src/device/usbd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index efde9377f..bd5a3c395 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -58,6 +58,7 @@ typedef union {
bool tud_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param);
// 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
@@ -73,6 +74,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