output_task.c
554 Bytes
#include "hardware.h"
#include "all_value.h"
u8 Tim3_XC1Nums;
void output_task(void *pdata)
{
TIM3_Mode1Nums=0;
while(1)
{
Tim3_XC1Nums=Tim3_XCNums[0];
Tim3_XCNums[0]=0;
// memset(&Err_sign,0,sizeof(Err_sign));
Err_sign[0]&=0x00200008;
Err_sign[1]=0;
In_Pro();
Message_Pro();
WorkCourse_Pro();
Fc_MC();
Safe_Pro();
FC_PDOMess_Send();
Commun_Pro();//通讯
WriteReadPersistent();//读写操控函数
Out_Pro();//C
Err_Pro();
OSTimeDly(12);//该线程内部执行一次后再下次循环之前要做一定的时间延时
}
}