HVAC_M7_MONO/MODULES/HVAC_M7_DataNonVolatile/HVAC_preDefine.h

36 lines
1010 B
C

//
// Created by cfif on 08.08.2025.
//
#ifndef SIMULINK_HVAC_PREDEFINE_H
#define SIMULINK_HVAC_PREDEFINE_H
#include <stdint.h>
#include <string.h>
#define SECT_SRAM_CAL __attribute__((section (".caldata")))
#define SECT_FLASH_CAL0 __attribute__((section (".caltext0")))
#define SECT_FLASH_CAL1 __attribute__((section (".caltext1")))
#define SECT_FLASH_CAL2 __attribute__((section (".caltext2")))
#define SECT_FLASH_CAL3 __attribute__((section (".caltext3")))
#define SECT_FLASH_CAL4 __attribute__((section (".caltext4")))
#define SECT_SRAM_NVM __attribute__((section (".nvmdata")))
#define SECT_VEH_CAL_0 SECT_FLASH_CAL0
#define SECT_VEH_CAL_1 SECT_FLASH_CAL1
#define SECT_VEH_CAL_2 SECT_FLASH_CAL2
#define SECT_VEH_CAL_3 SECT_FLASH_CAL3
#define SECT_VEH_CAL_4 SECT_FLASH_CAL4
#define tU08 uint8_t
#define tU16 uint16_t
#define tS16 int16_t
#define tS08 int8_t
#define M_MEMCOPY(dest, src) memcpy(dest, src, sizeof(dest))
#define ID_TRUE 1
#define ID_FALSE 0
#endif //SIMULINK_HVAC_PREDEFINE_H