Makefile.dep: add auto_init_random MODULE
This commit is contained in:
parent
a5a036be43
commit
73bf2293bc
@ -754,7 +754,9 @@ ifneq (,$(filter puf_sram,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter random,$(USEMODULE)))
|
ifneq (,$(filter random,$(USEMODULE)))
|
||||||
|
DEFAULT_MODULE += auto_init_random
|
||||||
USEMODULE += prng
|
USEMODULE += prng
|
||||||
|
DEFAULT_MODULE += auto_init_random
|
||||||
# select default prng
|
# select default prng
|
||||||
ifeq (,$(filter prng_%,$(USEMODULE)))
|
ifeq (,$(filter prng_%,$(USEMODULE)))
|
||||||
USEMODULE += prng_tinymt32
|
USEMODULE += prng_tinymt32
|
||||||
|
|||||||
@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
void auto_init(void)
|
void auto_init(void)
|
||||||
{
|
{
|
||||||
#ifdef MODULE_PRNG
|
#ifdef MODULE_AUTO_INIT_RANDOM
|
||||||
void auto_init_random(void);
|
void auto_init_random(void);
|
||||||
auto_init_random();
|
auto_init_random();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user