#ifndef _FC7240_TSTMP_NU_Tztufn45_REGS_H_ #define _FC7240_TSTMP_NU_Tztufn45_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- TSTMP Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup TSTMP_Peripheral_Access_Layer TSTMP Peripheral Access Layer * @{ */ /** TSTMP - Size of Registers Arrays */ /** TSTMP - Register Layout Typedef */ typedef struct { __I uint32_t VALL ; /* Low Value Register, offset: 0x0 */ __I uint32_t VALH ; /* High Value Register, offset: 0x4 */ __IO uint32_t MOD_INTEN ; /* Modulate Interrupt Enable Register, offset: 0x8 */ __IO uint32_t MOD_STATUS ; /* Modulate Status Register, offset: 0xC */ __IO uint32_t MOD0_SETVAL ; /* Modulate0 Set Value Register, offset: 0x10 */ __IO uint32_t MOD1_SETVAL ; /* Modulate1 Set Value Register, offset: 0x14 */ __IO uint32_t MOD2_SETVAL ; /* Modulate2 Set Value Register, offset: 0x18 */ __IO uint32_t MOD3_SETVAL ; /* Modulate3 Set Value Register, offset: 0x1C */ } TSTMP_Type, *TSTMP_MemMapPtr; /** Number of instances of the TSTMP module. */ #define TSTMP_INSTANCE_COUNT (2u) /** Number of modulate of each TSTMP module. */ #define TSTMP_MODULATE_COUNT (4u) /* TSTMP - Peripheral instance base addresses */ /** Peripheral TSTMP0 base address */ #define TSTMP0_BASE (0x4002c000u) /** Peripheral TSTMP0 base pointer */ #define TSTMP0 ((TSTMP_Type *)TSTMP0_BASE) /** Peripheral TSTMP1 base address */ #define TSTMP1_BASE (0x4002d000u) /** Peripheral TSTMP1 base pointer */ #define TSTMP1 ((TSTMP_Type *)TSTMP1_BASE) /** Array initializer of TSTMP peripheral base addresses */ #define TSTMP_BASE_ADDRS {TSTMP0_BASE, TSTMP1_BASE} /** Array initializer of TSTMP peripheral base pointers */ #define TSTMP_BASE_PTRS {TSTMP0, TSTMP1} // need fill by yourself ///** Number of interrupt vector arrays for the TSTMP module. */ //#define TSTMP_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the TSTMP module. */ //#define TSTMP_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the TSTMP peripheral type */ //#define TSTMP_IRQS {TSTMP0_IRQn, TSTMP1_IRQn} /* ---------------------------------------------------------------------------- -- TSTMP Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup TSTMP_Register_Masks TSTMP Register Masks * @{ */ /* VALL Bit Fields */ #define TSTMP_VALL_TVALL_MASK 0xFFFFFFFFu #define TSTMP_VALL_TVALL_SHIFT 0u #define TSTMP_VALL_TVALL_WIDTH 32u #define TSTMP_VALL_TVALL(x) (((uint32_t)(((uint32_t)(x))<