summaryrefslogtreecommitdiff
path: root/nuttx/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-23 20:38:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-23 20:38:12 +0000
commitf2dafc6ff3d04ead0659be3f7778cfcb689f6b98 (patch)
treee937f22bc6eab609c6f1797cec6e703cb8d5d7ac /nuttx/configs
parent446517ecac5d0e9b6d7d3ae70485c648b75a0231 (diff)
downloadpx4-nuttx-f2dafc6ff3d04ead0659be3f7778cfcb689f6b98.tar.gz
px4-nuttx-f2dafc6ff3d04ead0659be3f7778cfcb689f6b98.tar.bz2
px4-nuttx-f2dafc6ff3d04ead0659be3f7778cfcb689f6b98.zip
Add preliminary support for Z16F serial port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@560 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r--nuttx/configs/z16f2800100zcog/ostest/defconfig7
-rw-r--r--nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c5
2 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/configs/z16f2800100zcog/ostest/defconfig b/nuttx/configs/z16f2800100zcog/ostest/defconfig
index bba24c16e..20a1799df 100644
--- a/nuttx/configs/z16f2800100zcog/ostest/defconfig
+++ b/nuttx/configs/z16f2800100zcog/ostest/defconfig
@@ -70,10 +70,9 @@ CONFIG_DRAM_SIZE=65536
# This specific the size of the receive buffer
# CONFIG_UARTn_TXBUFSIZE - Characters are buffered before
# being sent. This specific the size of the transmit buffer
-# CONFIG_UARTn_BAUD - The configure BAUD of the UART. Must be
-# CONFIG_UARTn_BITS - The number of bits. Must be either 7 or 8.
+# CONFIG_UARTn_BAUD - The configure BAUD of the UART.
# CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
-# CONFIG_UARTn_2STOP - Two stop bits
+# CONFIG_UARTn_2STOP - 0=1 stop bit; 1=Two stop bits
#
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_UART1_SERIAL_CONSOLE=n
@@ -83,8 +82,6 @@ CONFIG_UART0_RXBUFSIZE=256
CONFIG_UART1_RXBUFSIZE=256
CONFIG_UART0_BAUD=115200
CONFIG_UART1_BAUD=115200
-CONFIG_UART0_BITS=8
-CONFIG_UART1_BITS=8
CONFIG_UART0_PARITY=0
CONFIG_UART1_PARITY=0
CONFIG_UART0_2STOP=0
diff --git a/nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c b/nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c
index 02ee9daf6..439e9069e 100644
--- a/nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c
+++ b/nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c
@@ -73,6 +73,11 @@ static void z16f_gpioinit(void)
/* Configure Direction switch port */
putreg8(getreg8(Z16F_GPIOC_DD) | 0x01, Z16F_GPIOC_DD);
+
+ /* Configure to use both UART0 and 1 */
+
+ putreg8(getreg8(Z16F_GPIOA_AFL) | 0x30, Z16F_GPIOA_AFL);
+ putreg8(getreg8(Z16F_GPIOD_AFL) | 0x30, Z16F_GPIOD_AFL);
}
/***************************************************************************