|
@@ -460,7 +460,7 @@ void MX_FREERTOS_Init(void)
|
|
|
|
|
|
#if USE_RFS_RECORD==1
|
|
|
|
|
|
- osThreadDef(task_record, func_record_queue_main, osPriorityNormal, 0, 512 * 16);
|
|
|
+ osThreadDef(task_record, func_record_queue_main, osPriorityBelowNormal, 0, 512 * 16);
|
|
|
task_record_Handle = osThreadCreate(osThread(task_record), NULL);
|
|
|
#endif
|
|
|
|
|
@@ -476,7 +476,7 @@ void MX_FREERTOS_Init(void)
|
|
|
// VoicePlay_Handle = osThreadCreate(osThread(VoicePlay_Process), NULL);
|
|
|
|
|
|
//osPriorityNormal osPriorityHigh
|
|
|
- osThreadDef(GetCPU_Usage_Process, Task_GetCPU_Usage, osPriorityBelowNormal, 0, 512 * 2);
|
|
|
+ osThreadDef(GetCPU_Usage_Process, Task_GetCPU_Usage, osPriorityHigh, 0, 512 * 2);
|
|
|
Task_GetCPU_Usage_Handle = osThreadCreate(osThread(GetCPU_Usage_Process), NULL);
|
|
|
|
|
|
|
|
@@ -2417,7 +2417,7 @@ void DisplayRunInfo(uint32_t FunDebugCode000)
|
|
|
} //按键功能码>90000 ----结束 if(FunDebugCode>90000)
|
|
|
else
|
|
|
{ //功能码范围在00--90000之间--开始
|
|
|
- memset(bufText01Password, ' ', sizeof(bufText01Password));
|
|
|
+ memset(bufText01Password, 0, sizeof(bufText01Password));
|
|
|
//sprintf((char*)bufText01Password,"系统运行中.tick=%08X,%08d.\r\n",tick001,tick001);
|
|
|
if (FunDebugCode000 == 0)
|
|
|
{
|
|
@@ -2445,8 +2445,27 @@ void DisplayRunInfo(uint32_t FunDebugCode000)
|
|
|
|
|
|
else
|
|
|
{ //1--90000之间的功能码--开始
|
|
|
- Len001RunInfo = sprintf((char *)bufText01Password, "系统运行中.tick=%08X,%08d.未定义code=%5d.CPU=%d.\r\n", tick001, tick001 / 1000, FunDebugCode000, cntUsage);
|
|
|
- memset((char *)bufText01Password + Len001RunInfo, 0, sizeof(bufText01Password) - Len001RunInfo);
|
|
|
+ //xy, 2022-12, 这里利用迪文屏,显示一些信息方便于测试者观察
|
|
|
+ switch (FunDebugCode000)
|
|
|
+ {
|
|
|
+ case 12111:
|
|
|
+ Len001RunInfo = sprintf((char *)bufText01Password, "KZB,version: %s,%d",
|
|
|
+ IR_ROM1==0x8000000 ? "app1":"app2",
|
|
|
+ Version_Soft[7]
|
|
|
+ );
|
|
|
+ break;
|
|
|
+ case 12555:
|
|
|
+ Len001RunInfo = sprintf((char *)bufText01Password, "flash, F|W|R: %d|%d|%d",
|
|
|
+ func_record_queue_flash_get(),
|
|
|
+ queue_record_obj.wr_cnt,
|
|
|
+ queue_record_obj.rd_cnt
|
|
|
+ );
|
|
|
+ break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ Len001RunInfo = sprintf((char *)bufText01Password, "系统运行中.tick=%08X,%08d.未定义code=%5d.CPU=%d.\r\n", tick001, tick001 / 1000, FunDebugCode000, cntUsage);
|
|
|
+ break;
|
|
|
+ }
|
|
|
|
|
|
} //1--90000之间的功能码--结束
|
|
|
|