Arduino's millis(), micros() equivalent in chibios

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderator: tfAteba

mansour
Posts: 4
Joined: Wed Jun 05, 2013 4:08 pm

Re: Arduino's millis(), micros() equivalent in chibios

Post by mansour »

Hi,

Is halGetCounterValue() also available on Chibios 3.0 ?
How can i get the equivelant of millis() and micros() in chibios 3.0?

Omar
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Arduino's millis(), micros() equivalent in chibios

Post by Giovanni »

Hi,

The realtime counter is not yet implemented in AVR, mills() can be repalced by chThdSleepMilliseconds().

Giovanni
mansour
Posts: 4
Joined: Wed Jun 05, 2013 4:08 pm

Re: Arduino's millis(), micros() equivalent in chibios

Post by mansour »

Hi Giovani,

Ok thanks for the quick reply,

I actually needed the counter values to add time traces to my serial logging.
I guess i will keep on using the 2.6.x until the port of 3.0 is complete.

Omar
Post Reply