(1)ICC中冒号是什么含义,有什么特殊的用途如: struct data{ unsigned bit0:1 unsigned bit1:1 unsigned bit2:1 unsigned bit3:1 unsigned bit4:1 unsigned bit5:1 unsigned bit6:1 unsigned bit7:1 }a,b;
(2)晶振为8M时用如下宏可以延时1us, #defined delay-1us() asn(“nop”);asn(“nop”);asn(“nop”)asn(“nop”);asn(“nop”);asn(“nop”);
但是,晶振为8M时用此函数也能延时1us : void delay-1us(void) { asm("nop") } 我就不知道为什么了?
|