中级会员
 
- 积分
- 339
- 金钱
- 339
- 注册时间
- 2016-9-19
- 在线时间
- 55 小时
|

楼主 |
发表于 2016-11-14 14:35:59
|
显示全部楼层
错误语句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; |
|