#include <LPC23xx.H>
#define RAMADDR 0x80000000 ; //外部RAM的基址。
#define uchar unsigned char #define uint unsigned int #define ulong unsigned long
void ExternRam(void) { volatile uint *buf;// uint data[512]; uint i; for (i=0x00;i<512;) { buf=(volatile uint *) (RAMADDR | i<<1);// *buf=i; i++; } }
int main(void) { ExternRam(); while(1) { } } |