summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-23 09:20:45 +0700
committerhathach <[email protected]>2020-07-23 09:20:45 +0700
commit503c15217edad86426db4792364b88b35ec04d31 (patch)
tree792ac21e71f560e5dc2d2eb109eb4cbed8366acb /src/device
parent72c5167fa5a57e57aa1047c7046a3d2354a1b610 (diff)
example to call tud_init() after freeRTOS kernel is started
add note for usb init when using with RTOS
Diffstat (limited to 'src/device')
-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 d9facf719..098e94075 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -42,6 +42,8 @@
//--------------------------------------------------------------------+
// 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