diff options
| author | hathach <[email protected]> | 2025-09-10 16:59:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-09-10 16:59:26 +0700 |
| commit | d70d4043dcccb1628424c39c231ed1f95fb52f8e (patch) | |
| tree | 667214a70b916ce3724661fc9586cbbc43a01c01 /src/portable | |
| parent | 4f4ba3b16d9bcb98a1cb51cb6030f0be4dfd7513 (diff) | |
use tusb_time_delay_ms_api for delay, also move tusb_time api to common.h
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/synopsys/dwc2/dwc2_stm32.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h index 0bbad55f5..14d95184e 100644 --- a/src/portable/synopsys/dwc2/dwc2_stm32.h +++ b/src/portable/synopsys/dwc2/dwc2_stm32.h @@ -224,8 +224,7 @@ static inline void dwc2_phy_init(dwc2_regs_t* dwc2, uint8_t hs_phy_type) { USB_HS_PHYC->USB_HS_PHYC_PLL |= USB_HS_PHYC_PLL_PLLEN; // Wait ~2ms until the PLL is ready (there's no RDY bit to query) - uint32_t count = (SystemCoreClock / 1000) * 2; - while (count--) __NOP(); + tusb_time_delay_ms_api(2); #else #endif |
