diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 22:46:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 22:46:55 +0000 |
commit | 3412e0792cdd885a8902c872af8213222f84b242 (patch) | |
tree | 3c2a6eda9beeb1d2a363b8327c3c8331d39eac54 /nuttx/arch/z16/src/z16f | |
parent | eb05ae41c538bfc47d1f1b128c817dfc9e56b2c0 (diff) | |
download | px4-nuttx-3412e0792cdd885a8902c872af8213222f84b242.tar.gz px4-nuttx-3412e0792cdd885a8902c872af8213222f84b242.tar.bz2 px4-nuttx-3412e0792cdd885a8902c872af8213222f84b242.zip |
Fix inconsistent use of CONFIG_ARCH_LOWPUTC
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@698 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16/src/z16f')
-rw-r--r-- | nuttx/arch/z16/src/z16f/chip.h | 3 | ||||
-rwxr-xr-x | nuttx/arch/z16/src/z16f/z16f_lowuart.S | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/nuttx/arch/z16/src/z16f/chip.h b/nuttx/arch/z16/src/z16f/chip.h index f43a65392..f2c7362a2 100644 --- a/nuttx/arch/z16/src/z16f/chip.h +++ b/nuttx/arch/z16/src/z16f/chip.h @@ -43,6 +43,7 @@ #include <nuttx/config.h> #include <arch/irq.h> +#include "common/up_internal.h" /************************************************************************************ * Definitions @@ -543,7 +544,7 @@ extern "C" { */ EXTERN void z16f_lowinit(void); -#if defined(CONFIG_ARCH_LOWPUTC) || defined(CONFIG_ARCH_LOWGETC) +#if defined(CONFIG_Z16_LOWPUTC) || defined(CONFIG_Z16_LOWGETC) EXTERN void z16f_lowuartinit(void); #endif diff --git a/nuttx/arch/z16/src/z16f/z16f_lowuart.S b/nuttx/arch/z16/src/z16f/z16f_lowuart.S index 1dedf16b3..1df5b62ca 100755 --- a/nuttx/arch/z16/src/z16f/z16f_lowuart.S +++ b/nuttx/arch/z16/src/z16f/z16f_lowuart.S @@ -50,10 +50,10 @@ xdef _z16f_lowuartinit xref _SYS_CLK_FREQ:EROM -#ifdef CONFIG_ARCH_LOWPUTC +#ifdef CONFIG_Z16_LOWPUTC xdef _up_lowputc #endif -#ifdef CONFIG_ARCH_LOWGETC +#ifdef CONFIG_Z16_LOWGETC xdef _up_lowgetc #endif @@ -139,7 +139,7 @@ _z16f_lowuartinit: * *************************************************************************/ -#ifdef CONFIG_ARCH_LOWPUTC +#ifdef CONFIG_Z16_LOWPUTC _up_lowputc: /* Check if the character to output is a linefeed */ @@ -184,7 +184,7 @@ _z16f_xmitc1: #endif ret /* Return */ -#endif /* CONFIG_ARCH_LOWPUTC */ +#endif /* CONFIG_Z16_LOWPUTC */ /************************************************************************* * Name: _up_lowgetc @@ -200,7 +200,7 @@ _z16f_xmitc1: * *************************************************************************/ -#ifdef CONFIG_ARCH_LOWGETC +#ifdef CONFIG_Z16_LOWGETC _up_lowgetc: _up_lowgetc1: ld r0, #Z16F_UARTSTAT0_RDA /* RDA=Receive data available */ |