added ctimer init + printout of the autostarted processes
This commit is contained in:
parent
52a8e8d16b
commit
fa5a20f948
1 changed files with 15 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-esb-main.c,v 1.11 2007/05/22 21:05:53 adamdunkels Exp $
|
* @(#)$Id: contiki-esb-main.c,v 1.12 2007/11/26 19:34:23 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
@ -49,6 +49,17 @@ PROCINIT(&sensors_process, /*&ir_process,*/
|
||||||
|
|
||||||
PROCESS(contiki_esb_main_init_process, "Contiki ESB init process");
|
PROCESS(contiki_esb_main_init_process, "Contiki ESB init process");
|
||||||
|
|
||||||
|
static void
|
||||||
|
print_processes(struct process **processes)
|
||||||
|
{
|
||||||
|
printf("Starting");
|
||||||
|
while(*processes != NULL) {
|
||||||
|
printf(" '%s'", (*processes)->name);
|
||||||
|
processes++;
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
|
|
||||||
PROCESS_THREAD(contiki_esb_main_init_process, ev, data)
|
PROCESS_THREAD(contiki_esb_main_init_process, ev, data)
|
||||||
{
|
{
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
@ -65,6 +76,7 @@ PROCESS_THREAD(contiki_esb_main_init_process, ev, data)
|
||||||
|
|
||||||
PROCESS_PAUSE();
|
PROCESS_PAUSE();
|
||||||
|
|
||||||
|
print_processes((struct process **) autostart_processes);
|
||||||
autostart_start((struct process **) autostart_processes);
|
autostart_start((struct process **) autostart_processes);
|
||||||
|
|
||||||
beep_spinup();
|
beep_spinup();
|
||||||
|
@ -134,6 +146,8 @@ main(void)
|
||||||
|
|
||||||
process_start(&contiki_esb_main_init_process, NULL);
|
process_start(&contiki_esb_main_init_process, NULL);
|
||||||
|
|
||||||
|
ctimer_init();
|
||||||
|
|
||||||
/* watchdog_init();*/
|
/* watchdog_init();*/
|
||||||
|
|
||||||
/* beep();*/
|
/* beep();*/
|
||||||
|
|
Loading…
Reference in a new issue