#ifndef _FC7240_AONTIMER_NU_Tztufn16_REGS_H_ #define _FC7240_AONTIMER_NU_Tztufn16_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- AONTIMER Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup AONTIMER_Peripheral_Access_Layer AONTIMER Peripheral Access Layer * @{ */ /** AONTIMER - Size of Registers Arrays */ /** AONTIMER - Register Layout Typedef */ typedef struct { __IO uint32_t CSR ; /* Control Status Register, offset: 0x0 */ __IO uint32_t PSR ; /* Prescale Register, offset: 0x4 */ __IO uint32_t CMR ; /* Compare Register, offset: 0x8 */ __IO uint32_t CNR ; /* Counter Register, offset: 0xC */ } AONTIMER_Type, *AONTIMER_MemMapPtr; /** Number of instances of the AONTIMER module. */ #define AONTIMER_INSTANCE_COUNT (1u) /* AONTIMER - Peripheral instance base addresses */ /** Peripheral AONTIMER base address */ #define AONTIMER_BASE (0x4002f000u) /** Peripheral AONTIMER base pointer */ #define AONTIMER ((AONTIMER_Type *)AONTIMER_BASE) /** Array initializer of AONTIMER peripheral base addresses */ #define AONTIMER_BASE_ADDRS {AONTIMER_BASE} /** Array initializer of AONTIMER peripheral base pointers */ #define AONTIMER_BASE_PTRS {AONTIMER} // need fill by yourself ///** Number of interrupt vector arrays for the AONTIMER module. */ //#define AONTIMER_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the AONTIMER module. */ //#define AONTIMER_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the AONTIMER peripheral type */ //#define AONTIMER_IRQS {AONTIMER_IRQn} /* ---------------------------------------------------------------------------- -- AONTIMER Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup AONTIMER_Register_Masks AONTIMER Register Masks * @{ */ /* CSR Bit Fields */ #define AONTIMER_CSR_DBGEN_MASK 0x200u #define AONTIMER_CSR_DBGEN_SHIFT 9u #define AONTIMER_CSR_DBGEN_WIDTH 1u #define AONTIMER_CSR_DBGEN(x) (((uint32_t)(((uint32_t)(x))<