#ifndef _FC7240_TMU_NU_Tztufn28_REGS_H_ #define _FC7240_TMU_NU_Tztufn28_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- TMU Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup TMU_Peripheral_Access_Layer TMU Peripheral Access Layer * @{ */ /** TMU - Size of Registers Arrays */ /** TMU - Register Layout Typedef */ typedef struct { __IO uint32_t UNLOCK ; /* Unlock Register, offset: 0x0 */ __IO uint32_t TF_CTRL ; /* Temperature Flag Control Register, offset: 0x4 */ __IO uint32_t TF_STATUS ; /* Temperature Flag Status Register, offset: 0x8 */ __IO uint32_t TV_CTRL ; /* Temperature Voltage Control Register, offset: 0xC */ __IO uint32_t TV_STATUS ; /* Temperature Voltage Status Register, offset: 0x10 */ uint8_t RESERVED_0[8]; __I uint32_t TV_TRIM ; /* Temperature Voltage Trim Register, offset: 0x1C */ } TMU_Type, *TMU_MemMapPtr; /** Number of instances of the TMU module. */ #define TMU_INSTANCE_COUNT (1u) /* TMU - Peripheral instance base addresses */ /** Peripheral TMU base address */ #define TMU_BASE (0x40043000u) /** Peripheral TMU base pointer */ #define TMU ((TMU_Type *)TMU_BASE) /** Array initializer of TMU peripheral base addresses */ #define TMU_BASE_ADDRS {TMU_BASE} /** Array initializer of TMU peripheral base pointers */ #define TMU_BASE_PTRS {TMU} // need fill by yourself ///** Number of interrupt vector arrays for the TMU module. */ //#define TMU_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the TMU module. */ //#define TMU_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the TMU peripheral type */ //#define TMU_IRQS {TMU_IRQn} /* ---------------------------------------------------------------------------- -- TMU Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TMU_Register_Masks TMU Register Masks * @{ */ /* UNLOCK Bit Fields */ #define TMU_UNLOCK_UNLOCK_MASK 0x1u #define TMU_UNLOCK_UNLOCK_SHIFT 0u #define TMU_UNLOCK_UNLOCK_WIDTH 1u #define TMU_UNLOCK_UNLOCK(x) (((uint32_t)(((uint32_t)(x))<