RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

auto_init does not work

Open benpicco opened this issue 13 years ago • 3 comments

auto_init checks MODULE_$name defines for whether a module is present, e.g.

#ifdef MODULE_VTIMER
    DEBUG("Auto init vtimer module.\n");
    vtimer_init();
#endif 

However, MODULE_VTIMER is defined nowhere, at least not with the new buildsystem.

benpicco avatar May 30 '13 22:05 benpicco

ok, looks like

ED = $(USEMODULE:%=-DMODULE_%)

in Makefile.modules would actually do just this, but

USEMODULE += auto_init

doesn't have an effect for me still, I don't even get debug output.

benpicco avatar May 30 '13 22:05 benpicco

did you also added a USEMODULE += vtimer in your project Makefile? works for me fine

mmbabel avatar Jun 02 '13 18:06 mmbabel

See #43.

OlegHahm avatar Jun 04 '13 07:06 OlegHahm