diff options
| author | Ha Thach <[email protected]> | 2020-07-24 01:28:49 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-24 01:28:49 +0700 |
| commit | 60355720364f66fff7856c3de1d18382f7912e31 (patch) | |
| tree | 792ac21e71f560e5dc2d2eb109eb4cbed8366acb /src/tusb.h | |
| parent | 72c5167fa5a57e57aa1047c7046a3d2354a1b610 (diff) | |
| parent | 503c15217edad86426db4792364b88b35ec04d31 (diff) | |
Merge pull request #471 from hathach/call-usbinit-after-kernel-started
call tud_init() after freeRTOS kernel is started
Diffstat (limited to 'src/tusb.h')
| -rw-r--r-- | src/tusb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tusb.h b/src/tusb.h index defbc54fb..c252a5789 100644 --- a/src/tusb.h +++ b/src/tusb.h @@ -109,6 +109,8 @@ * @{ */ // Initialize device/host 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 tusb_init(void); // Check if stack is initialized |
