Meulendijks, J. Meulendijks@WT.TNO.NL
Wed Dec 1 09:45:00 GMT 2004

So this code should work?

 cyg_handle_t h;
 cyg_clock_to_counter(cyg_real_time_clock(), &h);

I already used this code and it goes wrong when the code "cyg_counter_tick" is
executed... What could be the problem?

I'm just experimenting something...

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: woensdag 1 december 2004 10:24
To: Meulendijks, J.
Cc: 'ecos-discuss@sources.redhat.com'
Subject: Re: [ECOS] 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
> -> 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


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list