任务开关
2018-09-28 本文已影响0人
lifei001
任务切换
#define task1 0
#define task2 0
#define task3 1
#define task4 0
while(1){
#if task1
#elif task2
#elif task3
#elif task4
#endif
}
任务切换
#define task1 0
#define task2 0
#define task3 1
#define task4 0
while(1){
#if task1
#elif task2
#elif task3
#elif task4
#endif
}