diff options
| author | copilot-swe-agent[bot] <[email protected]> | 2026-04-09 10:41:14 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-09 10:41:14 +0000 |
| commit | 2f4792f9e1b5a6f06e6306fe0d0ebce641914791 (patch) | |
| tree | d53e65578954381f66e57461f4a3fa4c5bd1a1ef | |
| parent | e03a8aa6b1005d33f6b47a7c07f21b18444627d2 (diff) | |
Decouple DCON stabilize delay from BTABLE errata macro
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3ec0d5b6-cb8e-48ff-8606-3371beb1efcb
Co-authored-by: HiFiPhile <[email protected]>
| -rw-r--r-- | src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c index c41228919..50ff975fc 100644 --- a/src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c +++ b/src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c @@ -197,7 +197,7 @@ bool hcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) { // If DCON_STAT is already set, the controller sometimes misses the initial connection interrupt if (FSDEV_REG->ISTR & U_ISTR_DCON_STAT) { // Wait DP/DM stabilize time - volatile uint32_t cycle_count = CFG_TUSB_FSDEV_BTABLE_FS_DELAY_COUNT; + volatile uint32_t cycle_count = FSDEV_STM32_CPU_MHZ / 4U; while (cycle_count > 0U) { cycle_count--; } |
