summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/str71x/str71x_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/str71x/str71x_uart.h')
-rw-r--r--nuttx/arch/arm/src/str71x/str71x_uart.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/str71x/str71x_uart.h b/nuttx/arch/arm/src/str71x/str71x_uart.h
index 2533f8e78..fa602997f 100644
--- a/nuttx/arch/arm/src/str71x/str71x_uart.h
+++ b/nuttx/arch/arm/src/str71x/str71x_uart.h
@@ -126,13 +126,13 @@
#define STR71X_UARTCR_MODE8BIT (0x0001) /* 8-bit */
#define STR71X_UARTCR_MODE7BITP (0x0003) /* 7-bit with parity bit */
#define STR71X_UARTCR_MODE9BIT (0x0004) /* 9-bit */
-#define STR71X_UARTCR_MODE8BIT (0x0005) /* 8-bit with wakeup bit */
-#define STR71X_UARTCR_MODE8BIT (0x0007) /* 8-bit with parity bit */
+#define STR71X_UARTCR_MODE8BITWU (0x0005) /* 8-bit with wakeup bit */
+#define STR71X_UARTCR_MODE8BITP (0x0007) /* 8-bit with parity bit */
#define STR71X_UARTCR_STOPBITSMASK (0x0018) /* Bits 3-4: Stop bits */
-#define STR71X_UARTCR_STOPBIT0 (0x0000) /* 0.5 stop bits */
-#define STR71X_UARTCR_STOPBIT1 (0x0008) /* 1 stop bit */
-#define STR71X_UARTCR_STOPBIT0 (0x0010) /* 1.5 stop bits */
-#define STR71X_UARTCR_STOPBIT0 (0x0018) /* 2 stop bits */
+#define STR71X_UARTCR_STOPBIT05 (0x0000) /* 0.5 stop bits */
+#define STR71X_UARTCR_STOPBIT10 (0x0008) /* 1.0 stop bit */
+#define STR71X_UARTCR_STOPBIT15 (0x0010) /* 1.5 stop bits */
+#define STR71X_UARTCR_STOPBIT20 (0x0018) /* 2.0 stop bits */
#define STR71X_UARTCR_PARITYODD (0x0020) /* Bit 5:
#define STR71X_UARTCR_LOOPBACK (0x0040) /* Bit 6:
#define STR71X_UARTCR_RUN (0x0080) /* Bit 7:
@@ -151,6 +151,7 @@
#define STR71X_UARTIER_TIMEOUTNE (0x0040) /* Bit 6: Time out not empty*/
#define STR71X_UARTIER_TIMEOUTIDLE (0x0080) /* Bit 7: Timeout out idle */
#define STR71X_UARTIER_RHF (0x0100) /* Bit 8: Rx half full */
+#define STR71X_UIRTIER_ALL (0x01ff) /* All interrupt bits */
/* UART status register (SR) */