example to call tud_init() after freeRTOS kernel is started

add note for usb init when using with RTOS
This commit is contained in:
hathach
2020-07-23 09:20:45 +07:00
parent 72c5167fa5
commit 503c15217e
5 changed files with 15 additions and 2 deletions

View File

@@ -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