/** * @copyright 2023 indie Semiconductor * * This file is proprietary to indie Semiconductor. * All rights reserved. Reproduction or distribution, in whole * or in part, is forbidden except by express written permission * of indie Semiconductor. * * @file trimhv_sfr.h */ #ifndef TRIMHV_SFR_H__ #define TRIMHV_SFR_H__ #include /* ------- Start of section using anonymous unions and disabling warnings ------- */ #if defined (__CC_ARM) #pragma push #pragma anon_unions #elif defined (__ICCARM__) #pragma language=extended #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wc11-extensions" #pragma clang diagnostic ignored "-Wreserved-id-macro" #elif defined (__GNUC__) /* anonymous unions are enabled by default */ #elif defined (__TMS470__) /* anonymous unions are enabled by default */ #elif defined (__TASKING__) #pragma warning 586 #elif defined (__CSMC__) /* anonymous unions are enabled by default */ #else #warning Not supported compiler type #endif /** * @brief A structure to represent Special Function Registers for TRIMHV. */ typedef struct { union { struct { uint8_t RETAIN0 : 8; /*!< Firmware scratch register 0 */ uint8_t RETAIN1 : 8; /*!< Firmware scratch register 1 */ uint16_t : 16; /* (reserved) */ }; uint32_t WORD; } RETAIN; /* +0x000 */ uint8_t TRIM_LF_RC; /*= 6010050) #pragma clang diagnostic pop #elif defined (__GNUC__) /* anonymous unions are enabled by default */ #elif defined (__TMS470__) /* anonymous unions are enabled by default */ #elif defined (__TASKING__) #pragma warning restore #elif defined (__CSMC__) /* anonymous unions are enabled by default */ #else #warning Not supported compiler type #endif /** * @brief The starting address of TRIMHV SFRS. */ #define TRIMHV_SFRS ((__IO TRIMHV_SFRS_t *)0x40000900) #endif /* end of __TRIMHV_SFR_H__ section */