想声明一个结构体,里面的变量是指向N个寄存器的成员,便于应用程序的管理。
比如
typedef struct
{
volatile struct EPWM_REG *channel1;
volatile struct EPWM_REG *channel2;
volatile struct EPWM_REG *channel3;
} Channel;
当我对声明一个Channel类型的变量CHANNEL,
CHANNEL.channe1= &EPwm1Regs;
CHANNEL.channel2=&EPwm2Regs;
……
报错,这语法究竟错在哪里啊?
请教论坛的高手们,指点一下!