diff options
| author | Clayton Mills <clayton.mills@planetinnovation.com.au> | 2022-06-07 11:44:36 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-06-07 18:09:58 +1000 |
| commit | 767f2ce9a77606d438652edc5ac32d1ce4544907 (patch) | |
| tree | 8ebad8e5dc32cca5dde331d80e5d1f7e10c7e63f | |
| parent | 0d8d911950703ea7b2efea7a40a73c942aa84b37 (diff) | |
stm32/usbd_conf: Remove disable of SYSCFG clock.
System config block contains hardware unrelated to USB. So calling
`__SYSCFG_CLK_DISABLE()` during `HAL_PCD_MspDeInit()` has an adverse effect
on other system functionality.
Removing call to `__SYSCFG_CLK_DISABLE()` to rectify this issue.
This call was there since the beginning of the USB CDC code, added in
b30c02afa078f7713faa14087ae28433dee49027.
| -rw-r--r-- | ports/stm32/usbd_conf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ports/stm32/usbd_conf.c b/ports/stm32/usbd_conf.c index 1fb277783..d0f519d45 100644 --- a/ports/stm32/usbd_conf.c +++ b/ports/stm32/usbd_conf.c @@ -215,7 +215,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) { if (hpcd->Instance == USB_OTG_FS) { /* Disable USB FS Clocks */ __USB_OTG_FS_CLK_DISABLE(); - __SYSCFG_CLK_DISABLE(); return; } #endif @@ -224,7 +223,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) { if (hpcd->Instance == USB_OTG_HS) { /* Disable USB FS Clocks */ __USB_OTG_HS_CLK_DISABLE(); - __SYSCFG_CLK_DISABLE(); } #endif |
