使用NXP公司的LPC2138,用KEIL编写的程序如下,可是不能运行 提示不能打开config.h 我刚开始接触ARM编程,具体问题不知道出在什么地方 望高人指点 感激不尽
#include<config.h>
void delayns(uint32 dly)
{
uint i;
for(;dly>0;dly--)
for(i=0;i<50000;i++);
}
const uint32 LED_TBL[]={
0x00,0xff,
0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff,
0xff,0x7f,0x3f,0x1f,0x0f,0x07,0x03,0x01,
0x81,0x42,0x24,0x18,0x18,0x24,0x42,0x81,
0x81,0xc3,0xe7,0xff,0xff,0xe7,0xc3,0x81,};
int main(void)
{
uint8 i;
PINSEL0=0x00000000;
IO0CLR=0x000000ff;
while(1)
{
for(i=0;i<42;i++)
{
IO0SET=~((LED_TBL[i]));
delayns(3);
IO0CLR=((LED_TBL[i]));
delayns(3);
}
}
} |