STM32G474xx HAL用户手册
定义
FLASH选项字节用户类型
FLASH导出常量

定义

#define OB_USER_BOR_LEV   0x00000001U
#define OB_USER_nRST_STOP   0x00000002U
#define OB_USER_nRST_STDBY   0x00000004U
#define OB_USER_IWDG_SW   0x00000008U
#define OB_USER_IWDG_STOP   0x00000010U
#define OB_USER_IWDG_STDBY   0x00000020U
#define OB_USER_WWDG_SW   0x00000040U
#define OB_USER_BFB2   0x00000080U
#define OB_USER_DBANK   0x00000100U
#define OB_USER_nBOOT1   0x00000200U
#define OB_USER_SRAM_PE   0x00000400U
#define OB_USER_CCMSRAM_RST   0x00000800U
#define OB_USER_nRST_SHDW   0x00001000U
#define OB_USER_nSWBOOT0   0x00002000U
#define OB_USER_nBOOT0   0x00004000U
#define OB_USER_NRST_MODE   0x00008000U
#define OB_USER_IRHEN   0x00010000U

定义说明

#define OB_USER_BFB2   0x00000080U

双bank启动

定义于文件 stm32g4xx_hal_flash.h 的第 272 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_BOR_LEV   0x00000001U

BOR复位电平

定义于文件 stm32g4xx_hal_flash.h 的第 264 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_CCMSRAM_RST   0x00000800U

系统复位时CCMSRAM擦除

定义于文件 stm32g4xx_hal_flash.h 的第 280 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_DBANK   0x00000100U

单bank 128位数据或双bank 64位数据

定义于文件 stm32g4xx_hal_flash.h 的第 273 行。

#define OB_USER_IRHEN   0x00010000U

内部复位保持器使能

定义于文件 stm32g4xx_hal_flash.h 的第 285 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_IWDG_STDBY   0x00000020U

待机模式下独立看门狗计数器冻结

定义于文件 stm32g4xx_hal_flash.h 的第 269 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_IWDG_STOP   0x00000010U

停止模式下独立看门狗计数器冻结

定义于文件 stm32g4xx_hal_flash.h 的第 268 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_IWDG_SW   0x00000008U

独立看门狗选择

定义于文件 stm32g4xx_hal_flash.h 的第 267 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nBOOT0   0x00004000U

nBOOT0选项位

定义于文件 stm32g4xx_hal_flash.h 的第 283 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nBOOT1   0x00000200U

启动配置

定义于文件 stm32g4xx_hal_flash.h 的第 278 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_NRST_MODE   0x00008000U

复位引脚配置

定义于文件 stm32g4xx_hal_flash.h 的第 284 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nRST_SHDW   0x00001000U

进入关闭模式时产生复位

定义于文件 stm32g4xx_hal_flash.h 的第 281 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nRST_STDBY   0x00000004U

进入待机模式时产生复位

定义于文件 stm32g4xx_hal_flash.h 的第 266 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nRST_STOP   0x00000002U

进入停止模式时产生复位

定义于文件 stm32g4xx_hal_flash.h 的第 265 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_nSWBOOT0   0x00002000U

软件BOOT0

定义于文件 stm32g4xx_hal_flash.h 的第 282 行。

被以下函数引用:FLASH_OB_UserConfig()

#define OB_USER_SRAM_PE   0x00000400U

SRAM奇偶校验使能(SRAM1和CCM SRAM的前32KB)

定义于文件 stm32g4xx_hal_flash.h 的第 279 行。

被以下函数引用:FLASH_OB_UserConfig()