116 lines
6.4 KiB
C
Executable File
116 lines
6.4 KiB
C
Executable File
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t spi3ie : 1; // 0 illegal access interrupt enable for SPI3
|
|
uint32_t lpuart1ie : 1; // 1 illegal access interrupt enable for LPUART1
|
|
uint32_t i2c3ie : 1; // 2 illegal access interrupt enable for I2C3
|
|
uint32_t lptim1ie : 1; // 3 illegal access interrupt enable for LPTIM1
|
|
uint32_t lptim3ie : 1; // 4 illegal access interrupt enable for LPTIM3
|
|
uint32_t lptim4ie : 1; // 5 illegal access interrupt enable for LPTIM4
|
|
uint32_t opampie : 1; // 6 illegal access interrupt enable for OPAMP
|
|
uint32_t compie : 1; // 7 illegal access interrupt enable for COMP
|
|
uint32_t adc4ie : 1; // 8 illegal access interrupt enable for ADC4
|
|
uint32_t vrefbufie : 1; // 9 illegal access interrupt enable for VREFBUF
|
|
uint32_t reserve0 : 1; // 10 Reserve
|
|
uint32_t dac1ie : 1; // 11 illegal access interrupt enable for DAC1
|
|
uint32_t adf1ie : 1; // 12 illegal access interrupt enable for ADF1
|
|
uint32_t reserve1 : 19; // 13 Reserve
|
|
} reg_sec_gtzc2_tzic_ier1_t;
|
|
|
|
typedef struct {
|
|
uint32_t syscfgie : 1; // 0 illegal access interrupt enable for SYSCFG
|
|
uint32_t rtcie : 1; // 1 illegal access interrupt enable for RTC
|
|
uint32_t tampie : 1; // 2 illegal access interrupt enable for TAMP
|
|
uint32_t pwrie : 1; // 3 illegal access interrupt enable for PWR
|
|
uint32_t rccie : 1; // 4 illegal access interrupt enable for RCC
|
|
uint32_t lpdma1ie : 1; // 5 illegal access interrupt enable for LPDMA
|
|
uint32_t extiie : 1; // 6 illegal access interrupt enable for EXTI
|
|
uint32_t reserve0 : 7; // 7 Reserve
|
|
uint32_t tzsc2ie : 1; // 14 illegal access interrupt enable for GTZC2 TZSC registers
|
|
uint32_t tzic2ie : 1; // 15 illegal access interrupt enable for GTZC2 TZIC registers
|
|
uint32_t reserve1 : 8; // 16 Reserve
|
|
uint32_t sram4ie : 1; // 24 illegal access interrupt enable for SRAM4
|
|
uint32_t mpcbb4_regie: 1; // 25 illegal access interrupt enable for MPCBB4 registers
|
|
uint32_t reserve2 : 6; // 26 Reserve
|
|
} reg_sec_gtzc2_tzic_ier2_t;
|
|
|
|
typedef struct {
|
|
uint32_t spi3f : 1; // 0 illegal access flag for SPI3
|
|
uint32_t lpuart1f : 1; // 1 illegal access flag for LPUART1
|
|
uint32_t i2c3f : 1; // 2 illegal access flag for I2C3
|
|
uint32_t lptim1f : 1; // 3 illegal access flag for LPTIM1
|
|
uint32_t lptim3f : 1; // 4 illegal access flag for LPTIM3
|
|
uint32_t lptim4f : 1; // 5 illegal access flag for LPTIM4
|
|
uint32_t opampf : 1; // 6 illegal access flag for OPAMP
|
|
uint32_t compf : 1; // 7 illegal access flag for COMP
|
|
uint32_t adc4f : 1; // 8 illegal access flag for ADC4
|
|
uint32_t vrefbuff : 1; // 9 illegal access flag for VREFBUF
|
|
uint32_t reserve0 : 1; // 10 Reserve
|
|
uint32_t dac1f : 1; // 11 illegal access flag for DAC1
|
|
uint32_t adf1f : 1; // 12 illegal access flag for ADF1
|
|
uint32_t reserve1 : 19; // 13 Reserve
|
|
} reg_sec_gtzc2_tzic_sr1_t;
|
|
|
|
typedef struct {
|
|
uint32_t syscfgf : 1; // 0 illegal access flag for SYSCFG
|
|
uint32_t rtcf : 1; // 1 illegal access flag for RTC
|
|
uint32_t tampf : 1; // 2 illegal access flag for TAMP
|
|
uint32_t pwrf : 1; // 3 illegal access flag for PWRUSART1F
|
|
uint32_t rccf : 1; // 4 illegal access flag for RCC
|
|
uint32_t lpdma1f : 1; // 5 illegal access flag for LPDMA
|
|
uint32_t extif : 1; // 6 illegal access flag for EXTI
|
|
uint32_t reserve0 : 7; // 7 Reserve
|
|
uint32_t tzsc2f : 1; // 14 illegal access flag for GTZC2 TZSC registers
|
|
uint32_t tzic2f : 1; // 15 illegal access flag for GTZC2 TZIC registers
|
|
uint32_t reserve1 : 8; // 16 Reserve
|
|
uint32_t sram4f : 1; // 24 illegal access flag for SRAM4
|
|
uint32_t mpcbb4_regf: 1; // 25 illegal access flag for MPCBB4 registers
|
|
uint32_t reserve2 : 6; // 26 Reserve
|
|
} reg_sec_gtzc2_tzic_sr2_t;
|
|
|
|
typedef struct {
|
|
uint32_t cspi3f : 1; // 0 clear the illegal access flag for SPI3
|
|
uint32_t clpuart1f : 1; // 1 clear the illegal access flag for LPUART1
|
|
uint32_t ci2c3f : 1; // 2 clear the illegal access flag for I2C3
|
|
uint32_t clptim1f : 1; // 3 clear the illegal access flag for LPTIM1
|
|
uint32_t clptim3f : 1; // 4 clear the illegal access flag for LPTIM3
|
|
uint32_t clptim4f : 1; // 5 clear the illegal access flag for LPTIM4
|
|
uint32_t copampf : 1; // 6 clear the illegal access flag for OPAMP
|
|
uint32_t ccompf : 1; // 7 clear the illegal access flag for COMP
|
|
uint32_t cadc4f : 1; // 8 clear the illegal access flag for ADC4
|
|
uint32_t cvrefbuff : 1; // 9 clear the illegal access flag for VREFBUF
|
|
uint32_t reserve0 : 1; // 10 Reserve
|
|
uint32_t cdac1f : 1; // 11 clear the illegal access flag for DAC1
|
|
uint32_t cadf1f : 1; // 12 clear the illegal access flag for ADF1
|
|
uint32_t reserve1 : 19; // 13 Reserve
|
|
} reg_sec_gtzc2_tzic_fcr1_t;
|
|
|
|
typedef struct {
|
|
uint32_t csyscfgf : 1; // 0 clear the illegal access flag for SYSCFG
|
|
uint32_t crtcf : 1; // 1 clear the illegal access flag for RTC
|
|
uint32_t ctampf : 1; // 2 clear the illegal access flag for TAMP
|
|
uint32_t cpwrf : 1; // 3 clear the illegal access flag for PWR
|
|
uint32_t crccf : 1; // 4 clear the illegal access flag for RCC
|
|
uint32_t clpdma1f : 1; // 5 clear the illegal access flag for LPDMA
|
|
uint32_t cextif : 1; // 6 clear the illegal access flag for EXTI
|
|
uint32_t reserve0 : 7; // 7 Reserve
|
|
uint32_t ctzsc2f : 1; // 14 clear the illegal access flag for GTZC2 TZSC registers
|
|
uint32_t ctzic2f : 1; // 15 clear the illegal access flag for GTZC2 TZIC registers
|
|
uint32_t reserve1 : 8; // 16 Reserve
|
|
uint32_t csram4f : 1; // 24 clear the illegal access flag for SRAM4
|
|
uint32_t cmpcbb4_regf: 1; // 25 clear the illegal access flag for MPCBB4 registers
|
|
uint32_t reserve2 : 6; // 26 Reserve
|
|
} reg_sec_gtzc2_tzic_fcr2_t;
|
|
|
|
typedef struct {
|
|
volatile reg_sec_gtzc2_tzic_ier1_t ier1;
|
|
volatile reg_sec_gtzc2_tzic_ier2_t ier2;
|
|
volatile uint32_t reserve0[2];
|
|
volatile reg_sec_gtzc2_tzic_sr1_t sr1;
|
|
volatile reg_sec_gtzc2_tzic_sr2_t sr2;
|
|
volatile uint32_t reserve1[2];
|
|
volatile reg_sec_gtzc2_tzic_fcr1_t fcr1;
|
|
volatile reg_sec_gtzc2_tzic_fcr2_t fcr2;
|
|
} reg_sec_gtzc2_tzic_t;
|
|
|