Skip to content

Commit 767f2ce

Browse files
pi-chmdpgeorge
authored andcommitted
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 b30c02a.
1 parent 0d8d911 commit 767f2ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ports/stm32/usbd_conf.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) {
215215
if (hpcd->Instance == USB_OTG_FS) {
216216
/* Disable USB FS Clocks */
217217
__USB_OTG_FS_CLK_DISABLE();
218-
__SYSCFG_CLK_DISABLE();
219218
return;
220219
}
221220
#endif
@@ -224,7 +223,6 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) {
224223
if (hpcd->Instance == USB_OTG_HS) {
225224
/* Disable USB FS Clocks */
226225
__USB_OTG_HS_CLK_DISABLE();
227-
__SYSCFG_CLK_DISABLE();
228226
}
229227
#endif
230228

0 commit comments

Comments
 (0)