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

sys/ztimer: no log for stdio_rtt/semihosting #18176

Merged
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: 7 additions & 0 deletions sys/ztimer/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
#include "ztimer/periph_rtc.h"
#include "ztimer/config.h"

/* both 'stdio_rtt' and 'stdio_semihosting' rely on ztimer for stdio output,
so not output is possible before 'ztimer' has been initiated, silence all
logs */
#if IS_USED(MODULE_STDIO_RTT) || IS_USED(MODULE_STDIO_SEMIHOSTING)
#undef LOG_LEVEL
#define LOG_LEVEL LOG_NONE
#endif
#include "log.h"

#define WIDTH_TO_MAXVAL(width) (UINT32_MAX >> (32 - width))
Expand Down