PIT initializing in MPC860
Brett Swimley
brett.swimley at aedbozeman.com
Thu Jan 22 22:51:59 UTC 2004
Joel Sherrill wrote:
>
> If I remember the problem correctly, you have to know the
> clock frequency to select the proper divider and this is
> all done inside the BSP at compile time. Is there a way to
> probe for the clock frequency being used?
>
> If not, would it be feasible to have a BSP specific configure
> option to specify the clock information? And use some default
> value otherwise based upon the BSP model variant?
>
>I do just that with my BSP.
>
>I have the following in my linkcmds file:
>/*
> * Default Clock Speed at 48 MHZ
> */
>
>_CPUClockSpeed = DEFINED(_CPUClockSpeed ) ? _CPUClockSpeed : 48000000;
>
>Then, to override in my Application specific Make file:
>
># change the clock rate
>AM_LDFLAGS += -Wl,--defsym -Wl,_CPUClockSpeed=64000000
>
>
>>
>
>
--
Brett Swimley
Advanced Electronic Designs
brett.swimley at aedbozeman.com
ph: 406-585-8892 fax: 406-585-8893
More information about the users
mailing list