This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Timing components


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]