diff options
| author | hathach <[email protected]> | 2022-04-20 18:35:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-04-20 18:35:38 +0700 |
| commit | 6a022c73dbf1551a441fafbea3a27c1a9951816f (patch) | |
| tree | 716818ba62ac63bed1fa622387bf87d02ca615ad /src | |
| parent | b034c18077ef1350f2678f245ed1b885e9be79fc (diff) | |
add note for tud_task() behavior in freertos example
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd.h | 2 | ||||
| -rw-r--r-- | src/host/usbh.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 30373abb9..583962611 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -52,7 +52,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr); TU_ATTR_ALWAYS_INLINE static inline void tud_task (void) { - tud_task_ext(OSAL_TIMEOUT_WAIT_FOREVER, false); + tud_task_ext(UINT32_MAX, false); } // Check if there is pending events need proccessing by tud_task() diff --git a/src/host/usbh.h b/src/host/usbh.h index 1580717fd..c6d36fb7f 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -100,7 +100,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr); TU_ATTR_ALWAYS_INLINE static inline void tuh_task(void) { - tuh_task_ext(OSAL_TIMEOUT_WAIT_FOREVER, false); + tuh_task_ext(UINT32_MAX, false); } // Interrupt handler, name alias to HCD |
