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: How to embed driver library code when use MATLAB/Simulink for code generation

Part Number: TMS320F28379D


Hi, 

I am trying to use the Simulink model to generate code for TMS320F28379D PWM configuration. Some error occurs when I try to add some custom driver lib code with the system initialize block in Simulink:

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

Just wondering if the Simulink supports driver lib code? If so how to embed them? Thanks!