Skip to content

Commit

Permalink
ports/psoc6: Moving mp_hal_stdout_tx_strn to src file.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <[email protected]>
  • Loading branch information
NikhitaR-IFX authored and actions-user committed Jan 11, 2024
1 parent b98dfb3 commit ecc3cfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions ports/psoc6/mphalport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 (;;) {
Expand Down
8 changes: 0 additions & 8 deletions ports/psoc6/mphalport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ecc3cfd

Please sign in to comment.