cancel
Showing results for 
Search instead for 
Did you mean: 

Programming BRR Register

arduo
Senior

Hi,

how can i program the BRR Register in the USB Device CDC Standalone example for STM32F4xx?

The Example code uses

 UartHandle.Init.BaudRate   = 9600;

How can i directly access to USART_BRR Register?

1 REPLY 1

USART1->BRR = whatever;

Why do you want to change it if you are using the Cube generated code? Just change the 9600 to whatever baud rate you want and HAL will take care of changing the BRR register for you.