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

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
ifneq (,$(filter xtimer,$(USEMODULE)))
DEFAULT_MODULE += auto_init_xtimer
FEATURES_REQUIRED += periph_timer
USEMODULE += div
endif

View File

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