1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16595 from fjmolinas/pr_init_timers_before_random

sys/auto_init: init ztimer/xtimer before random
This commit is contained in:
benpicco 2021-07-11 21:20:44 +02:00 committed by GitHub
commit c2e9bc5c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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