summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/imx/imx_uart.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-11 23:19:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-11 23:19:09 +0000
commit0162245b27eb72c2973c587e5ea59317b43b88bd (patch)
tree21a04dc3ef46bb5f4361b32eef67a0b1b433b450 /nuttx/arch/arm/src/imx/imx_uart.h
parent32ff8af133c4d385a8dd40c756cf9fecaaf407c4 (diff)
downloadpx4-nuttx-0162245b27eb72c2973c587e5ea59317b43b88bd.tar.gz
px4-nuttx-0162245b27eb72c2973c587e5ea59317b43b88bd.tar.bz2
px4-nuttx-0162245b27eb72c2973c587e5ea59317b43b88bd.zip
Basic UART/console functionality
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1697 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/imx/imx_uart.h')
-rw-r--r--nuttx/arch/arm/src/imx/imx_uart.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/imx/imx_uart.h b/nuttx/arch/arm/src/imx/imx_uart.h
index 4905e63ff..89d40f543 100644
--- a/nuttx/arch/arm/src/imx/imx_uart.h
+++ b/nuttx/arch/arm/src/imx/imx_uart.h
@@ -81,7 +81,7 @@
/* UART Receiver Register */
#define UART_RXD_DATA_SHIFT 0 /* Bits 0-7: Received Data */
-#define UART_RXD_DATA_MASK (0x7f << UART_RXD_DATA_SHIFT)
+#define UART_RXD_DATA_MASK (0xff << UART_RXD_DATA_SHIFT)
#define UART_RXD_PRERR (1 << 10) /* Bit 10: Parity Error */
#define UART_RXD_BRK (1 << 11) /* Bit 11: Break Detect */
#define UART_RXD_FRMERR (1 << 12) /* Bit 12: Frame Error */
@@ -212,6 +212,14 @@
#define UART_USR2_TXFE (1 << 14) /* Bit 14: Transmit Buffer FIFO empty */
#define UART_USR2_ADET (1 << 15) /* Bit 15: Automatic baud rate detection complete */
+/* UART Test Register */
+
+#define UART_UTS_TXFULL (1 << 4) /* Bit 4: TxFIFO FULL */
+#define UART_UTS_RXEMPTY (1 << 5) /* Bit 5: RxFIFO Empty */
+#define UART_UTS_TXEMPTY (1 << 6) /* Bit 6: TxFIFO */
+#define UART_UTS_LOOP (1 << 12) /* Bit 12: Loop TX and RX for Test */
+#define UART_UTS_FRCPERR (1 << 13) /* Bit 13: Force Parity Error */
+
/************************************************************************************
* Inline Functions
************************************************************************************/