diff --git a/arch/arm/src/common/Make.defs b/arch/arm/src/common/Make.defs index df5340234cfd7..ccf8dfb0630c4 100644 --- a/arch/arm/src/common/Make.defs +++ b/arch/arm/src/common/Make.defs @@ -24,7 +24,7 @@ CMN_CSRCS += arm_allocateheap.c arm_assert.c arm_blocktask.c CMN_CSRCS += arm_createstack.c arm_exit.c arm_fullcontextrestore.c CMN_CSRCS += arm_initialize.c arm_lowputs.c CMN_CSRCS += arm_modifyreg16.c arm_modifyreg32.c -CMN_CSRCS += arm_modifyreg8.c arm_nputs.c arm_releasepending.c +CMN_CSRCS += arm_modifyreg8.c arm_puts.c arm_releasepending.c CMN_CSRCS += arm_releasestack.c arm_reprioritizertr.c arm_saveusercontext.c CMN_CSRCS += arm_stackframe.c arm_switchcontext.c CMN_CSRCS += arm_vfork.c arm_unblocktask.c arm_usestack.c diff --git a/arch/arm/src/common/arm_nputs.c b/arch/arm/src/common/arm_puts.c similarity index 92% rename from arch/arm/src/common/arm_nputs.c rename to arch/arm/src/common/arm_puts.c index 316ef260d3b76..c7a79c0f3cc84 100644 --- a/arch/arm/src/common/arm_nputs.c +++ b/arch/arm/src/common/arm_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm/src/common/arm_nputs.c + * arch/arm/src/common/arm_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,21 +25,23 @@ #include #include +#include "arm_internal.h" + /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/arm/src/common/arm_semi_syslog.c b/arch/arm/src/common/arm_semi_syslog.c index 43562db01d805..36f6477ec9cf4 100644 --- a/arch/arm/src/common/arm_semi_syslog.c +++ b/arch/arm/src/common/arm_semi_syslog.c @@ -27,6 +27,8 @@ #include +#include "arm_internal.h" + #ifdef CONFIG_ARM_SEMIHOSTING_SYSLOG /**************************************************************************** @@ -52,25 +54,15 @@ int up_putc(int ch) } /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * Output a string on the console * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - if (len == ~((size_t)0)) - { - smh_call(SEMI_SYSLOG_WRITE0, (char *)str); - } - else - { - while (len-- > 0) - { - up_putc(*str++); - } - } + smh_call(SEMI_SYSLOG_WRITE0, (char *)str); } #endif diff --git a/arch/arm64/src/common/Make.defs b/arch/arm64/src/common/Make.defs index 4e4b1a3a76fbb..f9633c3bdb301 100644 --- a/arch/arm64/src/common/Make.defs +++ b/arch/arm64/src/common/Make.defs @@ -43,7 +43,7 @@ endif # Common C source files ( OS call up_xxx) CMN_CSRCS = arm64_initialize.c arm64_initialstate.c arm64_boot.c -CMN_CSRCS += arm64_nputs.c arm64_idle.c arm64_copystate.c +CMN_CSRCS += arm64_idle.c arm64_copystate.c CMN_CSRCS += arm64_createstack.c arm64_releasestack.c arm64_stackframe.c arm64_usestack.c CMN_CSRCS += arm64_task_sched.c arm64_exit.c arm64_vfork.c arm64_reprioritizertr.c CMN_CSRCS += arm64_releasepending.c arm64_unblocktask.c arm64_blocktask.c diff --git a/arch/avr/src/at32uc3/Make.defs b/arch/avr/src/at32uc3/Make.defs index f697097f3017e..a353fc255d9cf 100644 --- a/arch/avr/src/at32uc3/Make.defs +++ b/arch/avr/src/at32uc3/Make.defs @@ -31,7 +31,7 @@ CMN_CSRCS += up_initialize.c up_initialstate.c CMN_CSRCS += 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_stackframe.c -CMN_CSRCS += up_unblocktask.c up_usestack.c up_doirq.c up_nputs.c +CMN_CSRCS += up_unblocktask.c up_usestack.c up_doirq.c up_puts.c # Configuration-dependent common files diff --git a/arch/avr/src/at90usb/Make.defs b/arch/avr/src/at90usb/Make.defs index ecc0bfc7ad6ee..5e903b4298385 100644 --- a/arch/avr/src/at90usb/Make.defs +++ b/arch/avr/src/at90usb/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_initialstate.c up_irq.c up_lowputs.c CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c -CMN_CSRCS += up_nputs.c up_releasepending.c up_releasestack.c +CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/avr/src/atmega/Make.defs b/arch/avr/src/atmega/Make.defs index 52e9c0b711e14..85c8ed18192df 100644 --- a/arch/avr/src/atmega/Make.defs +++ b/arch/avr/src/atmega/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_initialstate.c up_irq.c up_lowputs.c CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c -CMN_CSRCS += up_nputs.c up_releasepending.c up_releasestack.c +CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/hc/src/common/up_nputs.c b/arch/avr/src/common/up_puts.c similarity index 94% rename from arch/hc/src/common/up_nputs.c rename to arch/avr/src/common/up_puts.c index 564b3d2ff26fc..eb57132d53627 100644 --- a/arch/hc/src/common/up_nputs.c +++ b/arch/avr/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/hc/src/common/up_nputs.c + * arch/avr/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,6 +25,8 @@ #include #include +#include "up_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +44,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/z16/src/common/z16_nputs.c b/arch/ceva/src/common/up_puts.c similarity index 92% rename from arch/z16/src/common/z16_nputs.c rename to arch/ceva/src/common/up_puts.c index 2915a60f8050a..edb931c05929b 100644 --- a/arch/z16/src/common/z16_nputs.c +++ b/arch/ceva/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/z16/src/common/z16_nputs.c + * arch/ceva/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -30,16 +30,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/x86/src/common/up_nputs.c b/arch/hc/src/common/up_puts.c similarity index 94% rename from arch/x86/src/common/up_nputs.c rename to arch/hc/src/common/up_puts.c index 6902cfba049fd..89de2d63616b8 100644 --- a/arch/x86/src/common/up_nputs.c +++ b/arch/hc/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/x86/src/common/up_nputs.c + * arch/hc/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -23,8 +23,11 @@ ****************************************************************************/ #include + #include +#include "up_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +45,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/hc/src/m9s12/Make.defs b/arch/hc/src/m9s12/Make.defs index f9a6a79d99e59..432e75e582ac6 100644 --- a/arch/hc/src/m9s12/Make.defs +++ b/arch/hc/src/m9s12/Make.defs @@ -23,7 +23,7 @@ HEAD_ASRC = m9s12_vectors.S CMN_CSRCS = up_allocateheap.c up_blocktask.c up_copystate.c up_createstack.c CMN_CSRCS += up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_mdelay.c up_modifyreg16.c up_modifyreg32.c up_modifyreg8.c -CMN_CSRCS += up_nputs.c up_releasepending.c up_releasestack.c up_reprioritizertr.c +CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c up_reprioritizertr.c CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c CHIP_ASRCS = m9s12_start.S m9s12_lowputc.S m9s12_saveusercontext.S diff --git a/arch/mips/src/common/mips_nputs.c b/arch/mips/src/common/mips_puts.c similarity index 94% rename from arch/mips/src/common/mips_nputs.c rename to arch/mips/src/common/mips_puts.c index c690ff7c67c93..21c0d5f9beba0 100644 --- a/arch/mips/src/common/mips_nputs.c +++ b/arch/mips/src/common/mips_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/mips/src/common/mips_nputs.c + * arch/mips/src/common/mips_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,6 +25,8 @@ #include #include +#include "mips_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +44,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/mips/src/pic32mx/Make.defs b/arch/mips/src/pic32mx/Make.defs index 9e18bc4f7cd2d..fae17d42dfad5 100644 --- a/arch/mips/src/pic32mx/Make.defs +++ b/arch/mips/src/pic32mx/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = mips_allocateheap.c mips_assert.c mips_blocktask.c mips_copystate.c CMN_CSRCS += mips_createstack.c mips_doirq.c mips_exit.c mips_initialize.c CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c CMN_CSRCS += mips_mdelay.c mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c -CMN_CSRCS += mips_nputs.c mips_releasepending.c mips_releasestack.c +CMN_CSRCS += mips_puts.c mips_releasepending.c mips_releasestack.c CMN_CSRCS += mips_reprioritizertr.c mips_schedulesigaction.c mips_sigdeliver.c CMN_CSRCS += mips_stackframe.c mips_swint0.c mips_udelay.c mips_unblocktask.c CMN_CSRCS += mips_usestack.c mips_vfork.c diff --git a/arch/mips/src/pic32mz/Make.defs b/arch/mips/src/pic32mz/Make.defs index 9af3182333bd5..252e4dd844326 100644 --- a/arch/mips/src/pic32mz/Make.defs +++ b/arch/mips/src/pic32mz/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = mips_allocateheap.c mips_assert.c mips_blocktask.c mips_copystate.c CMN_CSRCS += mips_createstack.c mips_doirq.c mips_exit.c mips_initialize.c CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c CMN_CSRCS += mips_mdelay.c mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c -CMN_CSRCS += mips_nputs.c mips_releasepending.c mips_releasestack.c +CMN_CSRCS += mips_puts.c mips_releasepending.c mips_releasestack.c CMN_CSRCS += mips_reprioritizertr.c mips_schedulesigaction.c mips_sigdeliver.c CMN_CSRCS += mips_stackframe.c mips_swint0.c mips_udelay.c mips_unblocktask.c CMN_CSRCS += mips_usestack.c mips_vfork.c diff --git a/arch/or1k/src/common/up_nputs.c b/arch/or1k/src/common/up_puts.c similarity index 92% rename from arch/or1k/src/common/up_nputs.c rename to arch/or1k/src/common/up_puts.c index 06287d703d557..0b27632fb768a 100644 --- a/arch/or1k/src/common/up_nputs.c +++ b/arch/or1k/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/or1k/src/common/up_nputs.c + * arch/or1k/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,21 +25,23 @@ #include #include +#include "up_internal.h" + /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/or1k/src/mor1kx/Make.defs b/arch/or1k/src/mor1kx/Make.defs index aa5a8a87969d6..add82a24471b6 100644 --- a/arch/or1k/src/mor1kx/Make.defs +++ b/arch/or1k/src/mor1kx/Make.defs @@ -41,7 +41,7 @@ CMN_CSRCS = up_initialize.c \ up_mdelay.c \ up_idle.c \ up_irq.c \ - up_nputs.c \ + up_puts.c \ up_uart.c \ up_timer.c \ up_doirq.c \ diff --git a/arch/renesas/src/common/up_nputs.c b/arch/renesas/src/common/up_nputs.c deleted file mode 100644 index 45c84a386fcd8..0000000000000 --- a/arch/renesas/src/common/up_nputs.c +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** - * arch/renesas/src/common/up_nputs.c - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include -#include - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: up_nputs - * - * Description: - * This is a low-level helper function used to support debug. - * - ****************************************************************************/ - -void up_nputs(const char *str, size_t len) -{ - while (*str && len-- > 0) - { - up_putc(*str++); - } -} diff --git a/arch/sparc/src/common/up_nputs.c b/arch/renesas/src/common/up_puts.c similarity index 94% rename from arch/sparc/src/common/up_nputs.c rename to arch/renesas/src/common/up_puts.c index 106464b072600..b607ee8c6ce19 100644 --- a/arch/sparc/src/common/up_nputs.c +++ b/arch/renesas/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/sparc/src/common/up_nputs.c + * arch/renesas/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,6 +25,8 @@ #include #include +#include "up_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +44,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/renesas/src/m16c/Make.defs b/arch/renesas/src/m16c/Make.defs index 9c5326a2acf36..dfa89499586a6 100644 --- a/arch/renesas/src/m16c/Make.defs +++ b/arch/renesas/src/m16c/Make.defs @@ -22,7 +22,7 @@ HEAD_ASRC = m16c_head.S CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c -CMN_CSRCS += up_lowputs.c up_mdelay.c up_nputs.c +CMN_CSRCS += up_lowputs.c up_mdelay.c up_puts.c CMN_CSRCS += up_releasepending.c up_releasestack.c up_reprioritizertr.c CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/renesas/src/rx65n/Make.defs b/arch/renesas/src/rx65n/Make.defs index 2d77e89226c51..0c5bb87445914 100644 --- a/arch/renesas/src/rx65n/Make.defs +++ b/arch/renesas/src/rx65n/Make.defs @@ -22,7 +22,7 @@ HEAD_ASRC = rx65n_head.S CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c -CMN_CSRCS += up_lowputs.c up_mdelay.c up_nputs.c +CMN_CSRCS += up_lowputs.c up_mdelay.c up_puts.c CMN_CSRCS += up_releasepending.c up_releasestack.c up_reprioritizertr.c CMN_CSRCS += up_stackframe.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/renesas/src/sh1/Make.defs b/arch/renesas/src/sh1/Make.defs index 4ff0cd13c27f4..042ee48a3a478 100644 --- a/arch/renesas/src/sh1/Make.defs +++ b/arch/renesas/src/sh1/Make.defs @@ -23,7 +23,7 @@ HEAD_ASRC = sh1_head.S CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_initialstate.c up_lowputs.c -CMN_CSRCS += up_mdelay.c up_nputs.c up_releasepending.c up_releasestack.c +CMN_CSRCS += up_mdelay.c up_puts.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_stackframe.c up_udelay.c CMN_CSRCS += sh1_schedulesigaction.c sh1_sigdeliver.c CMN_CSRCS += up_unblocktask.c up_usestack.c diff --git a/arch/risc-v/src/common/Make.defs b/arch/risc-v/src/common/Make.defs index 0662395a9a4a0..2c17173346e6f 100644 --- a/arch/risc-v/src/common/Make.defs +++ b/arch/risc-v/src/common/Make.defs @@ -29,7 +29,7 @@ CMN_ASRCS += riscv_vectors.S riscv_exception_common.S riscv_mhartid.S CMN_CSRCS += riscv_initialize.c riscv_swint.c riscv_mtimer.c CMN_CSRCS += riscv_allocateheap.c riscv_createstack.c riscv_exit.c CMN_CSRCS += riscv_assert.c riscv_blocktask.c riscv_copystate.c riscv_initialstate.c -CMN_CSRCS += riscv_modifyreg32.c riscv_nputs.c +CMN_CSRCS += riscv_modifyreg32.c riscv_puts.c CMN_CSRCS += riscv_releasepending.c riscv_reprioritizertr.c CMN_CSRCS += riscv_releasestack.c riscv_stackframe.c riscv_schedulesigaction.c CMN_CSRCS += riscv_sigdeliver.c riscv_unblocktask.c riscv_usestack.c diff --git a/arch/risc-v/src/common/riscv_nputs.c b/arch/risc-v/src/common/riscv_nputs.c deleted file mode 100644 index b87a2d5d36520..0000000000000 --- a/arch/risc-v/src/common/riscv_nputs.c +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** - * arch/risc-v/src/common/riscv_nputs.c - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include -#include - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: up_nputs - * - * Description: - * This is a low-level helper function used to support debug. - * - ****************************************************************************/ - -void up_nputs(const char *str, size_t len) -{ - while (*str && len-- > 0) - { - up_putc(*str++); - } -} diff --git a/arch/arm64/src/common/arm64_nputs.c b/arch/risc-v/src/common/riscv_puts.c similarity index 92% rename from arch/arm64/src/common/arm64_nputs.c rename to arch/risc-v/src/common/riscv_puts.c index 41277451bf958..788b8f9eb76a6 100644 --- a/arch/arm64/src/common/arm64_nputs.c +++ b/arch/risc-v/src/common/riscv_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm64/src/common/arm64_nputs.c + * arch/risc-v/src/common/riscv_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,21 +25,23 @@ #include #include +#include "riscv_internal.h" + /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 4f0ad875de8e4..cb9c2bfb5ea17 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -61,7 +61,7 @@ CSRCS = up_initialize.c up_idle.c up_interruptcontext.c up_initialstate.c CSRCS += up_createstack.c up_usestack.c up_releasestack.c up_stackframe.c CSRCS += up_unblocktask.c up_blocktask.c up_releasepending.c CSRCS += up_reprioritizertr.c up_exit.c up_schedulesigaction.c -CSRCS += up_heap.c up_uart.c up_assert.c up_nputs.c +CSRCS += up_heap.c up_uart.c up_assert.c up_puts.c CSRCS += up_copyfullstate.c CSRCS += up_sigdeliver.c diff --git a/arch/sim/src/sim/up_nputs.c b/arch/sim/src/sim/up_puts.c similarity index 94% rename from arch/sim/src/sim/up_nputs.c rename to arch/sim/src/sim/up_puts.c index 72e444996b8a5..11471f9367bf5 100644 --- a/arch/sim/src/sim/up_nputs.c +++ b/arch/sim/src/sim/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/sim/src/sim/up_nputs.c + * arch/sim/src/sim/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,6 +25,8 @@ #include #include +#include "up_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +44,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/sparc/src/bm3803/Make.defs b/arch/sparc/src/bm3803/Make.defs index 53dfcf2c85318..b584b7d8ab36e 100644 --- a/arch/sparc/src/bm3803/Make.defs +++ b/arch/sparc/src/bm3803/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c up_syst CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_initialstate.c up_irq.c up_lowputs.c CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c -CMN_CSRCS += up_nputs.c up_releasepending.c up_releasestack.c +CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c CMN_CSRCS += up_stackframe.c up_swint1.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/sparc/src/bm3823/Make.defs b/arch/sparc/src/bm3823/Make.defs index 66efadc9f726a..e716b96325a09 100644 --- a/arch/sparc/src/bm3823/Make.defs +++ b/arch/sparc/src/bm3823/Make.defs @@ -29,7 +29,7 @@ CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c CMN_CSRCS += up_createstack.c up_doirq.c up_exit.c up_idle.c up_initialize.c CMN_CSRCS += up_initialstate.c up_irq.c up_lowputs.c CMN_CSRCS += up_mdelay.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c -CMN_CSRCS += up_nputs.c up_releasepending.c up_releasestack.c +CMN_CSRCS += up_puts.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_schedulesigaction.c up_sigdeliver.c CMN_CSRCS += up_stackframe.c up_swint1.c up_udelay.c up_unblocktask.c up_usestack.c diff --git a/arch/sparc/src/common/up_puts.c b/arch/sparc/src/common/up_puts.c new file mode 100644 index 0000000000000..7ab7bd07fffdb --- /dev/null +++ b/arch/sparc/src/common/up_puts.c @@ -0,0 +1,61 @@ +/**************************************************************************** + * arch/sparc/src/common/up_puts.c + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include +#include + +#include "up_internal.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: up_puts + * + * Description: + * This is a low-level helper function used to support debug. + * + ****************************************************************************/ + +void up_puts(const char *str) +{ + while (*str) + { + up_putc(*str++); + } +} + diff --git a/arch/avr/src/common/up_nputs.c b/arch/x86/src/common/up_puts.c similarity index 94% rename from arch/avr/src/common/up_nputs.c rename to arch/x86/src/common/up_puts.c index 2c1e0c7667ad4..cb21fed40a311 100644 --- a/arch/avr/src/common/up_nputs.c +++ b/arch/x86/src/common/up_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/avr/src/common/up_nputs.c + * arch/x86/src/common/up_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,6 +25,8 @@ #include #include +#include "up_internal.h" + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -42,16 +44,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/x86/src/qemu/Make.defs b/arch/x86/src/qemu/Make.defs index 4cd986f79db66..9365134ea7078 100644 --- a/arch/x86/src/qemu/Make.defs +++ b/arch/x86/src/qemu/Make.defs @@ -32,7 +32,7 @@ CMN_CSRCS += up_irq.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c CMN_CSRCS += up_regdump.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_savestate.c up_sigdeliver.c CMN_CSRCS += up_schedulesigaction.c up_stackframe.c up_unblocktask.c -CMN_CSRCS += up_usestack.c up_nputs.c +CMN_CSRCS += up_usestack.c up_puts.c # Required QEMU files diff --git a/arch/x86_64/src/common/up_nputs.c b/arch/x86_64/src/common/up_nputs.c deleted file mode 100644 index 6c0935f7ff9ba..0000000000000 --- a/arch/x86_64/src/common/up_nputs.c +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** - * arch/x86_64/src/common/up_nputs.c - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include -#include - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: up_nputs - * - * Description: - * This is a low-level helper function used to support debug. - * - ****************************************************************************/ - -void up_nputs(const char *str, size_t len) -{ - while (*str && len-- > 0) - { - up_putc(*str++); - } -} diff --git a/arch/x86_64/src/common/up_puts.c b/arch/x86_64/src/common/up_puts.c new file mode 100644 index 0000000000000..350ed55aec3cf --- /dev/null +++ b/arch/x86_64/src/common/up_puts.c @@ -0,0 +1,60 @@ +/**************************************************************************** + * arch/x86_64/src/common/up_puts.c + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include +#include + +#include "up_internal.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: up_puts + * + * Description: + * This is a low-level helper function used to support debug. + * + ****************************************************************************/ + +void up_puts(const char *str) +{ + while (*str) + { + up_putc(*str++); + } +} diff --git a/arch/x86_64/src/intel64/Make.defs b/arch/x86_64/src/intel64/Make.defs index 503a27504a4e0..6d09dde282a29 100644 --- a/arch/x86_64/src/intel64/Make.defs +++ b/arch/x86_64/src/intel64/Make.defs @@ -27,7 +27,7 @@ CMN_CSRCS += up_irq.c up_modifyreg8.c up_modifyreg16.c up_modifyreg32.c CMN_CSRCS += up_regdump.c up_releasepending.c up_releasestack.c CMN_CSRCS += up_reprioritizertr.c up_savestate.c up_sigdeliver.c CMN_CSRCS += up_schedulesigaction.c up_stackframe.c up_unblocktask.c -CMN_CSRCS += up_usestack.c up_nputs.c +CMN_CSRCS += up_usestack.c up_puts.c CMN_CSRCS += up_rtc.c CMN_CSRCS += up_map_region.c diff --git a/arch/xtensa/src/common/Make.defs b/arch/xtensa/src/common/Make.defs index 1b15e05aa5a2f..0d1c0162f5783 100644 --- a/arch/xtensa/src/common/Make.defs +++ b/arch/xtensa/src/common/Make.defs @@ -32,7 +32,7 @@ CMN_CSRCS += xtensa_cpenable.c xtensa_createstack.c xtensa_exit.c CMN_CSRCS += xtensa_initialize.c xtensa_initialstate.c CMN_CSRCS += xtensa_irqdispatch.c xtensa_lowputs.c xtensa_mdelay.c CMN_CSRCS += xtensa_modifyreg8.c xtensa_modifyreg16.c xtensa_modifyreg32.c -CMN_CSRCS += xtensa_nputs.c xtensa_releasepending.c xtensa_releasestack.c +CMN_CSRCS += xtensa_puts.c xtensa_releasepending.c xtensa_releasestack.c CMN_CSRCS += xtensa_reprioritizertr.c xtensa_schedsigaction.c CMN_CSRCS += xtensa_sigdeliver.c xtensa_stackframe.c xtensa_udelay.c CMN_CSRCS += xtensa_unblocktask.c xtensa_usestack.c xtensa_swint.c diff --git a/arch/xtensa/src/common/xtensa_nputs.c b/arch/xtensa/src/common/xtensa_nputs.c deleted file mode 100644 index 46764e3b4057f..0000000000000 --- a/arch/xtensa/src/common/xtensa_nputs.c +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** - * arch/xtensa/src/common/xtensa_nputs.c - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include -#include - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: up_nputs - * - * Description: - * This is a low-level helper function used to support debug. - * - ****************************************************************************/ - -void up_nputs(const char *str, size_t len) -{ - while (*str && len-- > 0) - { - up_putc(*str++); - } -} diff --git a/arch/ceva/src/common/up_nputs.c b/arch/xtensa/src/common/xtensa_puts.c similarity index 92% rename from arch/ceva/src/common/up_nputs.c rename to arch/xtensa/src/common/xtensa_puts.c index e2e18a5d78aaf..9aaa92b757f9c 100644 --- a/arch/ceva/src/common/up_nputs.c +++ b/arch/xtensa/src/common/xtensa_puts.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/ceva/src/common/up_nputs.c + * arch/xtensa/src/common/xtensa_puts.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -25,21 +25,23 @@ #include #include +#include "xtensa.h" + /**************************************************************************** * Public Functions ****************************************************************************/ /**************************************************************************** - * Name: up_nputs + * Name: up_puts * * Description: * This is a low-level helper function used to support debug. * ****************************************************************************/ -void up_nputs(const char *str, size_t len) +void up_puts(const char *str) { - while (*str && len-- > 0) + while (*str) { up_putc(*str++); } diff --git a/arch/z16/src/common/z16_puts.c b/arch/z16/src/common/z16_puts.c new file mode 100644 index 0000000000000..26e14f5bb976a --- /dev/null +++ b/arch/z16/src/common/z16_puts.c @@ -0,0 +1,46 @@ +/**************************************************************************** + * arch/z16/src/common/z16_puts.c + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include +#include + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: up_puts + * + * Description: + * This is a low-level helper function used to support debug. + * + ****************************************************************************/ + +void up_puts(const char *str) +{ + while (*str) + { + up_putc(*str++); + } +} diff --git a/arch/z16/src/z16f/Make.defs b/arch/z16/src/z16f/Make.defs index 264be6b4b62fe..ab95c4473ed1e 100644 --- a/arch/z16/src/z16f/Make.defs +++ b/arch/z16/src/z16f/Make.defs @@ -26,7 +26,7 @@ CMN_CSRCS += z16_stackdump.c z16_copystate.c CMN_CSRCS += z16_mdelay.c z16_udelay.c z16_createstack.c z16_registerdump.c CMN_CSRCS += z16_unblocktask.c z16_doirq.c z16_releasepending.c z16_usestack.c CMN_CSRCS += z16_exit.c z16_releasestack.c z16_stackframe.c z16_idle.c -CMN_CSRCS += z16_reprioritizertr.c z16_nputs.c +CMN_CSRCS += z16_reprioritizertr.c z16_puts.c CHIP_SSRCS = z16f_lowuart.S z16f_saveusercontext.S z16f_restoreusercontext.S CHIP_CSRCS = z16f_clkinit.c z16f_sysexec.c z16f_irq.c z16f_serial.c diff --git a/arch/z80/src/common/z80_nputs.c b/arch/z80/src/common/z80_nputs.c deleted file mode 100644 index 839b8318a2b42..0000000000000 --- a/arch/z80/src/common/z80_nputs.c +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** - * arch/z80/src/common/z80_nputs.c - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -/**************************************************************************** - * Included Files - ****************************************************************************/ - -#include -#include - -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -/**************************************************************************** - * Public Functions - ****************************************************************************/ - -/**************************************************************************** - * Name: up_nputs - * - * Description: - * This is a low-level helper function used to support debug. - * - ****************************************************************************/ - -void up_nputs(const char *str, size_t len) -{ - while (*str && len-- > 0) - { - up_putc(*str++); - } -} diff --git a/arch/z80/src/common/z80_puts.c b/arch/z80/src/common/z80_puts.c new file mode 100644 index 0000000000000..64b197f7f4b49 --- /dev/null +++ b/arch/z80/src/common/z80_puts.c @@ -0,0 +1,60 @@ +/**************************************************************************** + * arch/z80/src/common/z80_puts.c + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include +#include + +#include "z80_internal.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: up_puts + * + * Description: + * This is a low-level helper function used to support debug. + * + ****************************************************************************/ + +void up_puts(const char *str) +{ + while (*str) + { + up_putc(*str++); + } +} diff --git a/arch/z80/src/ez80/Make.defs b/arch/z80/src/ez80/Make.defs index b10df0800a63b..bb3034fdb4d69 100644 --- a/arch/z80/src/ez80/Make.defs +++ b/arch/z80/src/ez80/Make.defs @@ -23,7 +23,7 @@ CMN_CSRCS += z80_releasestack.c z80_interruptcontext.c z80_blocktask.c CMN_CSRCS += z80_unblocktask.c z80_exit.c z80_releasepending.c CMN_CSRCS += z80_reprioritizertr.c z80_idle.c z80_assert.c z80_doirq.c CMN_CSRCS += z80_mdelay.c z80_stackframe.c z80_udelay.c z80_usestack.c -CMN_CSRCS += z80_nputs.c +CMN_CSRCS += z80_puts.c ifeq ($(CONFIG_ARCH_STACKDUMP),y) CMN_CSRCS += z80_stackdump.c diff --git a/arch/z80/src/z180/Make.defs b/arch/z80/src/z180/Make.defs index c48c99807305a..e7045734e413b 100644 --- a/arch/z80/src/z180/Make.defs +++ b/arch/z80/src/z180/Make.defs @@ -30,7 +30,7 @@ CMN_CSRCS = z80_allocateheap.c z80_assert.c z80_blocktask.c z80_createstack.c CMN_CSRCS += z80_doirq.c z80_exit.c z80_idle.c z80_initialize.c CMN_CSRCS += z80_interruptcontext.c z80_mdelay.c z80_releasepending.c CMN_CSRCS += z80_releasestack.c z80_stackframe.c z80_reprioritizertr.c -CMN_CSRCS += z80_unblocktask.c z80_udelay.c z80_usestack.c z80_nputs.c +CMN_CSRCS += z80_unblocktask.c z80_udelay.c z80_usestack.c z80_puts.c CHIP_ASRCS = z180_restoreusercontext.asm z180_saveusercontext.asm CHIP_ASRCS += z180_vectcommon.asm diff --git a/arch/z80/src/z8/Make.defs b/arch/z80/src/z8/Make.defs index 92798ecb0829f..7fa8e49f21fba 100644 --- a/arch/z80/src/z8/Make.defs +++ b/arch/z80/src/z8/Make.defs @@ -25,7 +25,7 @@ CMN_CSRCS += z80_releasestack.c z80_interruptcontext.c z80_blocktask.c CMN_CSRCS += z80_unblocktask.c z80_exit.c z80_releasepending.c CMN_CSRCS += z80_reprioritizertr.c z80_idle.c z80_assert.c z80_doirq.c CMN_CSRCS += z80_mdelay.c z80_stackframe.c z80_udelay.c z80_usestack.c -CMN_CSRCS += z80_nputs.c +CMN_CSRCS += z80_puts.c CHIP_SSRCS = z8_vector.S z8_saveusercontext.S z8_restorecontext.S CHIP_CSRCS = z8_initialstate.c z8_irq.c z8_saveirqcontext.c diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index 360d97d2d40a9..41d24d073a147 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -217,7 +217,16 @@ static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel, FAR const char *buffer, size_t buflen) { #if defined(CONFIG_ARCH_LOWPUTC) - up_puts(buffer); + static sem_t sem = SEM_INITIALIZER(1); + size_t nwritten; + + nxsem_wait(&sem); + for (nwritten = 0; nwritten < buflen; nwritten++) + { + up_putc(buffer[nwritten]); + } + + nxsem_post(&sem); #endif UNUSED(channel); diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index a28e271cc541f..302767b5cde03 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -2552,8 +2552,7 @@ int up_putc(int ch); * ****************************************************************************/ -#define up_puts(str) up_nputs(str, ~((size_t)0)) -void up_nputs(FAR const char *str, size_t len); +void up_puts(FAR const char *str); /**************************************************************************** * Name: arch_sporadic_*