Page 2 of 2

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

Posted: Fri Jul 18, 2014 7:33 am
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

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

Posted: Fri Jul 18, 2014 12:33 pm
by Giovanni
Hi,

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

Giovanni

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

Posted: Fri Jul 18, 2014 5:01 pm
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