summaryrefslogtreecommitdiff
path: root/hw/bsp
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-05 19:07:00 +0700
committerhathach <[email protected]>2026-03-05 20:48:30 +0700
commit0c7a385cf873b9cbf93344187c033c176c37f7e2 (patch)
tree6a31b488c4183953ef1e727450adcad7dd7b614f /hw/bsp
parent70c93adc2f6264015cae597a9abe58ad2e1aaee6 (diff)
improve threadx support, add multi ROTS support for board_test and msc_dual_lun
Diffstat (limited to 'hw/bsp')
-rw-r--r--hw/bsp/board.c5
-rw-r--r--hw/bsp/espressif/boards/family.c11
-rw-r--r--hw/bsp/rp2040/family.c12
3 files changed, 0 insertions, 28 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c
index 0553a7eb7..71c209950 100644
--- a/hw/bsp/board.c
+++ b/hw/bsp/board.c
@@ -300,9 +300,4 @@ void SysTick_Handler(void) {
_tx_timer_interrupt();
}
-// tusb_time_millis_api() based on ThreadX tick counter
-uint32_t tusb_time_millis_api(void) {
- return (uint32_t)((uint64_t) tx_time_get() * 1000u / TX_TIMER_TICKS_PER_SECOND);
-}
-
#endif
diff --git a/hw/bsp/espressif/boards/family.c b/hw/bsp/espressif/boards/family.c
index 2fad7feec..04d8a4001 100644
--- a/hw/bsp/espressif/boards/family.c
+++ b/hw/bsp/espressif/boards/family.c
@@ -364,14 +364,3 @@ bool tuh_max3421_spi_xfer_api(uint8_t rhport, uint8_t const* tx_buf, uint8_t* rx
return true;
}
#endif
-
-// board test example does not use both device and host stack
-#if !CFG_TUD_ENABLED && !CFG_TUH_ENABLED
-TU_ATTR_WEAK uint32_t tusb_time_millis_api(void) {
- return osal_time_millis();
-}
-
-TU_ATTR_WEAK void tusb_time_delay_ms_api(uint32_t ms) {
- osal_task_delay(ms);
-}
-#endif
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c
index d68b13dd1..a51b3f758 100644
--- a/hw/bsp/rp2040/family.c
+++ b/hw/bsp/rp2040/family.c
@@ -377,15 +377,3 @@ bool tuh_max3421_spi_xfer_api(uint8_t rhport, uint8_t const* tx_buf, uint8_t* rx
}
#endif
-
-
-// board test example does not use both device and host stack
-#if !CFG_TUD_ENABLED && !CFG_TUH_ENABLED
-TU_ATTR_WEAK uint32_t tusb_time_millis_api(void) {
- return osal_time_millis();
-}
-
-TU_ATTR_WEAK void tusb_time_delay_ms_api(uint32_t ms) {
- osal_task_delay(ms);
-}
-#endif