diff options
| author | hathach <[email protected]> | 2023-08-18 12:48:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-08-18 12:48:12 +0700 |
| commit | 9257a0f562a1cb939a902e7c41de5032b0f7de19 (patch) | |
| tree | 52a90b9a4eda71b62c0c6096f2b0813670c3f626 /src/device | |
| parent | 1fdf29075d4e613eacfa881166015263797db0f6 (diff) | |
- update nrf52 bsp for cmake
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index b11c1a09d..782f538fd 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -50,8 +50,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr); // Task function should be called in main/rtos loop TU_ATTR_ALWAYS_INLINE static inline -void tud_task (void) -{ +void tud_task (void) { tud_task_ext(UINT32_MAX, false); } @@ -80,8 +79,7 @@ bool tud_suspended(void); // Check if device is ready to transfer TU_ATTR_ALWAYS_INLINE static inline -bool tud_ready(void) -{ +bool tud_ready(void) { return tud_mounted() && !tud_suspended(); } |
