From b118fb4c44af453f68769ce07269250e7ca92613 Mon Sep 17 00:00:00 2001 From: NikhitaR-IFX Date: Wed, 3 Jan 2024 16:02:31 +0530 Subject: [PATCH] ports/psoc6: Fix build issue. Signed-off-by: NikhitaR-IFX --- ports/psoc6/mphalport.c | 5 +++++ ports/psoc6/mphalport.h | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ports/psoc6/mphalport.c b/ports/psoc6/mphalport.c index 3602aa59df767..04e1c4d1da945 100644 --- a/ports/psoc6/mphalport.c +++ b/ports/psoc6/mphalport.c @@ -87,6 +87,11 @@ uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags) { return ret; } +// Send string of given length +void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) { + int r = write(STDOUT_FILENO, str, len); + (void)r; +} int mp_hal_stdin_rx_chr(void) { for (;;) { diff --git a/ports/psoc6/mphalport.h b/ports/psoc6/mphalport.h index 94b37c155fcf1..9982cc1e8720a 100644 --- a/ports/psoc6/mphalport.h +++ b/ports/psoc6/mphalport.h @@ -54,14 +54,6 @@ uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags); int mp_hal_stdin_rx_chr(void); - -// Send string of given length -STATIC inline void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) { - int r = write(STDOUT_FILENO, str, len); - (void)r; -} - - mp_uint_t begin_atomic_section(); void end_atomic_section(mp_uint_t state);