* [ECOS] hal_delay_us doesn't work on PPC decrementer interrupt not 100Hz
@ 2010-05-25 12:39 William Wagner
0 siblings, 0 replies; only message in thread
From: William Wagner @ 2010-05-25 12:39 UTC (permalink / raw)
To: ecos-discuss
Hello,
Been looking at the code in packages/hal/powerpc/arch/src/hal_intr.c
that calculates how many decrementer ticks are need to delay a us and it
appears to be hard coded for CYGNUM_HAL_RTC_PERIOD corresponds to 10,000us
To cope with this changing in the CDL I believe the code should be:
ticks_per_us = ((long long)1 * (CYGNUM_HAL_RTC_PERIOD *
CYGNUM_HAL_RTC_DENOMINATOR)) / (CYGNUM_HAL_RTC_NUMERATOR / 1000);
Does this change make sense or is there some reason it won't work?
Thanks
Will
--
------------------------------------------------------------------------
Will Wagner will_wagner@carallon.com
Development Manager Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-21 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-25 12:39 [ECOS] hal_delay_us doesn't work on PPC decrementer interrupt not 100Hz William Wagner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).