新手入门
- 积分
- 7
- 金钱
- 7
- 注册时间
- 2021-8-27
- 在线时间
- 7 小时
|
20金钱
oid UserMain(void *argument){
InitDefaultParams();
#ifndef _OS_SUPPORT
Uart_Comm_Init(&huart1);
#endif
HAL_Delay(100);
for(uint8_t i=0;i<DEVICEITEMCOUNT;i++){
if(DeviceMap[i].pDevice_IO_Set->pInit != NULL){
DeviceMap[i].pDevice_IO_Set->pInit(&DeviceMap[i]);
}
}
MAX31865_Init(&DeviceMap[2]);
#ifdef _OS_SUPPORT
START_TASK(Uart_Comm,&huart1);//do{NAME##_Handle = osThreadNew(Uart_Comm_Thread, (void *)ARGUMENT_PTR, &NAME##_attributes);}while(0)
// START_TASK(MAX31865,&DeviceMap[2]); Uart_Comm_Init();Uart_Comm_Run();
#endif
for(;;){
Task_Run();
MAX31865_Run();
#ifndef _OS_SUPPORT
// MAX31865_Run();
Uart_Comm_Run();
HAL_Delay(1);
#else
osDelay(1);
#endif
}
}
|
|