This is the mail archive of the ecos-discuss@sources.redhat.com 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: RTC eCos


On Wed, Dec 01, 2004 at 09:31:00AM +0100, Meulendijks, J. wrote:
> 
> 
> -----Original Message-----
> From: Meulendijks, J. 
> Sent: woensdag 1 december 2004 09:05
> To: 'ecos-discuss@sources.redhat.com'
> Cc: 'bob.koninckx@o-3s.com'
> Subject: 
> 
> 
> Hi all,
> 
> I was wandering if it is possible to increment the RTC (clock which drives eCos
> -> thread switching, alarms etc) manually??

Yes, it probably can be done, but it would be a bit strange. Why do
you want to do this?

cyg_real_time_clock() returns the clock which is used for this. Using
this call cyg_clock_to_counter which will return the handle to the
counter. Using this handle you can call cyg_counter_tick on the
counter.

        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]