add CPU energest measurements that were lacking in this platform

This commit is contained in:
root 2017-03-08 16:13:27 +00:00
parent 0ceb45ee78
commit 42cbe85a49

View file

@ -258,6 +258,10 @@ initialize(void)
/* rtimers needed for radio cycling */ /* rtimers needed for radio cycling */
rtimer_init(); rtimer_init();
/* after the timer intitialisation we start the cpu measurement */
ENERGEST_ON(ENERGEST_TYPE_CPU);
/* Initialize process subsystem */ /* Initialize process subsystem */
process_init(); process_init();
@ -458,6 +462,11 @@ main(void)
#if NETSTACK_CONF_WITH_IPV6 #if NETSTACK_CONF_WITH_IPV6
uip_ds6_nbr_t *nbr; uip_ds6_nbr_t *nbr;
#endif /* NETSTACK_CONF_WITH_IPV6 */ #endif /* NETSTACK_CONF_WITH_IPV6 */
/* we can initialize the energest here, before the hardware */
energest_init();
initialize(); initialize();
while(1) { while(1) {