1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/auto_init: init ztimer/xtimer before random

This commit is contained in:
Francisco Molina 2021-06-29 13:05:29 +02:00
parent 25c871ed9a
commit a9b104ca22
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -28,12 +28,7 @@
void auto_init(void)
{
if (IS_USED(MODULE_AUTO_INIT_RANDOM)) {
LOG_DEBUG("Auto init random.\n");
extern void auto_init_random(void);
auto_init_random();
}
if (IS_USED(MODULE_AUTO_INIT_ZTIMER)) {
if (IS_USED(MODULE_AUTO_INIT_ZTIMER)) {
LOG_DEBUG("Auto init ztimer.\n");
void ztimer_init(void);
ztimer_init();
@ -44,6 +39,11 @@ void auto_init(void)
extern void xtimer_init(void);
xtimer_init();
}
if (IS_USED(MODULE_AUTO_INIT_RANDOM)) {
LOG_DEBUG("Auto init random.\n");
extern void auto_init_random(void);
auto_init_random();
}
if (IS_USED(MODULE_SCHEDSTATISTICS)) {
LOG_DEBUG("Auto init schedstatistics.\n");
extern void init_schedstatistics(void);