This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Timing components
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Shilpa <shilpa at garrettcom dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 20 May 2008 20:05:35 +0200
- Subject: Re: [ECOS] Timing components
- References: <ANEIIDMJJAHCEKBLDEMEAEKCCAAA.shilpa@garrettcom.com>
On Tue, May 20, 2008 at 10:34:06AM -0700, Shilpa wrote:
> Hi all
>
> I have few doubts on the timing components. I kindly request to clarify me
> on these
>
> 1)HAL_CLOCK_INITIALIZE(_period_)
> In the above function, how to calculate the period. For eg I want to
> initialize clock for 2 hrs, how to calculate the period for2 hrs.
>
> I read that this function interrupts after the specified period. I want
> to execute a funtion after a specified period. How to do this.
>
> This may be simple but please guide me.
Keep reading the documents.
You are going about this completely the wrong way.
Maybe this will help a little.
http://ecos.sourceware.org/docs-latest/user-guide/clocks-and-alarm-handlers.html
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss