summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-11-04 17:24:49 +0700
committerhathach <[email protected]>2024-11-04 17:24:49 +0700
commit5f891e020c9fb41134babeab3ce4e8574ac47d25 (patch)
treed03aa79a937809bddd5b687974f33a2ad1fefca8 /hw
parent29262f3e24326c1a7c06137824e44ffaa6301094 (diff)
usbh use the new tusb_time_delay_ms_api()
fix duplicated device attach for some devices which cause "USBH Defer Attach until current enumeration complete" include dev0 for tuh_edpt_abort_xfer()
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/board.c2
-rw-r--r--hw/bsp/stm32f7/family.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c
index d4fdb7586..6d9488431 100644
--- a/hw/bsp/board.c
+++ b/hw/bsp/board.c
@@ -136,6 +136,6 @@ int board_getchar(void) {
}
-uint32_t tusb_time_millis(void) {
+uint32_t tusb_time_millis_api(void) {
return board_millis();
}
diff --git a/hw/bsp/stm32f7/family.c b/hw/bsp/stm32f7/family.c
index f1671b362..630837d8c 100644
--- a/hw/bsp/stm32f7/family.c
+++ b/hw/bsp/stm32f7/family.c
@@ -173,7 +173,7 @@ void board_init(void) {
#endif // vbus sense
//------------- rhport1: OTG_HS -------------//
- #ifdef USB_HS_PHYC
+#ifdef USB_HS_PHYC
// MCU with built-in HS PHY such as F723, F733, F730
/* Configure DM DP Pins */
@@ -197,7 +197,7 @@ void board_init(void) {
/* Enable PHYC Clocks */
__HAL_RCC_OTGPHYC_CLK_ENABLE();
- #else
+#else
// MCU with external ULPI PHY
/* ULPI CLK */
@@ -243,7 +243,7 @@ void board_init(void) {
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_HS;
HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
- #endif // USB_HS_PHYC
+#endif // USB_HS_PHYC
// Enable USB HS & ULPI Clocks
__HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE();