一个错误,架构是keil里面的C语言
这个是错误的原因:..\src\lcd.c(64): error: #29: expected an expression..\src\lcd.c: LCDSADDR2 = vLCDSADDR2;
我的宏定义是这样的:
////////////////LCDSADDR2
#define ADDREND ((unsigned long)FRAMBUFFER + [HIGH]*[WIDTH]*2)
#define LCDBASEL (((ADDREND >> 1) & 0x1fffff) << 0 )
#define vLCDSADDR2 (LCDBASEL)
在程序中是这样的定义的:
////LCDADDR1 帧缓冲器地址设置
LCDSADDR1 = vLCDSADDR1;
LCDSADDR2 = vLCDSADDR2; 显示这句有错误
LCDSADDR3 = vLCDSADDR3;
就是不知道为什么会报错误,希望知道的给个解释呗!!