MATLAB: If I don’t want simulink to generate the file “rtwtypes.h”, how can I do

Embedded Coderembedded matlabertmatlab codersimulink coder

I want use Simulink to generate my control function,but It always to generate at least file: "model.c","model.h" and "rtwtypes.h";
and the"rtwtypes.h" file looks like that , If I Only want generate two file " model.c" and "model.h ", How can I do? thanks.
58 typedef int int8_T;
59 typedef unsigned int uint8_T;
60 typedef int int16_T;
61 typedef unsigned int uint16_T;
62 typedef long int32_T;
63 typedef unsigned long uint32_T;
64 typedef float real32_T;
65 typedef double real64_T;

Best Answer

I don't think you can avoid rtwtypes.h from getting generated because it contains typedefs for platform-independent types. You might be able to do some post-processing on the generated code to replace all platform-independent types like int8_T with the corresponding built-in types for your platform, and discard rtwtypes.h altogether.