diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 11:51:27 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 11:51:27 -0600 |
commit | 6d00b3a3f845a49b3755a5fd02db194b60f3295b (patch) | |
tree | 4ce4b4b8cbb8101b976151371ab9dcfd73ac7746 | |
parent | 30ccf3a67ddd9aaf3f1a5bdb206cf83330ec5132 (diff) | |
download | nuttx-6d00b3a3f845a49b3755a5fd02db194b60f3295b.tar.gz nuttx-6d00b3a3f845a49b3755a5fd02db194b60f3295b.tar.bz2 nuttx-6d00b3a3f845a49b3755a5fd02db194b60f3295b.zip |
KL: Now builds up_puts
-rw-r--r-- | nuttx/arch/arm/src/common/up_puts.c | 3 | ||||
-rw-r--r-- | nuttx/arch/arm/src/kl/Make.defs | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/arch.h | 10 |
3 files changed, 13 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/common/up_puts.c b/nuttx/arch/arm/src/common/up_puts.c index f56dbf07e..4d47ca2aa 100644 --- a/nuttx/arch/arm/src/common/up_puts.c +++ b/nuttx/arch/arm/src/common/up_puts.c @@ -68,8 +68,9 @@ void up_puts(const char *str) { - while(*str) + while (*str) { up_putc(*str++); } } + diff --git a/nuttx/arch/arm/src/kl/Make.defs b/nuttx/arch/arm/src/kl/Make.defs index 4bbc09f2d..9553a90db 100644 --- a/nuttx/arch/arm/src/kl/Make.defs +++ b/nuttx/arch/arm/src/kl/Make.defs @@ -41,7 +41,7 @@ CMN_ASRCS += up_switchcontext.S vfork.S CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copyfullstate.c CMN_CSRCS += up_createstack.c up_mdelay.c up_udelay.c up_exit.c CMN_CSRCS += up_initialize.c up_initialstate.c up_interruptcontext.c -CMN_CSRCS += up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c +CMN_CSRCS += up_puts.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c CMN_CSRCS += up_releasepending.c up_releasestack.c up_reprioritizertr.c CMN_CSRCS += up_schedulesigaction.c up_sigdeliver.c up_systemreset.c CMN_CSRCS += up_unblocktask.c up_usestack.c up_doirq.c up_hardfault.c diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h index fa89d8344..6522c6208 100644 --- a/nuttx/include/nuttx/arch.h +++ b/nuttx/include/nuttx/arch.h @@ -1121,6 +1121,16 @@ int up_putc(int ch); int up_getc(void); +/**************************************************************************** + * Name: up_puts + * + * Description: + * Output a string on the console + * + ****************************************************************************/ + +void up_puts(FAR const char *str); + #ifdef __cplusplus } #endif |