This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Adjusting "HAL_DELAY_US" for new clock freq
- From: "Gary Thomas" <gary at mlbassoc dot com>
- To: "Rycerz Roman-G11565" <roman dot rycerz at motorola dot com>
- Cc: "Ecos-Discuss at Sources dot Com" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 10 May 2004 09:21:53 -0600 (MDT)
- Subject: Re: [ECOS] Adjusting "HAL_DELAY_US" for new clock freq
- References: <5D454811D0A1D711A12A00065BF36FAD03E40C78@il06exm11>
Rycerz Roman-G11565 said:
> Hi
>
> I am updating a MPC5xx PowerPC board to run at a new clock freq than the original of 40mhz to
> 56mhz.
> What I am confused about is how to accomplish the proper scaling in "hal_delay_us" routine.
> Can anyone give me some clues/advice on making this change ??
You should not have to change anything other than the RTC calculations,
in particular CYGHWR_HAL_POWERPC_BOARD_SPEED The timings should work
out from there.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss