楼主看看满意吧
while(1){ if(F1Sec){ F1Sec = 0; SecCounter++; if(SecCounter > 59){ SecCounter = 0; XXCounter = 0; F07(); } if(XXCounter == 2) F08(); if(XXCounter == 4) F09(); if(XXCounter == 6) F10(); F05(); XXCounter++; } }
保证1分钟F05执行60次 保证1分钟F07-F10能全部执行,不打断. 如果这个是正解,如果允许F05被打断,楼主交代问题没有说清楚.
|
|