How to automatically add some code content at any place in the code generated by simulink
simulink code:
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
Object Code:
#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED
#include "ASW_MemMap.h"
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED
include "ASW_MemMap.h"
how to add “#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED #include "ASW_MemMap.h” and“#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED include "ASW_MemMap.h"” in front of "/* Const memory section */ " and
behind "const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */"simulink code:
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
Object Code:
#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED
#include "ASW_MemMap.h"
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED
include "ASW_MemMap.h"
how to add “#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED #include "ASW_MemMap.h” and“#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED include "ASW_MemMap.h"” in front of "/* Const memory section */ " and
behind "const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */" simulink code:
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
Object Code:
#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED
#include "ASW_MemMap.h"
/* Const memory section */
/* Definition for custom storage class: Const */
const uint8_T SFCMM_ABSFunc_Active = 1U;/* Referenced by:
* ‘<S35>/Constant127’
* ‘<S35>/Constant90’
* ‘<S104>/Constant127’
* ‘<S104>/Constant90’
* ‘<S151>/Constant127’
* ‘<S151>/Constant90’
*/
const uint8_T SFCMM_AEBFuncConfig_Open = 1U;/* Referenced by: ‘<S9>/Constant15’ */
const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */
#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED
include "ASW_MemMap.h"
how to add “#define ASW_QM_COM_MODULE_START_SEC_CONST_UNSPECIFIED #include "ASW_MemMap.h” and“#define ASW_QM_COM_MODULE_STOP_SEC_CONST_UNSPECIFIED include "ASW_MemMap.h"” in front of "/* Const memory section */ " and
behind "const uint8_T SFCMM_AEBFuncSwitch_Open = 1U;/* Referenced by: ‘<S9>/Constant17’ */" code generation MATLAB Answers — New Questions