typedef struct {
__IO uint8_t FPROTSL;
__IO uint8_t FPROTSH;
} FTFE_Type;
#define FTFx ((FTFE_Type *)FTFE_BASE)
#define FTFx_FPROTSL_REG (FTFx->FPROTSL)
static volatile uint16_t *const kFPROTSx = (volatile uint16_t *)(uint32_t)&FTFx_FPROTSL_REG;
取寄存器 地址 FPROTSL 地址 &FTFx_FPROTSL_REG -> 为32位, 所以在将地址转为数据时应转换为32位数据 ->(uint32_t)&FTFx_FPROTSL_REG
然后再将其32位数据转为16位的地址 -> (volatile uint16_t *)(uint32_t)&FTFx_FPROTSL_REG;
最后将16位地址指针 赋给 volatile uint16_t *const kFPROTSx 指针