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.

[参考译文] TMS320F28379D:如何在使用 MATLAB/Simulink 生成代码时嵌入驱动程序库代码

Guru**** 2193080 points
Other Parts Discussed in Thread: TMS320F28379D
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1108480/tms320f28379d-how-to-embed-driver-library-code-when-use-matlab-simulink-for-code-generation

器件型号:TMS320F28379D

您好!  

我正在尝试使用 Simulink 模型为 TMS320F28379D PWM 配置生成代码。 当我尝试使用 Simulink 中的系统初始化块添加一些自定义驱动程序库代码时、会出现一些错误:

Fullscreen
1
2
3
warning: function "setupEPWM_Swap" declared implicitly
error: identifier "EPWM9_BASE" is undefined
1 error detected in the compilation
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

想知道 Simulink 是否支持驱动程序库代码吗? 如果是、如何嵌入它们? 谢谢!