From f2dafc6ff3d04ead0659be3f7778cfcb689f6b98 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 23 Jan 2008 20:38:12 +0000 Subject: 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 --- nuttx/configs/z16f2800100zcog/ostest/defconfig | 7 ++----- nuttx/configs/z16f2800100zcog/src/z16f_lowinit.c | 5 +++++ 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'nuttx/configs/z16f2800100zcog') 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); } /*************************************************************************** -- cgit v1.2.3