stm32/common: Implement support for DE and changing the oversampling mode
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
7e4a6334a1
commit
9480f493b9
@@ -292,6 +292,16 @@
|
||||
#define USART_CR1_UE (1 << 0)
|
||||
/**@}*/
|
||||
|
||||
/* CR1_OVER8 values */
|
||||
/****************************************************************************/
|
||||
/** @defgroup usart_cr1_oversampling USART Oversampling Mode Selection
|
||||
@ingroup STM32F_usart_defines
|
||||
|
||||
@{*/
|
||||
#define USART_OVERSAMPLING_8 USART_CR1_OVER8
|
||||
#define USART_OVERSAMPLING_16 0U
|
||||
/**@}*/
|
||||
|
||||
/*------------------------------------------------*/
|
||||
/** @defgroup usart_cr2_values USART_CR2 Values
|
||||
@ingroup usart_defines
|
||||
@@ -630,4 +640,7 @@ void usart_disable_rx_timeout(uint32_t usart);
|
||||
void usart_enable_rx_timeout_interrupt(uint32_t usart);
|
||||
void usart_disable_rx_timeout_interrupt(uint32_t usart);
|
||||
|
||||
void usart_enable_diver_enable(uint32_t usart, bool invert);
|
||||
void usart_set_oversampling(uint32_t usart, uint32_t mode);
|
||||
|
||||
END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user