非抢占式,有优先级的简易OS

os_cfg.h #include "reg51.h" #define TIME_PER_SEC 200 //定义任务时钟频率,200Hz #define CLOCK 22118400 //定义时钟晶振,单位Hz #define MAX_TASK 4 //...