Index: Integrity.c =================================================================== diff -u -r13a0eba24acbf1e235a2e4f61da92365a6554da3 -rbcb6b7297efb130b42857319e5343cd317220ff8 --- Integrity.c (.../Integrity.c) (revision 13a0eba24acbf1e235a2e4f61da92365a6554da3) +++ Integrity.c (.../Integrity.c) (revision bcb6b7297efb130b42857319e5343cd317220ff8) @@ -15,7 +15,9 @@ * ***************************************************************************/ +#ifndef _VECTORCAST_ #include +#endif #include "reg_tcram.h" @@ -42,6 +44,34 @@ #define DERR 0x00000020 ///< Bit 5 - Multiple bit error in TCRAM Module Error Status Register #define RADDR_PAR_FAIL 0x00000100 ///< Bit 8 - Read Address Parity Failure in TCRAM Module Error Status Register #define WADDR_PAR_FAIL 0x00000200 ///< Bit 9 - Write Address Parity Failure in TCRAM Module Error Status Register + +#ifdef _VECTORCAST_ +/*********************************************************/ +/* CRC Record Data Structure */ +/* NOTE: The list of fields and the size of each field */ +/* varies by target and memory model. */ +/*********************************************************/ +typedef struct crc_record +{ +uint64_t crc_value; +uint32_t crc_alg_ID; /* CRC algorithm ID */ +uint32_t addr; /* Starting address */ +uint32_t size; /* size of data in bytes */ +uint32_t padding; /* explicit padding so layout is the same */ + /* for COFF and ELF */ +} CRC_RECORD; + + +/*********************************************************/ +/* CRC Table Data Structure */ +/*********************************************************/ +typedef struct crc_table +{ +uint32_t rec_size; +uint32_t num_recs; +CRC_RECORD recs[1]; +} CRC_TABLE; +#endif /// Time threshold to check RAM error is 2 seconds static const U32 RAM_ERROR_CHECK_TIME_THRESHOLD = ((2 * MS_PER_SECOND) / TASK_GENERAL_INTERVAL);