Makefile.dep: add auto_init_xtimer pseudomodule

This commit is contained in:
Francisco Molina 2020-01-11 10:03:10 +01:00
parent 370998cc3e
commit a5a036be43
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 3 additions and 2 deletions

View File

@ -680,6 +680,7 @@ ifneq (,$(filter arduino_pwm,$(FEATURES_USED)))
endif endif
ifneq (,$(filter xtimer,$(USEMODULE))) ifneq (,$(filter xtimer,$(USEMODULE)))
DEFAULT_MODULE += auto_init_xtimer
FEATURES_REQUIRED += periph_timer FEATURES_REQUIRED += periph_timer
USEMODULE += div USEMODULE += div
endif endif

View File

@ -24,7 +24,7 @@
#include "diskio.h" #include "diskio.h"
#endif #endif
#ifdef MODULE_XTIMER #ifdef MODULE_AUTO_INIT_XTIMER
#include "xtimer.h" #include "xtimer.h"
#endif #endif
@ -111,7 +111,7 @@ void auto_init(void)
void auto_init_random(void); void auto_init_random(void);
auto_init_random(); auto_init_random();
#endif #endif
#ifdef MODULE_XTIMER #ifdef MODULE_AUTO_INIT_XTIMER
DEBUG("Auto init xtimer module.\n"); DEBUG("Auto init xtimer module.\n");
xtimer_init(); xtimer_init();
#endif #endif