|
@@ -131,10 +131,9 @@ int main(void)
|
|
|
{
|
|
|
// if so, the adc is failed to Calibrate;
|
|
|
}
|
|
|
- TP_Value_Type value = 0;
|
|
|
for (ADC_TP_Channel_Type channel = 0; channel < ChannelCounter; channel++)
|
|
|
{
|
|
|
- ADC_ReadValue(channel, &value);
|
|
|
+ ADC_ReadValue(channel, &BattTempR[channel]);
|
|
|
}
|
|
|
|
|
|
Boot_CheckDownlaodAPPStatus();
|
|
@@ -159,9 +158,10 @@ int main(void)
|
|
|
Dio_WriteChannel(DioConf_DioChannel_PTE9_GPIO_OUT_MCU_LED5, STD_OFF);
|
|
|
|
|
|
xTaskCreate(MainTask, (const char *const)"MainTask", 128, (void *)0, main_TASK_PRIORITY + 3, NULL);
|
|
|
- xTaskCreate(Uart_4G_Task, (const char *const)"Uart_4G_Task", 2048, (void *)0, main_TASK_PRIORITY + 0, NULL);
|
|
|
- xTaskCreate(Uart0Task, (const char *const)"Uart0_Bms_Task", 256, (void *)0, main_TASK_PRIORITY + 1, NULL);
|
|
|
+ xTaskCreate(Uart0Task, (const char *const)"Uart0_Bms_Task", 256, (void *)0, main_TASK_PRIORITY + 2, NULL);
|
|
|
+ xTaskCreate(CanTask, (const char *const)"CanTask", 512, (void *)0, main_TASK_PRIORITY + 2, NULL);
|
|
|
xTaskCreate(GpsTask, (const char *const)"GpsTask", 512, (void *)0, main_TASK_PRIORITY + 1, NULL);
|
|
|
+ xTaskCreate(Uart_4G_Task, (const char *const)"Uart_4G_Task", 2048, (void *)0, main_TASK_PRIORITY + 0, NULL);
|
|
|
vTaskStartScheduler();
|
|
|
for (;;)
|
|
|
{
|