This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Change system tick during runtime
- From: "Daniel Lidsten" <Daniel dot Lidsten at combitechsystems dot com>
- To: "eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 1 Oct 2003 14:55:44 +0200
- 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