This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Timer mechanism
- From: "Giovanni Perbellini" <perbellini at sci dot univr dot it>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 13 Jan 2004 17:21:36 +0100
- Subject: [ECOS] Timer mechanism
- References: <114780-22004126162756479@M2W055.mail2web.com>
Hi all,
I'd like to know how the timer mechanism works.
I have used a function to return the current time, cyg_current_time().
I guess that this function returns the ticks count since when I turn on the
board, is it correct?
Otherwise, Is there a variable, method or class returning/containing the
ticks count since the power up?
Moreover, I have read that there is a macro to read the current value of the
timing devices counter since the last interrupt, called HAL_CLOCK_READ. What
is the relationship between the tick and interrupt?
Regards
Giovanni Perbellini
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss