diff options
| author | Uwe Bonnes <[email protected]> | 2020-06-24 16:25:23 +0200 |
|---|---|---|
| committer | Uwe Bonnes <[email protected]> | 2020-06-30 11:07:53 +0200 |
| commit | 30a18e260562194b0541584600a0cfc88b1ef178 (patch) | |
| tree | 31f95feec4f29ba6f37410304bf7b7d7c013f6ea /hw | |
| parent | 62239bb576c37e8e240879e5783d4f181f42877e (diff) | |
stm32f723disco: USB HS enumerates.
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/stm32f723disco/stm32f723disco.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/stm32f723disco/stm32f723disco.c b/hw/bsp/stm32f723disco/stm32f723disco.c index 03057edc7..eeedd2a66 100644 --- a/hw/bsp/stm32f723disco/stm32f723disco.c +++ b/hw/bsp/stm32f723disco/stm32f723disco.c @@ -217,7 +217,7 @@ void board_init(void) GPIO_InitStruct.Pin = (GPIO_PIN_14 | GPIO_PIN_15); GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; - GPIO_InitStruct.Speed = GPIO_SPEED_VERY_HIGH; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.Alternate = GPIO_AF10_OTG_HS; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); @@ -231,8 +231,12 @@ void board_init(void) GPIO_InitStruct.Alternate = GPIO_AF10_OTG_HS; HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); + /* Enable PHYC Clocks */ + __HAL_RCC_OTGPHYC_CLK_ENABLE(); + /* Enable USB HS Clocks */ __HAL_RCC_USB_OTG_HS_CLK_ENABLE(); + __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE(); // Enable VBUS sense (B device) via pin PA9 USB_OTG_HS->GCCFG &= ~USB_OTG_GCCFG_VBDEN; |
