At 04:01 PM 12/19/03 -0800, you wrote:
>Robert,
>
>I note you are using IOSET/IOCLR on 0x100 (P0.08). It doesn't apear to be
>used by timer 0. Was it included for some other purpose?
>
>Curt
I'll try to answer both questions in one post :)
The IOSET and IOCLR were in there just for measuring the delay time. They
can (and probably should) be removed for actual use.
struct __reent is a structure used in newlib to provide reentrancy. If you
are not using newlib there is no reason to keep it. Even if you are it may
be of limited use.
VPBrate just returns the rate of the VPB clock in HZ. If you are using a
fixed rate it will be simpler to just use a define. If you have set your
vpb divider to divide by 1 this will be the same as your CPU clock rate.
My routine uses the nominal rate, the PLL multiplier and the VPB divider to
work out what the rate is. I'll make it available (probably by years end)
as soon as I've cleaned it up a bit. Right now it's between
implementations. It'll be part of a set of newlib routines.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
RE: [lpc2100] Delay routines
2003-12-20 by Robert Adsett
Attachments
- No local attachments were found for this message.