summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-26 02:07:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-02-26 02:07:06 +0000
commit2f78980ab6902d83922295c0aa0a21c74afd9aa5 (patch)
tree17501083a8d9fab8cc71cc954483b511429346ba
parentd0e5ace17449b86547974bb00890e09f4c2ad108 (diff)
downloadpx4-nuttx-2f78980ab6902d83922295c0aa0a21c74afd9aa5.tar.gz
px4-nuttx-2f78980ab6902d83922295c0aa0a21c74afd9aa5.tar.bz2
px4-nuttx-2f78980ab6902d83922295c0aa0a21c74afd9aa5.zip
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1528 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/arch/z80/src/ez80/ez80_lowuart.c28
-rw-r--r--nuttx/configs/ez80f910200zco/include/board.h2
2 files changed, 15 insertions, 15 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_lowuart.c b/nuttx/arch/z80/src/ez80/ez80_lowuart.c
index fcc57293c..ebf1428d4 100644
--- a/nuttx/arch/z80/src/ez80/ez80_lowuart.c
+++ b/nuttx/arch/z80/src/ez80/ez80_lowuart.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/z80/src/ez80/ez80_loweruart.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -58,16 +58,16 @@
/* The system clock frequency is defined in the linkcmd file */
#ifdef CONFIG_UART0_SERIAL_CONSOLE
-# define ez80_inp(offs) inp((EZ80_UART0_BASE+(offs)))
-# define ez80_outp(offs,val) outp((EZ80_UART0_BASE+(offs)), (val))
-# define CONFIG_UART_BAUD CONFIG_UART0_BAUD
+# define ez80_inp(offs) inp((EZ80_UART0_BASE+(offs)))
+# define ez80_outp(offs,val) outp((EZ80_UART0_BASE+(offs)), (val))
+# define CONFIG_UART_BAUD CONFIG_UART0_BAUD
# if CONFIG_UART0_BITS == 7
-# define CONFIG_UART_BITS EZ80_UARTCHAR_7BITS
+# define CONFIG_UART_BITS EZ80_UARTCHAR_7BITS
# else
-# define CONFIG_UART_BITS EZ80_UARTCHAR_8BITS
+# define CONFIG_UART_BITS EZ80_UARTCHAR_8BITS
# endif
# if CONFIG_UART0_2STOP != 0
-# define CONFIG_UART_2STOP EZ80_UARTLCTl_2STOP
+# define CONFIG_UART_2STOP EZ80_UARTLCTl_2STOP
# else
# define CONFIG_UART_2STOP 0
# endif
@@ -79,18 +79,18 @@
# define CONFIG_UART_PARITY 0
# endif
#else
-# define ez80_inp(offs) inp((EZ80_UART1_BASE+(offs)))
-# define ez80_outp(offs.val) outp((EZ80_UART1_BASE+(offs)), (val))
-# define CONFIG_UART_BAUD CONFIG_UART1_BAUD
+# define ez80_inp(offs) inp((EZ80_UART1_BASE+(offs)))
+# define ez80_outp(offs.val) outp((EZ80_UART1_BASE+(offs)), (val))
+# define CONFIG_UART_BAUD CONFIG_UART1_BAUD
# if CONFIG_UART1_BITS == 7
-# define CONFIG_UART_BITS EZ80_UARTCHAR_7BITS
+# define CONFIG_UART_BITS EZ80_UARTCHAR_7BITS
# else
-# define CONFIG_UART_BITS EZ80_UARTCHAR_8BITS
+# define CONFIG_UART_BITS EZ80_UARTCHAR_8BITS
# endif
# if CONFIG_UART1_2STOP != 0
-# define CONFIG_UART_2STOP EZ80_UARTLCTl_2STOP
+# define CONFIG_UART_2STOP EZ80_UARTLCTl_2STOP
# else
-# define CONFIG_UART_2STOP 0
+# define CONFIG_UART_2STOP 0
# endif
# if CONFIG_UART1_PARITY == 1 /* Odd parity */
# define CONFIG_UART_PARITY EZ80_UARTLCTL_PEN
diff --git a/nuttx/configs/ez80f910200zco/include/board.h b/nuttx/configs/ez80f910200zco/include/board.h
index ffb8d239b..54cf5e2c4 100644
--- a/nuttx/configs/ez80f910200zco/include/board.h
+++ b/nuttx/configs/ez80f910200zco/include/board.h
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/ez80f910200zco/include/board.h
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without