mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
energest needs to be initialized before network
This commit is contained in:
parent
7fcb9554f4
commit
3ecd955f01
@ -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.14 2008/03/07 17:54:22 nifi Exp $
|
* @(#)$Id: contiki-esb-main.c,v 1.15 2008/03/13 15:58:44 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
@ -118,6 +118,15 @@ main(void)
|
|||||||
|
|
||||||
ctimer_init();
|
ctimer_init();
|
||||||
|
|
||||||
|
#if PROFILE_CONF_ON
|
||||||
|
profile_init();
|
||||||
|
#endif /* PROFILE_CONF_ON */
|
||||||
|
|
||||||
|
#if ENERGEST_CONF_ON
|
||||||
|
energest_init();
|
||||||
|
ENERGEST_ON(ENERGEST_TYPE_CPU);
|
||||||
|
#endif /* ENERGEST_CONF_ON */
|
||||||
|
|
||||||
init_net();
|
init_net();
|
||||||
|
|
||||||
printf(CONTIKI_VERSION_STRING " started. ");
|
printf(CONTIKI_VERSION_STRING " started. ");
|
||||||
@ -132,15 +141,6 @@ main(void)
|
|||||||
clock_delay(100);
|
clock_delay(100);
|
||||||
leds_off(LEDS_RED);
|
leds_off(LEDS_RED);
|
||||||
|
|
||||||
#if PROFILE_CONF_ON
|
|
||||||
profile_init();
|
|
||||||
#endif /* PROFILE_CONF_ON */
|
|
||||||
|
|
||||||
#if ENERGEST_CONF_ON
|
|
||||||
energest_init();
|
|
||||||
ENERGEST_ON(ENERGEST_TYPE_CPU);
|
|
||||||
#endif /* ENERGEST_CONF_ON */
|
|
||||||
|
|
||||||
init_apps();
|
init_apps();
|
||||||
print_processes(autostart_processes);
|
print_processes(autostart_processes);
|
||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
Loading…
Reference in New Issue
Block a user