/* To read */
unsigned long LPC2292_ramRead (const unsigned long address)
{
return (* (volatile unsigned long *)(address));
}
/* To write */
void LPC2292_ramWrite (const unsigned long address, const unsigned
long value)
{
*(volatile unsigned long *)(address) = value;
}
/***** So there you have it... a subroutine that reads and writes to
any ram, (including internal, and registers), for your project ****/
Ken Wada
--- In lpc2000@yahoogroups.com, "boje_d" <boje_demant@h...> wrote:
>
> Hi im using gnuarm GCC toolset.
> I want to make a c routine to read on a specefic ram location.
> I want this to be a c file.
> I am using a lpc2292processor
> Is this possible?
> Can you suply a bit of code.
> Thank you
> Best regards
> Boje Demant
>Message
Re: GCC reading ram in lpc 2292 - is it possible??
2005-12-02 by Ken Wada
Attachments
- No local attachments were found for this message.