我最近编了一个关于单片机中断中返回值的程序,可是总是出现错误,请各位大侠帮忙指点一下啊。部分程序如下: time0_server_() interrupt 1 {static time0_server_count; uint8 ssw=0,sgw=0; time0_server_count++; sgw++; if(time0_server_count==16) { time0_server_count=0; ssw++; if(ssw==6) { ssw=0; } } TF0=0; if(sgw>9) { sgw=0; } return ssw; return sgw; }
|