stm32: usart_common_all: Implement usart_get_baudrate
* Handle OVER8 when set, as 2x clock * Handle LPUART specially, as 256x clock, without overflowing uint32_t
This commit is contained in:
@@ -99,6 +99,7 @@ specific memorymap.h header before including this header file.*/
|
||||
BEGIN_DECLS
|
||||
|
||||
void usart_set_baudrate(uint32_t usart, uint32_t baud);
|
||||
uint32_t usart_get_baudrate(uint32_t usart);
|
||||
void usart_set_databits(uint32_t usart, uint32_t bits);
|
||||
uint32_t usart_get_databits(uint32_t usart);
|
||||
void usart_set_stopbits(uint32_t usart, uint32_t stopbits);
|
||||
|
||||
Reference in New Issue
Block a user