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

use putchar instead of raw uart access #259

Merged
merged 1 commit into from
Dec 5, 2024
Merged
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
7 changes: 1 addition & 6 deletions sources/System/Console/Trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
#define NANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS 1
#include "nanoprintf.h"

void pt_uart_putc(int c, void *context) {
uint8_t byte = (uint8_t)c;
// write directly to the UART instead of put_char() to save on extra function
// calls
uart_putc(DEBUG_UART, byte);
}
void pt_uart_putc(int c, void *context) { putchar(c); }

Trace::Trace() {}

Expand Down
Loading