1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

config: moved from core to sys

There's no need to run config_load from core directly, can be done by
auto_init.
This commit is contained in:
Oleg Hahm 2014-10-30 17:48:58 +01:00
parent 09f225f6ed
commit 6b39ce9650
3 changed files with 9 additions and 9 deletions

View File

@ -39,10 +39,6 @@
#include <auto_init.h>
#endif
#ifdef MODULE_CONFIG
#include "config.h"
#endif
volatile int lpm_prevent_sleep = 0;
extern int main(void);
@ -97,11 +93,6 @@ void kernel_init(void)
printf("kernel_init(): error creating main task.\n");
}
#ifdef MODULE_CONFIG
DEBUG("kernel_init(): loading config\n");
config_load();
#endif
printf("kernel_init(): jumping into first task...\n");
cpu_switch_context_exit();

View File

@ -19,6 +19,10 @@
#include "auto_init.h"
#ifdef MODULE_CONFIG
#include "config.h"
#endif
#ifdef MODULE_SHT11
#include "sht11.h"
#endif
@ -187,6 +191,11 @@ void auto_init_net_if(void)
void auto_init(void)
{
#ifdef MODULE_CONFIG
DEBUG("Auto init loading config\n");
config_load();
#endif
#ifdef MODULE_VTIMER
DEBUG("Auto init vtimer module.\n");
vtimer_init();