Skip to main content
jvavra
Associate III
September 1, 2021
Solved

Porting From STM32L432 to STM32L496: No USB Clock Enable/Disable Bit?

  • September 1, 2021
  • 1 reply
  • 672 views

I am porting some code from the STM32L432 to the STML496. The STM32L432 had a macro that would allow you to stop the USB clock on APB1 (_HAL_RCC_USB_CLK_DISABLE), but the bit in the RPB1ENR1 register used to do this (RCC_APB1ENR1_USBFSEN) doesn't seem to have an equivalent on the STM32496. Is there an easy way for me to functionally recreate stopping the clock?

This topic has been closed for replies.
Best answer by Bruno_ST

Hello @jvara​ ,

On L496 it becomes __HAL_RCC_USB_OTG_FS_CLK_DISABLE().

BR,

Bruno

1 reply

Bruno_STBest answer
ST Employee
September 1, 2021

Hello @jvara​ ,

On L496 it becomes __HAL_RCC_USB_OTG_FS_CLK_DISABLE().

BR,

Bruno

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.