iot-lab / iot-lab-contiki-ng

IoT-LAB Contiki-NG port
3 stars 6 forks source link

Improved rtimer to use unsigned 32 bits variable #10

Open Yagoor opened 4 years ago

Yagoor commented 4 years ago

While working on the Energest implementation I noticed that we were using a 16 bits rtimer. However the openlab platform supports a way around the 16 bits timer. It has a wraparound counter that can fix the overflows. A 16 bits timer in this platform would wraparound every 2 seconds, this was causing wrong measurements in the energest.