How to reuse header files for multiple code generation processes?
Show older comments
I am trying to generate C code for an ECU (engine control unit) using Simulink. There are two separate code generation processes in my workflow, one to generate the deployed code and another to generate the ECU code.
I need to use shared variables in both code-generation processes which should be defined in a header file. To generate the header file, I use the "Exported Global" storage class, but this approach generates two header files from the two code-generation processes.
Is there a way to generate only one header file containing the variable definitions for both code-generation processes?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
