#ifndef _FC7240_SCG_NU_Tztufn33_REGS_H_ #define _FC7240_SCG_NU_Tztufn33_REGS_H_ #ifdef __cplusplus extern "C" { #endif /* ---------------------------------------------------------------------------- -- SCG Peripheral Access Layer ---------------------------------------------------------------------------- */ /*! * @addtogroup SCG_Peripheral_Access_Layer SCG Peripheral Access Layer * @{ */ /** SCG - Size of Registers Arrays */ /** SCG - Register Layout Typedef */ typedef struct { uint8_t RESERVED_0[16]; __I uint32_t CSR ; /* Clock Status Register, offset: 0x10 */ __IO uint32_t CCR ; /* Clock Control Register, offset: 0x14 */ uint8_t RESERVED_1[8]; __IO uint32_t CLKOUTCFG ; /* CLKOUT Configuration Register, offset: 0x20 */ __IO uint32_t SLPWDG ; /* Low Power Sleep WDOG Register, offset: 0x24 */ __IO uint32_t WKPWDG ; /* Low Power Wakeup WDOG Register, offset: 0x28 */ uint8_t RESERVED_2[4]; __IO uint32_t CRCCSR ; /* CRC Control Status Register, offset: 0x30 */ __I uint32_t CRCRES ; /* CRC Result Register, offset: 0x34 */ uint8_t RESERVED_3[88]; __IO uint32_t PLL_LOLC ; /* PLL Loss of Lock Control Register, offset: 0x90 */ uint8_t RESERVED_4[108]; __IO uint32_t FOSCCSR ; /* Fast OSC Control Status Register, offset: 0x100 */ __IO uint32_t FOSCDIV ; /* Fast OSC Divide Register, offset: 0x104 */ __IO uint32_t FOSCCFG ; /* Fast OSC Configuration Register, offset: 0x108 */ uint8_t RESERVED_5[244]; __IO uint32_t SIRCCSR ; /* Slow IRC Control Status Register, offset: 0x200 */ __IO uint32_t SIRCDIV ; /* Slow IRC Divide Register, offset: 0x204 */ uint8_t RESERVED_6[4]; __IO uint32_t SIRCTCFG ; /* Slow IRC Auto Trim Configuration Register, offset: 0x20C */ uint8_t RESERVED_7[8]; __IO uint32_t SIRCSTAT ; /* Slow IRC Software Trim Status Register, offset: 0x218 */ uint8_t RESERVED_8[228]; __IO uint32_t FIRCCSR ; /* Fast IRC Control Status Register, offset: 0x300 */ __IO uint32_t FIRCDIV ; /* Fast IRC Divide Register, offset: 0x304 */ __IO uint32_t FIRCCFG ; /* Fast IRC Configuration Register, offset: 0x308 */ __IO uint32_t FIRCTCFG ; /* Fast IRC Auto Trim Configuration Register, offset: 0x30C */ uint8_t RESERVED_9[8]; __IO uint32_t FIRCSTAT ; /* Fast IRC Software Trim Status Register, offset: 0x318 */ uint8_t RESERVED_10[228]; __IO uint32_t SOSCCSR ; /* Slow OSC Control Status Register, offset: 0x400 */ __IO uint32_t SOSCCFG ; /* Slow OSC Configuration Register, offset: 0x404 */ uint8_t RESERVED_11[248]; __IO uint32_t PLL1CSR ; /* PLL1 Control Status Register, offset: 0x500 */ __IO uint32_t PLL1DIV ; /* PLL1 Divide Register, offset: 0x504 */ __IO uint32_t PLL1CFG ; /* PLL1 Configuration Register, offset: 0x508 */ uint8_t RESERVED_12[244]; __IO uint32_t PLL0CSR ; /* PLL0 Control Status Register, offset: 0x600 */ __IO uint32_t PLL0DIV ; /* PLL0 Divide Register, offset: 0x604 */ __IO uint32_t PLL0CFG ; /* PLL0 Configuration Register, offset: 0x608 */ uint8_t RESERVED_13[244]; __IO uint32_t SIRC32KCSR ; /* 32K Slow IRC Control Status Register, offset: 0x700 */ } SCG_Type, *SCG_MemMapPtr; /** Number of instances of the SCG module. */ #define SCG_INSTANCE_COUNT (1u) /* SCG - Peripheral instance base addresses */ /** Peripheral SCG base address */ #define SCG_BASE (0x40023000u) /** Peripheral SCG base pointer */ #define SCG ((SCG_Type *)SCG_BASE) /** Array initializer of SCG peripheral base addresses */ #define SCG_BASE_ADDRS {SCG_BASE} /** Array initializer of SCG peripheral base pointers */ #define SCG_BASE_PTRS {SCG} // need fill by yourself ///** Number of interrupt vector arrays for the SCG module. */ //#define SCG_IRQS_ARR_COUNT (1u) ///** Number of interrupt channels for the SCG module. */ //#define SCG_IRQS_CH_COUNT (1u) ///** Interrupt vectors for the SCG peripheral type */ //#define SCG_IRQS {SCG_IRQn} /* ---------------------------------------------------------------------------- -- SCG Register Masks ---------------------------------------------------------------------------- */ /*! * @addtogroup SCG_Register_Masks SCG Register Masks * @{ */ /* CSR Bit Fields */ #define SCG_CSR_CCR_UPRD_MASK 0x80000000u #define SCG_CSR_CCR_UPRD_SHIFT 31u #define SCG_CSR_CCR_UPRD_WIDTH 1u #define SCG_CSR_CCR_UPRD(x) (((uint32_t)(((uint32_t)(x))<