static void LCD_Screen_Display(void *p_arg)
{
OS_ERR err;
//CPU_TS ts;
CPU_STK_SIZE Free,Used;
uint32_t LCD_One_Times_Execute_Flag = 0;
LCD_Init();
while(DEF_ON)
{
LED2_Toggle;
LCD_One_Times_Execute_Flag++;
Show_Str(10,45,GREEN,BLACK,"CPU Usage",12,1);
LCD_ShowNum(89,45,OSStatTaskCPUUsage,5,12);
Show_Str(10,60,GREEN,BLACK,"Refresh Time",12,1);
LCD_ShowNum(89,60,LCD_One_Times_Execute_Flag,5,12);
Show_Str(10,75,GREEN,BLACK,"Nesting Layer",12,1);
LCD_ShowNum(89,75,OSIntNestingCtr,5,12);
OSTaskStkChk (&appData.LCDScreenDisplayTCB,&Free,&Used,&err);
Show_Str(10,90,GREEN,BLACK,"LCD Stk Used",12,1);
LCD_ShowNum(89,90,Used,5,12);
Show_Str(10,105,GREEN,BLACK,"LCD Stk Free",12,1);
LCD_ShowNum(89,105,Free,5,12);
fun_delayMs(200);
}
}
以上是LCD的显示屏任务 延迟200ms时 测试cpu使用率9% 但是延时100ms时 cpu使用率95%
这是为什么啊
延时函数就是ucosiii自带的延时函数
是不是我移植的ucosiii有问题 因为这块f7的板子效率还不及f429
一周热门 更多>