各位大侠我需要对28335 TI给的例程中SVGENDQ_MACRO(svgen1)这个宏命令进行一些修改,需要添加一个变量tmp0 在里面添加完后,编译时报错 说未声明!
我就不明白了 我明明已经声明了啊 为什么程序还是说未声明呢?
#ifndef __SVGEN_H__ #define __SVGEN_H__
typedef struct {
_iq Ualpha; // Input: reference alpha-axis phase voltage
_iq Ubeta; // Input: reference beta-axis phase voltage
_iq Ta; // Output: reference phase-a switching function
_iq Tb; // Output: reference phase-b switching function
_iq Tc; // Output: reference phase-c switching function
_iq tmp1; // Variable: temp variable
_iq tmp0;
_iq tmp2; // Variable: temp variable
_iq tmp3; // Variable: temp variable
Uint16 VecSector; // Space vector sector } SVGEN;
报错为“:
#20 identifier "tmp0" is undefined