diff --git a/core/sched.c b/core/sched.c index 047a254c8b..6ea14e757d 100644 --- a/core/sched.c +++ b/core/sched.c @@ -36,7 +36,11 @@ volatile int last_pid = -1; clist_node_t *runqueues[SCHED_PRIO_LEVELS]; static uint32_t runqueue_bitcache = 0; +void sched_register_cb(void (*callback)(uint32_t, uint32_t)); + + #if SCHEDSTATISTICS + static void (*sched_cb)(uint32_t timestamp, uint32_t value) = NULL; schedstat pidlist[MAXTHREADS]; #endif @@ -134,6 +138,11 @@ void sched_run() { DEBUG("scheduler: done.\n"); } +#if SCHEDSTATISTICS +void sched_register_cb(void (*callback)(uint32_t, uint32_t)) { + sched_cb = callback; +} +#endif void sched_set_status(tcb_t *process, unsigned int status) { if (status & STATUS_ON_RUNQUEUE) { diff --git a/cpu/lpc2387/include/lpc2387-rtc.h b/cpu/lpc2387/include/lpc2387-rtc.h index 1f7793fa23..080a330cfc 100644 --- a/cpu/lpc2387/include/lpc2387-rtc.h +++ b/cpu/lpc2387/include/lpc2387-rtc.h @@ -51,7 +51,7 @@ and the mailinglist (subscription via web site) #include #include #include -#include +#include "lpc2387.h" /* ------------------------------------------------------------------------- */ /** diff --git a/drivers/cc110x/cc1100-csmaca-mac.c b/drivers/cc110x/cc1100-csmaca-mac.c index c632fcaba1..efa875631a 100644 --- a/drivers/cc110x/cc1100-csmaca-mac.c +++ b/drivers/cc110x/cc1100-csmaca-mac.c @@ -41,10 +41,10 @@ and the mailinglist (subscription via web site) #include #include -#include "cc1100.h" -#include "cc1100_phy.h" -#include "cc1100-csmaca-mac.h" -#include "protocol-multiplex.h" +#include +#include +#include +#include #include "hwtimer.h" #include diff --git a/projects/cc110x/main.c b/projects/cc110x/main.c index c552a7939f..59a91c2c87 100644 --- a/projects/cc110x/main.c +++ b/projects/cc110x/main.c @@ -4,8 +4,8 @@ #include #include -#include "drivers/cc110x/cc1100.h" -#include "radio/radio.h" +#include +#include #include "gpioint.h" #include "hwtimer.h" diff --git a/sys/shell/shell_commands.c b/sys/shell/shell_commands.c index 964b47588a..037045a288 100644 --- a/sys/shell/shell_commands.c +++ b/sys/shell/shell_commands.c @@ -49,7 +49,6 @@ extern void _get_blocksize(char* unused); extern void _get_sectorcount(char* unused); extern void _read_sector(char* sector); extern void _read_bytes(char* bytes); -extern void _write_bytes(char* bytes); #endif const shell_command_t _shell_command_list[] = {