Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build issue #110

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading