diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-26 18:59:09 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-26 18:59:09 +0000 |
commit | 766890cba924de0dff8aa855e0456b07ff73e4fd (patch) | |
tree | 47b9f0a4944f1f16410d121ff3bf3fa69ad19a13 /nuttx/arch/arm/src/stm32/stm32_uart.h | |
parent | db457913b33ab75f743e6b9a11931f9d962f2910 (diff) | |
download | px4-nuttx-766890cba924de0dff8aa855e0456b07ff73e4fd.tar.gz px4-nuttx-766890cba924de0dff8aa855e0456b07ff73e4fd.tar.bz2 px4-nuttx-766890cba924de0dff8aa855e0456b07ff73e4fd.zip |
USART driver implementation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2095 42af7a65-404d-4744-a932-0658087f49c3
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 */ |