Remove compilation warnings

This commit is contained in:
aixiao 2024-04-14 22:10:19 +08:00
parent 145e6845a0
commit c6fdf8d4e2

View File

@ -77,22 +77,46 @@ int main(void)
// 板载LED闪烁 // 板载LED闪烁
xReturned = xTaskCreate(Led_Blinky, "Blinky task", 512, NULL, tskIDLE_PRIORITY, &Led_Blinky_xHandle); xReturned = xTaskCreate(Led_Blinky, "Blinky task", 512, NULL, tskIDLE_PRIORITY, &Led_Blinky_xHandle);
if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("Blinky Task Error!");
}
// CPU温度 // CPU温度
xReturned = xTaskCreate(Read_Onboard_Temperature, "Temperature task", 512, NULL, tskIDLE_PRIORITY, &Read_Onboard_Temperature_xHandle); xReturned = xTaskCreate(Read_Onboard_Temperature, "Temperature task", 512, NULL, tskIDLE_PRIORITY, &Read_Onboard_Temperature_xHandle);
/* if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("Temperature Task Error!");
}
// IM1253B 电压、功率模块 // IM1253B 电压、功率模块
xReturned = xTaskCreate(IM1253B, "IM1253B task", 1024, NULL, tskIDLE_PRIORITY, &IM1253B_xHandle); xReturned = xTaskCreate(IM1253B, "IM1253B task", 1024, NULL, tskIDLE_PRIORITY, &IM1253B_xHandle);
if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("IM1253B Task Error!");
}
// EC800M 4G 模块 // EC800M 4G 模块
xReturned = xTaskCreate(EC800M_4G, "EC800M 4G task", 1024, NULL, tskIDLE_PRIORITY, &EC800M_4G_xHandle); xReturned = xTaskCreate(EC800M_4G, "EC800M 4G task", 1024, NULL, tskIDLE_PRIORITY, &EC800M_4G_xHandle);
if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("EC800M 4G Task Error!");
}
// PN532 NFC 模块 // PN532 NFC 模块
xReturned = xTaskCreate(PN532, "PN532 task", 512, NULL, tskIDLE_PRIORITY, &PN532_xHandle); xReturned = xTaskCreate(PN532, "PN532 task", 512, NULL, tskIDLE_PRIORITY, &PN532_xHandle);
if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("PN532 Task Error!");
}
// HC-04 蓝牙模块 // HC-04 蓝牙模块
xReturned = xTaskCreate(HC_04, "HC_04 task", 512, NULL, tskIDLE_PRIORITY, &HC_04_xHandle); xReturned = xTaskCreate(HC_04, "HC-04 task", 512, NULL, tskIDLE_PRIORITY, &HC_04_xHandle);
*/ if (xReturned == errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY)
{
printf("HC-04 Task Error!");
}
vTaskStartScheduler(); vTaskStartScheduler();
return 0; return 0;