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);