diff options
| author | Jeremiah McCarthy <[email protected]> | 2021-05-25 09:27:35 -0400 |
|---|---|---|
| committer | Jeremiah McCarthy <[email protected]> | 2021-05-25 09:27:35 -0400 |
| commit | ce59d69520166b37869cf83a3dab929c1b2c4ac4 (patch) | |
| tree | 1f1e1352941aa8c64d59e0e1bd426593ea77ae25 /src/device/usbd.h | |
| parent | 05892a5a1ee9c50cb966b2e8ec8243ef97f794e2 (diff) | |
| parent | ca8724ee08375e85c3a8fd15b5088d38c20c1ae8 (diff) | |
Merge remote-tracking branch 'official/master'
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 9e94d8d90..53519c4de 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -41,7 +41,10 @@ extern "C" { //--------------------------------------------------------------------+ // Init device stack -bool tud_init (void); +bool tud_init (uint8_t rhport); + +// Check if device stack is already initialized +bool tud_inited(void); // Task function should be called in main/rtos loop void tud_task (void); @@ -67,6 +70,7 @@ bool tud_mounted(void); bool tud_suspended(void); // Check if device is ready to transfer +TU_ATTR_ALWAYS_INLINE static inline bool tud_ready(void) { return tud_mounted() && !tud_suspended(); |
