#ifndef _FC7240_RTC_NU_Tztufn39_REGS_H_ #define _FC7240_RTC_NU_Tztufn39_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- RTC Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer * @{ */ /** RTC - Size of Registers Arrays */ /** RTC - Register Layout Typedef */ typedef struct { __IO uint32_t SR ; /* Seconds Register, offset: 0x0 */ __IO uint32_t PR ; /* Prescaler Register, offset: 0x4 */ __IO uint32_t AR ; /* Alarm Register, offset: 0x8 */ __IO uint32_t COMPR ; /* Compensation Register, offset: 0xC */ __IO uint32_t CR ; /* Control Register, offset: 0x10 */ __IO uint32_t STR ; /* Status Register, offset: 0x14 */ __IO uint32_t LR ; /* Lock Register, offset: 0x18 */ __IO uint32_t IER ; /* Interrupt Enable Register, offset: 0x1C */ } RTC_Type, *RTC_MemMapPtr; /** Number of instances of the RTC module. */ #define RTC_INSTANCE_COUNT (1u) /* RTC - Peripheral instance base addresses */ /** Peripheral RTC base address */ #define RTC_BASE (0x40030000u) /** Peripheral RTC base pointer */ #define RTC ((RTC_Type *)RTC_BASE) /** Array initializer of RTC peripheral base addresses */ #define RTC_BASE_ADDRS {RTC_BASE} /** Array initializer of RTC peripheral base pointers */ #define RTC_BASE_PTRS {RTC} // need fill by yourself ///** Number of interrupt vector arrays for the RTC module. */ //#define RTC_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the RTC module. */ //#define RTC_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the RTC peripheral type */ //#define RTC_IRQS {RTC_IRQn} /* ---------------------------------------------------------------------------- -- RTC Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup RTC_Register_Masks RTC Register Masks * @{ */ /* SR Bit Fields */ #define RTC_SR_TSR_MASK 0xFFFFFFFFu #define RTC_SR_TSR_SHIFT 0u #define RTC_SR_TSR_WIDTH 32u #define RTC_SR_TSR(x) (((uint32_t)(((uint32_t)(x))<