本帖最后由 aoshi0603 于 2010-9-30 10:04 编辑
这个语句:volatile unsigned char abcd @ 0x01F;
为什么放在结构体里就不好用呢?
struct ADCstruct{
bit busy;
bit start;
bit full;
volatile unsigned char abcd @ 0x01F;
u16 result;
}ADC_Module;
编译结果:
Error [314] D:\Vibrator KA31\KA31v1.0.c; 67.13 ";" expected
Warning [374] D:\Vibrator KA31\KA31v1.0.c; 67.19 missing basic type; int assumed
Error [314] D:\Vibrator KA31\KA31v1.0.c; 67.19 ";" expected
Warning [374] D:\Vibrator KA31\KA31v1.0.c; 67.24 missing basic type; int assumed
而放在外面编译就能通过?
如何放在结构体里呀,学的不精,还请高手指点 |