LPC2000课件里面提到复制中断向量表,提供了参考代码如下:
...........
cp1 = uint32(Vectors);
cp2 = 0x40000000;
for(i=0; i<16; i++)
{
*cp2++ = *cp1++;
}
MEMMAP=2;
..........
我看到cp1和cp2为指针变量,于是给它定义为
unsigned long *cp1,*cp2;
但是编译器总是报错,怎么回事啊?
main.c(35): error: #513: a value of type "unsigned long" cannot be assigned to an entity of type "unsigned long*" |