我在主函数 声明结构体 typedef struct
{
long speed_error2;
long speed_error1;
long speed_error0;
long ierr0;
long ierr1;
long desiredTorque;
long integral_speed_error;
long iDes;
int wEst_10xrpm;
int wDes_10xrpm;
int active[3];
unsigned int iSFB[4];
unsigned int iFB[3];
int dutyRatio;
unsigned int position;
int spd;
} anSRM_struct;
anSRM_struct SRM={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
怎么在DSP281x_DefaultIsr.c 中引用啊 一编译就是 "DSP281x_DefaultIsr.c", line 30: error: identifier "iSFB" is undefined
"DSP281x_DefaultIsr.c", line 32: error: identifier "SRM" is undefined
"DSP281x_DefaultIsr.c", line 100: error: identifier "SRM" is undefined
怎么解决这个问题 |