From 261a6154396c3eed95b4f543aa9b552807031909 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Mon, 25 Oct 2021 22:24:07 +0200 Subject: [PATCH] ztimer: Use auto_init for manual init in bootloaders --- sys/ztimer/auto_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ztimer/auto_init.c b/sys/ztimer/auto_init.c index 7dc2f2de2b..b24fdeb1fe 100644 --- a/sys/ztimer/auto_init.c +++ b/sys/ztimer/auto_init.c @@ -37,7 +37,7 @@ */ #include "kernel_defines.h" -#if IS_USED(MODULE_AUTO_INIT_ZTIMER) +#if IS_USED(MODULE_AUTO_INIT_ZTIMER) || RIOTBOOT #include "board.h" #include "ztimer.h" @@ -302,4 +302,4 @@ void ztimer_init(void) # endif #endif } -#endif /* IS_USED(MODULE_AUTO_INIT_ZTIMER) */ +#endif /* IS_USED(MODULE_AUTO_INIT_ZTIMER) || RIOTBOOT*/