This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: RTC eCos
- From: "Meulendijks, J." <Meulendijks at WT dot TNO dot NL>
- To: "'Andrew Lunn'" <andrew at lunn dot ch>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 1 Dec 2004 10:29:06 +0100
- Subject: RE: [ECOS] RTC eCos
So this code should work?
cyg_handle_t h;
cyg_clock_to_counter(cyg_real_time_clock(), &h);
cyg_counter_tick(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
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