1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

Merge pull request #18176 from fjmolinas/pr_ztimer_init_stdio_rtt_semihosting_log

sys/ztimer: no log for stdio_rtt/semihosting
This commit is contained in:
benpicco 2022-06-07 15:43:50 +02:00 committed by GitHub
commit 4b694958a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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