This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: sysconfig中自动生成的SysCtl_setEPWMClockDivider函数似乎有误

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG

sysconfig(1.17.0)在自动生成SysCtl_setEPWMClockDivider是有误,如下:

1)若设置EPWMCLKDIV /1 时,会生成SysCtl_setEPWMClockDivider(1);

2)若设置EPWMCLKDIV /2 时,会生成SysCtl_setEPWMClockDivider(2);

但实际上

若设置EPWMCLKDIV /1 时,应生成SysCtl_setEPWMClockDivider(SYSCTL_EPWMCLK_DIV_1);而SYSCTL_EPWMCLK_DIV_1为0

若设置EPWMCLKDIV /2 时,应生成SysCtl_setEPWMClockDivider(SYSCTL_EPWMCLK_DIV_2);而SYSCTL_EPWMCLK_DIV_2为1