1
0
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:
Kaspar Schleiser 2010-12-06 17:32:27 +01:00
parent 57eb9ba8d2
commit 88ccc555dc
5 changed files with 9 additions and 9 deletions

View File

@ -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 ;

View File

@ -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) {

View File

@ -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
View File

@ -0,0 +1,7 @@
#include <config.h>
config_t sysconfig = {
0, ///< default ID
0, ///< default radio address
0, ///< default radio channel
};