Merge pull request #2132 from JoaoS/energest_avr_rss2

add CPU energest measurements that were lacking in this platform
This commit is contained in:
George Oikonomou 2017-03-18 13:17:51 +00:00 committed by GitHub
commit dc782732e0

View File

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