Skip to main content
arduo
Associate III
January 30, 2019
Question

Programming BRR Register

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?

This topic has been closed for replies.

1 reply

After Forever
Senior III
January 30, 2019

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.