mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
* moved config to sys, split away board specifics
This commit is contained in:
parent
57eb9ba8d2
commit
88ccc555dc
@ -1,7 +1,7 @@
|
||||
SubDir TOP board msba2-common ;
|
||||
|
||||
Module board_common : board_common_init.c ;
|
||||
Module config : config.c ;
|
||||
Module board_config : board_config.c ;
|
||||
|
||||
SubInclude TOP board msba2-common drivers ;
|
||||
|
||||
|
||||
@ -25,8 +25,6 @@
|
||||
#include <cpu.h>
|
||||
#include <lpm.h>
|
||||
#include <thread.h>
|
||||
#include <hwtimer.h>
|
||||
#include <config.h>
|
||||
|
||||
#ifdef MODULE_AUTO_INIT
|
||||
#include <auto_init.h>
|
||||
@ -42,12 +40,6 @@ volatile int lpm_prevent_sleep = 0;
|
||||
extern void main(void);
|
||||
extern void cpu_switch_context_exit(void);
|
||||
|
||||
config_t sysconfig = {
|
||||
0, ///< default ID
|
||||
0, ///< default radio address
|
||||
0, ///< default radio channel
|
||||
};
|
||||
|
||||
static void idle_thread(void) {
|
||||
while(1) {
|
||||
if (lpm_prevent_sleep) {
|
||||
|
||||
@ -31,6 +31,7 @@ Module timex : timex.c ;
|
||||
Module vtimer : vtimer.c : hwtimer timex ;
|
||||
Module swtimer : swtimer.c : hwtimer ;
|
||||
Module posix_io : posix_io.c ;
|
||||
Module config : config.c : board_config ;
|
||||
|
||||
Module auto_init : auto_init.c ;
|
||||
|
||||
|
||||
7
sys/config.c
Normal file
7
sys/config.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <config.h>
|
||||
|
||||
config_t sysconfig = {
|
||||
0, ///< default ID
|
||||
0, ///< default radio address
|
||||
0, ///< default radio channel
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user