Hello fortunely,
Sorry for the late reply.
It seems to be a problem with the fact that the #define TIMER_LED_IN_A is in the <model_name>.c and used in pit_ch1_isr.c. This last file does not include the #defines from any .c file. There is a quick fix for you to force the TIMER_LED_IN_A not to be used in pit_ch1_isr.c file. You'll have to:
- right click on the chart from Function-Call Subsystem 1, go to Block_Parameters
- from there, please go to Code Generation tab
- and select Nonreusable function
In this way, Simulink Coder will generate a function call in pit_ch1_isr.c (something like TIMER_LED_Chart() ), that function being defined in <model_name>.c file.
Hope this helps,
Razvan.