#ifndef _FC7240_FREQM_NU_Tztufn8_REGS_H_ #define _FC7240_FREQM_NU_Tztufn8_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- FREQM Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup FREQM_Peripheral_Access_Layer FREQM Peripheral Access Layer * @{ */ /** FREQM - Size of Registers Arrays */ /** FREQM - Register Layout Typedef */ typedef struct { __IO uint32_t CTRL ; /* Control Register, offset: 0x0 */ __IO uint32_t MES_CNT ; /* Measure Counter Register, offset: 0x4 */ __O uint32_t REF_CNT ; /* Reference Counter Register, offset: 0x8 */ __IO uint32_t MES_LENGTH ; /* Measure Counter Length Register, offset: 0xC */ __IO uint32_t REF_TIMEOUT ; /* Reference Counter Timeout Register, offset: 0x10 */ __IO uint32_t CNT_STATUS ; /* Counter Status Register, offset: 0x14 */ uint8_t RESERVED_0[4]; __I uint32_t REF_CNT_SAVE ; /* Saved Reference Counter Register, offset: 0x1C */ } FREQM_Type, *FREQM_MemMapPtr; /** Number of instances of the FREQM module. */ #define FREQM_INSTANCE_COUNT (1u) /* FREQM - Peripheral instance base addresses */ /** Peripheral FREQM base address */ #define FREQM_BASE (0x40078000u) /** Peripheral FREQM base pointer */ #define FREQM ((FREQM_Type *)FREQM_BASE) /** Array initializer of FREQM peripheral base addresses */ #define FREQM_BASE_ADDRS {FREQM_BASE} /** Array initializer of FREQM peripheral base pointers */ #define FREQM_BASE_PTRS {FREQM} // need fill by yourself ///** Number of interrupt vector arrays for the FREQM module. */ //#define FREQM_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the FREQM module. */ //#define FREQM_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the FREQM peripheral type */ //#define FREQM_IRQS {FREQM_IRQn} /* ---------------------------------------------------------------------------- -- FREQM Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup FREQM_Register_Masks FREQM Register Masks * @{ */ /* CTRL Bit Fields */ #define FREQM_CTRL_CNT_EVENT_IE_MASK 0x4000u #define FREQM_CTRL_CNT_EVENT_IE_SHIFT 14u #define FREQM_CTRL_CNT_EVENT_IE_WIDTH 1u #define FREQM_CTRL_CNT_EVENT_IE(x) (((uint32_t)(((uint32_t)(x))<