[ECOS] changing the length of a tick
Tom Coremans
tom.coremans@acunia.com
Tue Feb 26 06:48:00 GMT 2002
Hi,
I`m trying to change the length of tick to 50 milli seconds with the
following code:
________________________
cyg_handle_t rclock;
cyg_resolution_t res;
cyg_uint32 nsec_per_tick = 50000000;
res.dividend = nsec_per_tick;
res.divisor = 1;
rclock = cyg_real_time_clock();
cyg_clock_set_resolution(rclock,res);
_____________________
but when I run a test this doesn`t seem to work.
It seems there are still 100 ticks in a second, the default
configuration.
Does anybody know whats wrong with this?
Thanks,
Tom
--
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