优化FreeRTOS

This commit is contained in:
2024-08-23 08:08:37 +08:00
parent f4bd30a4dc
commit bc65530c00
9 changed files with 45 additions and 20 deletions

View File

@@ -21,6 +21,7 @@ static uint16_t ZE07CO(int ANSWER, int *ZE07_CO_DATA_IS_OK)
static uint8_t _ANSWER[9] = { 0xFF, 0x01, 0x78, 0x41, 0x00, 0x00, 0x00, 0x00, 0x46 };
uart_write_blocking(UART0, _ANSWER, 9);
sleep_ms(100);
}
if (ANSWER == 2) {
@@ -81,7 +82,7 @@ void CO(void *pvParameters)
//_printTaskStackHighWaterMark("CO");
//watchdog_update(); // 喂狗
vTaskDelay(pdMS_TO_TICKS(3000)); // 非阻塞延时
vTaskDelay(pdMS_TO_TICKS(5000)); // 非阻塞延时
}
return;