volatile类型
http://www.cnblogs.com/chio/archive/2007/11/24/970632.html
volatile char a;
a=0;
while(!a){
//do some things;
}
do_other();
如果没有 volatile, do_other()不会被执行。
volatile极易改变的意思。
表示用volatile定义的变量会在程序外被改变,每次都必须从内存中读取,而不能把他放在cache或寄存器中重复使用。
在中断程序中经常会用到。