diff options
| author | hathach <[email protected]> | 2020-07-01 23:53:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-07-01 23:53:33 +0700 |
| commit | c2289777f7ff5ab59ee03887771e47bccbcb993b (patch) | |
| tree | 9d74e62896cfbaf711514bddcc664e4e1840b7d4 /src | |
| parent | d2450abaafee659cd30ba2fbd14ff9bdb06f6725 (diff) | |
| parent | 961d8139538c657b9af62aee5e24996e2c5b02c9 (diff) | |
Merge branch 'add-stm-hs' of github.com:hathach/tinyusb into add-stm-hs
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/st/synopsys/dcd_synopsys.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c index 2adaa762e..d5e36a97a 100644 --- a/src/portable/st/synopsys/dcd_synopsys.c +++ b/src/portable/st/synopsys/dcd_synopsys.c @@ -27,7 +27,6 @@ */ #include "tusb_option.h" -#include "../../../../hw/bsp//board.h" #if defined (STM32F105x8) || defined (STM32F105xB) || defined (STM32F105xC) || \ defined (STM32F107xB) || defined (STM32F107xC) @@ -374,7 +373,12 @@ static bool USB_HS_PHYCInit(void) // Enable PLL internal PHY usb_hs_phyc->USB_HS_PHYC_PLL = phyc_pll | USB_HS_PHYC_PLL_PLLEN; - board_delay(2); + /* Original ST code has 2 ms delay for PLL stabilization. + * Primitive test shows that more than 10 USB un/replug cycle + * showed no error with enumeration + * //#include "../../../../hw/bsp//board.h" + * //board_delay(2); + */ return true; } # endif |
