/** @(#)sys_id.h <11-Oct-2013 13:54:15 bob p> * Last Time-stamp: <03-Feb-2016 11:44:34 bob p> * * \file sys_id.h * \brief Read the chips unique ID. * */ /*lint -save -e755 -e756 Disable warning(s), this file only, global macro/typedef 'Symbol' (Location) not referenced */ #ifndef _SYS_ID_H_ #define _SYS_ID_H_ (1) #ifdef DEFINE_SPACE_SYS_ID_H #define EXTERN_SYS_ID #else #define EXTERN_SYS_ID extern #endif #define SYS_DEV_ID_VERSION (1U) /* 31-16: Device ID, 15-8: Version number of this sys_id frame, 7-0: Number of uint32's in this id_frame, counting this one */ enum SYS_DEV_ID{ SYS_DEV_ID_VER, /* Version and length of this frame, see above defines */ SYS_DEV_ID_CPUID, /* ARM CPU ID */ SYS_DEV_ID_RESET, /* System Reset Status: 31-24: RMC_SRS0, 23-16:RMC_SRS1, 16-0: Reserved */ SYS_DEV_ID_SDID, /* System Device Identification Register */ SYS_DEV_ID_FCFG1, /* Flash Configuration Register 1 */ SYS_DEV_ID_FCFG2, /* Flash Configuration Register 2 */ SYS_DEV_ID_UIDH, /* Unique Identification Register Mid-High */ SYS_DEV_ID_UIDM, /* Unique Identification Register Mid Low */ SYS_DEV_ID_UIDL, /* Unique Identification Register Low */ /* Flash_ID will read 0xEEEEEEEEUL if ID can not be read: */ SYS_DEV_FLASH_ID30, /* Flash parameter revision */ SYS_DEV_FLASH_ID74, /* Flash version ID */ SYS_DEV_ID_COMPC, /* COP Control Register */ SYS_DEV_ID_INT_CNT /* Must be last. Count of above uint32's */ }; #define SYS_DEV_ID_LEN_CNT_MASK (0x000000FFUL) #if defined(__cplusplus) && __cplusplus extern "C" { #endif void system_dev_id( uint32_t sys_id_adr_u32[] ); #if defined(__cplusplus) && __cplusplus } #endif #endif /* _SYS_ID_H_ */ /*lint -restore */