Makefile.dep: add auto_init_xtimer pseudomodule
This commit is contained in:
parent
370998cc3e
commit
a5a036be43
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user