uC/OSII移植步驟
2.
函數(shù)Main()為C語言入口函數(shù),所有C程序從這里開始運(yùn)行,在該函數(shù)中進(jìn)行如下操作:
③
④
⑤
⑥
⑦
#i nclude “config.h”
OS_STK
OS_STK
int Main(void){
}
①
void Task1(void *pdata){
}
}
}
②
void Task2(void *pdata){
OSTimeDly(OS_TICKS_PER_SEC/8);
OSTimeDly(OS_TICKS_PER_SEC/4);
OSTimeDly(OS_TICKS_PER_SEC/8);
評論