stm32/common: Implement handling for setting the baud rate correctly when in 8x oversampling mode
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
9480f493b9
commit
2d15b12ff2
@@ -94,10 +94,11 @@ specific memorymap.h header before including this header file.*/
|
||||
/* ONEBIT: One sample bit method enable */
|
||||
#define USART_CR3_ONEBIT (1 << 11)
|
||||
|
||||
#define USART_BRR_UPPER_MASK (0x0000fff0U)
|
||||
#define USART_BRR_LOWER_MASK (0x0000000fU)
|
||||
#endif
|
||||
/** @cond */
|
||||
#else
|
||||
#warning "usart_common_f24.h should not be included directly, only via usart.h"
|
||||
#endif
|
||||
/** @endcond */
|
||||
|
||||
|
||||
@@ -440,6 +440,9 @@
|
||||
|
||||
/**@}*/
|
||||
|
||||
#define USART_BRR_UPPER_MASK (0x0000fff0U)
|
||||
#define USART_BRR_LOWER_MASK (0x0000000fU)
|
||||
|
||||
/** @defgroup usart_gtpr_values USART_GTPR Values
|
||||
* @ingroup usart_defines
|
||||
* @{
|
||||
|
||||
Reference in New Issue
Block a user