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
b30c02afa0.
This commit is contained in:
Clayton Mills 2022-06-07 11:44:36 +10:00 committed by Damien George
parent 0d8d911950
commit 767f2ce9a7

View File

@ -215,7 +215,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) {
if (hpcd->Instance == USB_OTG_FS) { if (hpcd->Instance == USB_OTG_FS) {
/* Disable USB FS Clocks */ /* Disable USB FS Clocks */
__USB_OTG_FS_CLK_DISABLE(); __USB_OTG_FS_CLK_DISABLE();
__SYSCFG_CLK_DISABLE();
return; return;
} }
#endif #endif
@ -224,7 +223,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) {
if (hpcd->Instance == USB_OTG_HS) { if (hpcd->Instance == USB_OTG_HS) {
/* Disable USB FS Clocks */ /* Disable USB FS Clocks */
__USB_OTG_HS_CLK_DISABLE(); __USB_OTG_HS_CLK_DISABLE();
__SYSCFG_CLK_DISABLE();
} }
#endif #endif