diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-17 02:43:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-02-17 02:43:47 +0000 |
commit | 56d90dca78d332130f9872e06fa6d33512a0193e (patch) | |
tree | 8a262895417e263e4cd25ac280c4adbbad7f15d7 /nuttx/arch/sh/src/m16c/m16c_lowputc.c | |
parent | 34f65599a3508531cd068f70b7e4350c9c72158e (diff) | |
download | px4-nuttx-56d90dca78d332130f9872e06fa6d33512a0193e.tar.gz px4-nuttx-56d90dca78d332130f9872e06fa6d33512a0193e.tar.bz2 px4-nuttx-56d90dca78d332130f9872e06fa6d33512a0193e.zip |
Add M16C serial driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1509 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sh/src/m16c/m16c_lowputc.c')
-rw-r--r-- | nuttx/arch/sh/src/m16c/m16c_lowputc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/sh/src/m16c/m16c_lowputc.c b/nuttx/arch/sh/src/m16c/m16c_lowputc.c index 78b2a68af..861623dc2 100644 --- a/nuttx/arch/sh/src/m16c/m16c_lowputc.c +++ b/nuttx/arch/sh/src/m16c/m16c_lowputc.c @@ -71,8 +71,8 @@ # undef CONFIG_UART2_SERIAL_CONSOLE #elif defined(CONFIG_UART2_SERIAL_CONSOLE) && !defined(CONFIG_UART2_DISABLE) # define HAVE_CONSOLE 1 +# undef CONFIG_UART0_SERIAL_CONSOLE # undef CONFIG_UART1_SERIAL_CONSOLE -# undef CONFIG_UART2_SERIAL_CONSOLE #else # if defined(CONFIG_UART0_SERIAL_CONSOLE) || defined(CONFIG_UART1_SERIAL_CONSOLE)|| defined(CONFIG_UART2_SERIAL_CONSOLE) # error "Serial console selected, but corresponding UART not enabled" @@ -183,7 +183,7 @@ #ifdef HAVE_CONSOLE static inline int up_txready(void) { - /* Check the TI bit in the CI register. 1=Transmit buffer emptyy */ + /* Check the TI bit in the CI register. 1=Transmit buffer empty */ return ((getreg8(M16C_UART_BASE + M16C_UART_C1) & UART_C1_TI) != 0); } |