/******************************************************************************* ** KPIT Technologies Limited ** ** ** ** KPIT Technologies Limited owns all the rights to this work. This work ** ** shall not be copied, reproduced, used, modified or its information ** ** disclosed without the prior written authorization of KPIT Technologies ** ** Limited. ** ** ** ** MODULE : MemMap.h ** ** ** ** TARGET : Any ** ** ** ** PURPOSE : MemMap file ** ** ** ** PLATFORM DEPENDANT [yes/no]: No ** ** ** ** TO BE CHANGED BY USER [yes/no]: Yes ** ** ** *******************************************************************************/ /******************************************************************************* ** Revision History ** ******************************************************************************** ** Revision Date Changed By Description ** ******************************************************************************** ** 1.0 05-Dec-21 Sagrika B Initial version ** *******************************************************************************/ /******************************************************************************* ** MULTIPLE INCLUSION PROTECTION ** *******************************************************************************/ #ifndef MEMMAP_H #define MEMMAP_H /******************************************************************************* ** Memory Map Protection ** *******************************************************************************/ /* * The symbol 'START_WITH_IF' is undefined. * * Thus, the preprocessor continues searching for defined symbols * This first #ifdef makes integration of delivered parts of MemMap.h * easier because every supplier starts with #elif */ #if defined (START_WITH_IF) /* -------------------------------------------------------------------------- */ /* Cm4 */ /* -------------------------------------------------------------------------- */ #elif defined (CM4_START_SEC_CODE) #ifdef M_CM4_START_SEC_CODE #error CM4_START_SEC_CODE Memory section is not stopped #else #define M_CM4_START_SEC_CODE #undef CM4_START_SEC_CODE #pragma ghs section text = ".T_CODE" #endif #elif defined (CM4_STOP_SEC_CODE) #ifndef M_CM4_START_SEC_CODE #error CM4_STOP_SEC_CODE Memory section is not started #else #undef M_CM4_START_SEC_CODE #undef CM4_STOP_SEC_CODE #pragma ghs section text = default #endif /* -------------------------------------------------------------------------- */ /* Cm0 */ /* -------------------------------------------------------------------------- */ #elif defined (CM0P_START_SEC_CODE) #ifdef M_CM0P_START_SEC_CODE #error CM0P_START_SEC_CODE Memory section is not stopped #else #define M_CM0P_START_SEC_CODE #undef CM0P_START_SEC_CODE #pragma ghs section text = ".T_CODE" #endif #elif defined (CM0P_STOP_SEC_CODE) #ifndef M_CM0P_START_SEC_CODE #error CM0P_STOP_SEC_CODE Memory section is not started #else #undef M_CM0P_START_SEC_CODE #undef CM0P_STOP_SEC_CODE #pragma ghs section text = default #endif /* -------------------------------------------------------------------------- */ /* Wrapper */ /* -------------------------------------------------------------------------- */ #elif defined (WRAPPER_START_SEC_CODE) #ifdef M_WRAPPER_START_SEC_CODE #error WRAPPER_START_SEC_CODE Memory section is not stopped #else #define M_WRAPPER_START_SEC_CODE #undef WRAPPER_START_SEC_CODE #pragma ghs section text = ".T_CODE" #endif #elif defined (WRAPPER_STOP_SEC_CODE) #ifndef M_WRAPPER_START_SEC_CODE #error WRAPPER_STOP_SEC_CODE Memory section is not started #else #undef M_WRAPPER_START_SEC_CODE #undef WRAPPER_STOP_SEC_CODE #pragma ghs section text = default #endif /* -------------------------------------------------------------------------- */ /* CDD */ /* -------------------------------------------------------------------------- */ #elif defined (CDD_START_SEC_CODE) #ifdef M_CDD_START_SEC_CODE #error CDD_START_SEC_CODE Memory section is not stopped #else #define M_CDD_START_SEC_CODE #undef CDD_START_SEC_CODE #pragma ghs section text = ".T_CODE" #endif #elif defined (CDD_STOP_SEC_CODE) #ifndef M_CDD_START_SEC_CODE #error CDD_STOP_SEC_CODE Memory section is not started #else #undef M_CDD_START_SEC_CODE #undef CDD_STOP_SEC_CODE #pragma ghs section text = default #endif #elif defined (CDD_START_SEC_VAR_INIT_8) #ifdef M_START_SEC_VAR_INIT_8 #error CDD_START_SEC_VAR_INIT_8 Memory section is not stopped #else #define M_START_SEC_VAR_INIT_8 #undef CDD_START_SEC_VAR_INIT_8 #pragma ghs section data = ".T_VAR_INIT_8" #endif #elif defined (CDD_STOP_SEC_VAR_INIT_8) #ifndef M_START_SEC_VAR_INIT_8 #error CDD_STOP_SEC_VAR_INIT_8 Memory section is not started #else #undef M_START_SEC_VAR_INIT_8 #undef CDD_STOP_SEC_VAR_INIT_8 #pragma ghs section data = default #endif #elif defined (CDD_START_SEC_VAR_NO_INIT_8) #ifdef M_START_SEC_VAR_NO_INIT_8 #error CDD_START_SEC_VAR_NO_INIT_8 Memory section is not stopped #else #define M_START_SEC_VAR_NO_INIT_8 #undef CDD_START_SEC_VAR_NO_INIT_8 #pragma ghs section bss = ".T_VAR_NO_INIT_8" #endif #elif defined (CDD_STOP_SEC_VAR_NO_INIT_8) #ifndef M_START_SEC_VAR_NO_INIT_8 #error CDD_STOP_SEC_VAR_NO_INIT_8 Memory section is not started #else #undef M_START_SEC_VAR_NO_INIT_8 #undef CDD_STOP_SEC_VAR_NO_INIT_8 #pragma ghs section bss = default #endif #elif defined (CDD_START_SEC_VAR_NO_INIT_16) #ifdef M_START_SEC_VAR_NO_INIT_16 #error CDD_START_SEC_VAR_NO_INIT_16 Memory section is not stopped #else #define M_START_SEC_VAR_NO_INIT_16 #undef CDD_START_SEC_VAR_NO_INIT_16 #pragma ghs section bss = ".T_VAR_NO_INIT_16" #endif #elif defined (CDD_STOP_SEC_VAR_NO_INIT_16) #ifndef M_START_SEC_VAR_NO_INIT_16 #error CDD_STOP_SEC_VAR_NO_INIT_16 Memory section is not started #else #undef M_START_SEC_VAR_NO_INIT_16 #undef CDD_STOP_SEC_VAR_NO_INIT_16 #pragma ghs section bss = default #endif #elif defined (CDD_START_SEC_VAR_INIT_BOOLEAN) #ifdef M_CDD_START_SEC_VAR_INIT_BOOLEAN #error CDD_START_SEC_VAR_INIT_BOOLEAN Memory section is not stopped #else #define M_CDD_START_SEC_VAR_INIT_BOOLEAN #undef CDD_START_SEC_VAR_INIT_BOOLEAN #pragma ghs section data = ".T_VAR_INIT_BOOLEAN" #endif #elif defined (CDD_STOP_SEC_VAR_INIT_BOOLEAN) #ifndef M_CDD_START_SEC_VAR_INIT_BOOLEAN #error CDD_STOP_SEC_VAR_INIT_BOOLEAN Memory section is not started #else #undef M_CDD_START_SEC_VAR_INIT_BOOLEAN #undef CDD_STOP_SEC_VAR_INIT_BOOLEAN #pragma ghs section data = default #endif #elif defined (CDD_START_SEC_VAR_NO_INIT_BOOLEAN) #ifdef M_CDD_START_SEC_VAR_NO_INIT_BOOLEAN #error CDD_START_SEC_VAR_NO_INIT_BOOLEAN Memory section is not stopped #else #define M_CDD_START_SEC_VAR_NO_INIT_BOOLEAN #undef CDD_START_SEC_VAR_NO_INIT_BOOLEAN #pragma ghs section bss = ".T_VAR_NO_INIT_BOOLEAN" #endif #elif defined (CDD_STOP_SEC_VAR_NO_INIT_BOOLEAN) #ifndef M_CDD_START_SEC_VAR_NO_INIT_BOOLEAN #error CDD_STOP_SEC_VAR_NO_INIT_BOOLEAN Memory section is not started #else #undef M_CDD_START_SEC_VAR_NO_INIT_BOOLEAN #undef CDD_STOP_SEC_VAR_NO_INIT_BOOLEAN #pragma ghs section bss = default #endif #elif defined (CDD_START_SEC_CONFIG_CONST_8) #ifdef M_CDD_START_SEC_CONFIG_CONST_8 #error CDD_START_SEC_CONFIG_CONST_8 Memory section is not stopped #else #define M_CDD_START_SEC_CONFIG_CONST_8 #undef CDD_START_SEC_CONFIG_CONST_8 #pragma ghs section rodata = ".T_CONFIG_CONST_ROM_8" #endif #elif defined (CDD_STOP_SEC_CONFIG_CONST_8) #ifndef M_CDD_START_SEC_CONFIG_CONST_8 #error CDD_STOP_SEC_CONFIG_CONST_8 Memory section is not started #else #undef M_CDD_START_SEC_CONFIG_CONST_8 #undef CDD_STOP_SEC_CONFIG_CONST_8 #pragma ghs section rodata = default #endif #elif defined (CDD_START_SEC_CONFIG_CONST_16) #ifdef M_CDD_START_SEC_CONFIG_CONST_16 #error CDD_START_SEC_CONFIG_CONST_16 Memory section is not stopped #else #define M_CDD_START_SEC_CONFIG_CONST_16 #undef CDD_START_SEC_CONFIG_CONST_16 #pragma ghs section rodata = ".T_CONFIG_CONST_ROM_16" #endif #elif defined (CDD_STOP_SEC_CONFIG_CONST_16) #ifndef M_CDD_START_SEC_CONFIG_CONST_16 #error CDD_STOP_SEC_CONFIG_CONST_16 Memory section is not started #else #undef M_CDD_START_SEC_CONFIG_CONST_16 #undef CDD_STOP_SEC_CONFIG_CONST_16 #pragma ghs section rodata = default #endif #elif defined (CDD_START_SEC_CALLOUT_CODE) #ifdef M_CDD_START_SEC_CALLOUT_CODE #error CDD_START_SEC_CALLOUT_CODE Memory section is not stopped #else #define M_CDD_START_SEC_CALLOUT_CODE #undef CDD_START_SEC_CALLOUT_CODE #pragma ghs section text = ".T_CALLOUT_CODE" #endif #elif defined (CDD_STOP_SEC_CALLOUT_CODE) #ifndef M_CDD_START_SEC_CALLOUT_CODE #error CDD_STOP_SEC_CALLOUT_CODE Memory section is not started #else #undef M_CDD_START_SEC_CALLOUT_CODE #undef CDD_STOP_SEC_CALLOUT_CODE #pragma ghs section text = default #endif /* -------------------------------------------------------------------------- */ /* APPLICATION */ /* -------------------------------------------------------------------------- */ #elif defined (APPL_START_SEC_CODE) #ifdef M_APPL_START_SEC_CODE #error APPL_START_SEC_CODE Memory section is not stopped #else #define M_APPL_START_SEC_CODE #undef APPL_START_SEC_CODE #pragma ghs section text = ".T_CODE" #endif #elif defined (APPL_STOP_SEC_CODE) #ifndef M_APPL_START_SEC_CODE #error APPL_STOP_SEC_CODE Memory section is not started #else #undef M_APPL_START_SEC_CODE #undef APPL_STOP_SEC_CODE #pragma ghs section text = default #endif #elif defined (APPL_START_SEC_VAR_NO_INIT_8) #ifdef M_APPL_START_SEC_VAR_NO_INIT_8 #error APPL_START_SEC_VAR_NO_INIT_8 Memory section is not stopped #else #define M_APPL_START_SEC_VAR_NO_INIT_8 #undef APPL_START_SEC_VAR_NO_INIT_8 #pragma ghs section bss = ".T_VAR_NO_INIT_8" #endif #elif defined (APPL_STOP_SEC_VAR_NO_INIT_8) #ifndef M_APPL_START_SEC_VAR_NO_INIT_8 #error APPL_STOP_SEC_VAR_NO_INIT_8 Memory section is not started #else #undef M_APPL_START_SEC_VAR_NO_INIT_8 #undef APPL_STOP_SEC_VAR_NO_INIT_8 #pragma ghs section bss = default #endif #elif defined (APPL_NT_START_SEC_VAR_NO_INIT_8) #ifdef M_APPL_NT_START_SEC_VAR_NO_INIT_8 #error APPL_NT_START_SEC_VAR_NO_INIT_8 Memory section is not stopped #else #define M_APPL_NT_START_SEC_VAR_NO_INIT_8 #undef APPL_NT_START_SEC_VAR_NO_INIT_8 #pragma ghs section bss = ".NT_VAR_NO_INIT_8" #endif #elif defined (APPL_NT_STOP_SEC_VAR_NO_INIT_8) #ifndef M_APPL_NT_START_SEC_VAR_NO_INIT_8 #error APPL_NT_STOP_SEC_VAR_NO_INIT_8 Memory section is not started #else #undef M_APPL_NT_START_SEC_VAR_NO_INIT_8 #undef APPL_NT_STOP_SEC_VAR_NO_INIT_8 #pragma ghs section bss = default #endif #elif defined (APPL_START_SEC_VAR_NO_INIT_32) #ifdef M_APPL_START_SEC_VAR_NO_INIT_32 #error APPL_START_SEC_VAR_NO_INIT_32 Memory section is not stopped #else #define M_APPL_START_SEC_VAR_NO_INIT_32 #undef APPL_START_SEC_VAR_NO_INIT_32 #pragma ghs section bss = ".T_VAR_NO_INIT_32" #endif #elif defined (APPL_STOP_SEC_VAR_NO_INIT_32) #ifndef M_APPL_START_SEC_VAR_NO_INIT_32 #error APPL_STOP_SEC_VAR_NO_INIT_32 Memory section is not started #else #undef M_APPL_START_SEC_VAR_NO_INIT_32 #undef APPL_STOP_SEC_VAR_NO_INIT_32 #pragma ghs section bss = default #endif #elif defined (APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED) #ifdef M_APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED #error APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED Memory section is not stopped #else #define M_APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED #undef APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED #pragma ghs section bss = ".T_VAR_NO_INIT_UNSPECIFIED" #endif #elif defined (APPL_STOP_SEC_VAR_NO_INIT_UNSPECIFIED) #ifndef M_APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED #error APPL_STOP_SEC_VAR_NO_INIT_UNSPECIFIED Memory section is not started #else #undef M_APPL_START_SEC_VAR_NO_INIT_UNSPECIFIED #undef APPL_STOP_SEC_VAR_NO_INIT_UNSPECIFIED #pragma ghs section bss = default #endif #elif defined (APPL_REPROG_32_START) #ifdef M_APPL_REPROG_32_START #error APPL_REPROG_32_START Memory section is not stopped #else #define M_APPL_REPROG_32_START #undef APPL_REPROG_32_START #pragma ghs section bss=".ReProgPatn" #endif #elif defined (APPL_REPROG_32_STOP) #ifndef M_APPL_REPROG_32_START #error APPL_REPROG_32_STOP Memory section is not started #else #undef M_APPL_REPROG_32_START #undef APPL_REPROG_32_STOP #pragma ghs section bss = default #endif #elif defined (RESET_REASON_APPL_NO_INIT_16_START) #ifdef M_RESET_REASON_APPL_NO_INIT_16_START #error RESET_REASON_APPL_NO_INIT_16_START Memory section is not stopped #else #define M_RESET_REASON_APPL_NO_INIT_16_START #undef RESET_REASON_APPL_NO_INIT_16_START #pragma ghs section bss=".ReProgPatn" #endif #elif defined (RESET_REASON_APPL_NO_INIT_16_STOP) #ifndef M_RESET_REASON_APPL_NO_INIT_16_START #error RESET_REASON_APPL_NO_INIT_16_STOP Memory section is not started #else #undef M_RESET_REASON_APPL_NO_INIT_16_START #undef RESET_REASON_APPL_NO_INIT_16_STOP #pragma ghs section bss = default #endif #else #error "MemMap.h: No valid section define found" #endif /* START_WITH_IF */ /******************************************************************************* ** Memory Map Class ** *******************************************************************************/ #undef MEMMAP_H #endif /******************************************************************************* ** End of File ** *******************************************************************************/