summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-10 04:13:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-10 04:13:44 +0000
commit3306e7be0283dd220a33eb83f88b568b915ea7b8 (patch)
treec7111ddf0a0ce2476e3f6dc1ec5ff131f03a528c /nuttx/include
parentc6ac5f39311cceded51db709503502a0fd2b1e60 (diff)
downloadpx4-nuttx-3306e7be0283dd220a33eb83f88b568b915ea7b8.tar.gz
px4-nuttx-3306e7be0283dd220a33eb83f88b568b915ea7b8.tar.bz2
px4-nuttx-3306e7be0283dd220a33eb83f88b568b915ea7b8.zip
Add QEMU NSH configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3358 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rwxr-xr-xnuttx/include/nuttx/uart_16550.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/include/nuttx/uart_16550.h b/nuttx/include/nuttx/uart_16550.h
index cdad637e0..3ab6552b0 100755
--- a/nuttx/include/nuttx/uart_16550.h
+++ b/nuttx/include/nuttx/uart_16550.h
@@ -43,7 +43,7 @@
#include <nuttx/config.h>
-#ifdef CONFIG_UART_16550
+#ifdef CONFIG_16550_UART
/************************************************************************************
* Pre-processor Definitions
@@ -75,7 +75,7 @@
# error "CONFIG_16550_REGWIDTH not defined"
#endif
-#if CONFIG_16550_REGWIDTH != 1 && CONFIG_16550_REGWIDTH != 2 && CONFIG_16550_REGWIDTH != 4
+#if CONFIG_16550_REGWIDTH != 8 && CONFIG_16550_REGWIDTH != 16 && CONFIG_16550_REGWIDTH != 32
# error "CONFIG_16550_REGWIDTH not supported"
#endif
@@ -83,7 +83,7 @@
# error "CONFIG_16550_ADDRWIDTH not defined"
#endif
-#if CONFIG_16550_ADDRWIDTH != 1 && CONFIG_16550_ADDRWIDTH != 2 && CONFIG_16550_ADDRWIDTH != 4
+#if CONFIG_16550_ADDRWIDTH != 8 && CONFIG_16550_ADDRWIDTH != 16 && CONFIG_16550_ADDRWIDTH != 32
# error "CONFIG_16550_ADDRWIDTH not supported"
#endif
@@ -311,19 +311,19 @@
* Public Types
************************************************************************************/
-#if CONFIG_16550_REGWIDTH == 1
+#if CONFIG_16550_REGWIDTH == 8
typedef uint8_t uart_datawidth_t;
-#elif CONFIG_16550_REGWIDTH == 2
+#elif CONFIG_16550_REGWIDTH == 16
typedef uint16_t uart_datawidth_t;
-#elif CONFIG_16550_REGWIDTH == 4
+#elif CONFIG_16550_REGWIDTH == 32
typedef uint32_t uart_datawidth_t;
#endif
-#if CONFIG_16550_REGWIDTH == 1
+#if CONFIG_16550_ADDRWIDTH == 8
typedef uint8_t uart_addrwidth_t;
-#elif CONFIG_16550_REGWIDTH == 2
+#elif CONFIG_16550_ADDRWIDTH == 16
typedef uint16_t uart_addrwidth_t;
-#elif CONFIG_16550_REGWIDTH == 4
+#elif CONFIG_16550_ADDRWIDTH == 32
typedef uint32_t uart_addrwidth_t;
#endif