[ECOS] Change system tick during runtime

Slawek sgp@telsatgp.com.pl
Wed Oct 1 12:59:00 GMT 2003


Hi,

undef CYGNUM_HAL_RTC_DENOMINATOR
and define it as a variable (in any of the global .h files).
The compiler shoud do the rest.

-- 
Slawek Piotrowski

----- Original Message ----- 
From: "Daniel Lidsten" <Daniel.Lidsten@combitechsystems.com>
To: "eCos Discussion" <ecos-discuss@sources.redhat.com>
Sent: Wednesday, October 01, 2003 2:55 PM
Subject: [ECOS] Change system tick during runtime


Hi,

Is there any way of changing the system tick during runtime? I have made
a quick test by letting an application provided variable be used when
setting the decrementer in the HAL_CLOCK_*-functions. This will make the
system generate tick more or less often depending on the value set.
However, the drawback is that the system expects that we have a
heartbeat of 100Hz and that will differ when changing the decrementer.
Is there any way to get around this? Is there any way to change the
CYGNUM_HAL_RTC_DENOMINATOR during runtime so that the change will affect
every file that use it? I want to be able to have 10000 ticks per second
but then i also need to let the system know that we have 10000 ticks per
seconds so that not all timeouts and stuff gets all confused.

Regards, Daniel Lidsten

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




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



More information about the Ecos-discuss mailing list