研究生
最后登录1970-1-1
在线时间 小时
注册时间2016-8-3
|
楼主 |
发表于 2016-11-15 12:50:46
|
显示全部楼层
错误语句vtimer_SetTimer(BLDC_CONTROL_TIMER,bSpeed_PID_sampling_time,&BLDC_Drive);
void vtimer_SetTimer(VtimerName_t name,timer_res_t msec,void* pCallback)
{
sVtimer[name].msec = msec;
sVtimer[name].pCallback = pCallback;
}
typedef enum {VTIM0,VTIM1,VTIM2,VTIM3,VTIM4,VTIM5,VTIM6,VTIM7,VTIM8,VTIM9,VTIM10,VTIMER_NUM} VtimerName_t;
typedef u16 timer_res_t ;
typedef struct
{
timer_res_t msec;
void* pCallback;
} Vtimer_t,*PVtimer; |
|