Aleix Conchillo Flaqué
aconchillo at ieec.fcr.es
Mon Oct 16 14:53:10 UTC 2006
I'm trying to run some simple examples based on timers and there are
some things I don't quite understand.
I've seen that the ERC32 BSP uses the RTC as the clock driver, which
is in charge of calling rtems_clock_tick() (from the ISR) which
increments the internal tick counters (TOD, Watchdog, ...).
Everything fine, by now.
Then, I've used the rtems_clock_get with
RTEMS_CLOCK_GET_TICKS_SINCE_BOOT to get the current ticks since boot,
and it has returned me 100 (I haven't configured anything). Is this
correct? With this value I can't even have millisecond precision,
thus calling RTEMS_MILLISECONDS_TO_TICKS (1234) I get 123 ticks,
which is correct for the 100 ticks given, but doesn't make much sense.
This might be obvious, am I missing something?
Thanks in advance.
More information about the users