diff options
| author | Ha Thach <[email protected]> | 2026-06-01 12:42:03 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-01 12:42:03 +0700 |
| commit | bbdb41995de6510b837ad239933e1823ca175314 (patch) | |
| tree | ac33e616077fde67751dffe92cf68afa8671dd0d /src/osal/osal_rtthread.h | |
| parent | 2c27ec9c89f95057e30da5d08c01f01c941b8a58 (diff) | |
| parent | 17185428df755d7229407e6ac87c124e522877dc (diff) | |
Merge pull request #3657 from hathach/usbh-add-control-queue
Add control transfer fifo for host stack
Diffstat (limited to 'src/osal/osal_rtthread.h')
| -rw-r--r-- | src/osal/osal_rtthread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osal/osal_rtthread.h b/src/osal/osal_rtthread.h index f560281c5..a151a7d70 100644 --- a/src/osal/osal_rtthread.h +++ b/src/osal/osal_rtthread.h @@ -38,6 +38,12 @@ extern "C" { //--------------------------------------------------------------------+ // TASK API //--------------------------------------------------------------------+ +typedef rt_thread_t osal_task_handle_t; + +TU_ATTR_ALWAYS_INLINE static inline osal_task_handle_t osal_task_get_current_handle(void) { + return rt_thread_self(); +} + TU_ATTR_ALWAYS_INLINE static inline void osal_task_delay(uint32_t msec) { rt_thread_mdelay(msec); } |
