diff options
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_uart.h')
-rwxr-xr-x | nuttx/arch/arm/src/stm32/stm32_uart.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_uart.h b/nuttx/arch/arm/src/stm32/stm32_uart.h index 1bfb47a15..37a157219 100755 --- a/nuttx/arch/arm/src/stm32/stm32_uart.h +++ b/nuttx/arch/arm/src/stm32/stm32_uart.h @@ -113,6 +113,9 @@ #define USART_SR_LBD (1 << 8) /* Bit 8: LIN Break Detection Flag */ #define USART_SR_CTS (1 << 9) /* Bit 9: CTS Flag */ +#define USART_SR_ALLBITS (0x03ff) +#define USART_SR_CLRBITS (USART_SR_CTS|USART_SR_LBD) /* Cleared by SW write to SR */ + /* Data register */ #define USART_DR_SHIFT (0) /* Bits 8:0: Data value */ @@ -142,6 +145,8 @@ #define USART_CR1_M (1 << 12) /* Bit 12: word length */ #define USART_CR1_UE (1 << 13) /* Bit 13: USART Enable */ +#define USART_CR1_ALLINTS (USART_CR1_IDLEIE|USART_CR1_RXNEIE|USART_CR1_TCIE|USART_CR1_PEIE) + /* Control register 2 */ #define USART_CR2_ADD_SHIFT (0) /* Bits 3-0: Address of the USART node */ |