cancel
Showing results for 
Search instead for 
Did you mean: 

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

jvavra
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Bruno_ST
ST Employee

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.

View solution in original post

1 REPLY 1
Bruno_ST
ST Employee

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.