我最近在学一个调度器,使用到_LINE_这个东西,网上查找到这个是C语言内置宏定义,切我在KEIL中编译没有问题,但是在ICCAVR中使用ATMEGA16实现这个调度器是出现如下问题:
!E C:\iccv7avr\examples.avr\protothread\led.c(17): undeclared identifier `_LINE_'
!E C:\iccv7avr\examples.avr\protothread\led.c(17): case label must be a constant integer expression
!W C:\iccv7avr\examples.avr\protothread\led.c(18):[warning] reference to `volatile unsigned char' elided
!W C:\iccv7avr\examples.avr\protothread\led.c(18):[warning] expression with no effect elided
!W C:\iccv7avr\examples.avr\protothread\led.c(24):[warning] missing return value#define BEGIN static unsigned char _lc=0; switch(_lc){case 0:
#define END ;}; _lc=0;
#define WaitX(tim) _lc=_LINE_+((_LINE_%256)==0);return tim;case _LINE_+((_LINE_%256)==0):
|