STM32F479xx HAL User Manual
Defines
FLASH Option Bytes Write Protection
FLASH Exported Constants

Defines

#define OB_WRP_SECTOR_0   0x00000001U
#define OB_WRP_SECTOR_1   0x00000002U
#define OB_WRP_SECTOR_2   0x00000004U
#define OB_WRP_SECTOR_3   0x00000008U
#define OB_WRP_SECTOR_4   0x00000010U
#define OB_WRP_SECTOR_5   0x00000020U
#define OB_WRP_SECTOR_6   0x00000040U
#define OB_WRP_SECTOR_7   0x00000080U
#define OB_WRP_SECTOR_8   0x00000100U
#define OB_WRP_SECTOR_9   0x00000200U
#define OB_WRP_SECTOR_10   0x00000400U
#define OB_WRP_SECTOR_11   0x00000800U
#define OB_WRP_SECTOR_12   0x00000001U << 12U
#define OB_WRP_SECTOR_13   0x00000002U << 12U
#define OB_WRP_SECTOR_14   0x00000004U << 12U
#define OB_WRP_SECTOR_15   0x00000008U << 12U
#define OB_WRP_SECTOR_16   0x00000010U << 12U
#define OB_WRP_SECTOR_17   0x00000020U << 12U
#define OB_WRP_SECTOR_18   0x00000040U << 12U
#define OB_WRP_SECTOR_19   0x00000080U << 12U
#define OB_WRP_SECTOR_20   0x00000100U << 12U
#define OB_WRP_SECTOR_21   0x00000200U << 12U
#define OB_WRP_SECTOR_22   0x00000400U << 12U
#define OB_WRP_SECTOR_23   0x00000800U << 12U
#define OB_WRP_SECTOR_All   0x00000FFFU << 12U

Define Documentation

#define OB_WRP_SECTOR_0   0x00000001U

Write protection of Sector0

Definition at line 476 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_1   0x00000002U

Write protection of Sector1

Definition at line 477 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_10   0x00000400U

Write protection of Sector10

Definition at line 486 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_11   0x00000800U

Write protection of Sector11

Definition at line 487 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_12   0x00000001U << 12U

Write protection of Sector12

Definition at line 488 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

#define OB_WRP_SECTOR_13   0x00000002U << 12U

Write protection of Sector13

Definition at line 489 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_14   0x00000004U << 12U

Write protection of Sector14

Definition at line 490 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_15   0x00000008U << 12U

Write protection of Sector15

Definition at line 491 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_16   0x00000010U << 12U

Write protection of Sector16

Definition at line 492 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_17   0x00000020U << 12U

Write protection of Sector17

Definition at line 493 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_18   0x00000040U << 12U

Write protection of Sector18

Definition at line 494 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_19   0x00000080U << 12U

Write protection of Sector19

Definition at line 495 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_2   0x00000004U

Write protection of Sector2

Definition at line 478 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_20   0x00000100U << 12U

Write protection of Sector20

Definition at line 496 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_21   0x00000200U << 12U

Write protection of Sector21

Definition at line 497 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_22   0x00000400U << 12U

Write protection of Sector22

Definition at line 498 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_23   0x00000800U << 12U

Write protection of Sector23

Definition at line 499 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_3   0x00000008U

Write protection of Sector3

Definition at line 479 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_4   0x00000010U

Write protection of Sector4

Definition at line 480 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_5   0x00000020U

Write protection of Sector5

Definition at line 481 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_6   0x00000040U

Write protection of Sector6

Definition at line 482 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_7   0x00000080U

Write protection of Sector7

Definition at line 483 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_8   0x00000100U

Write protection of Sector8

Definition at line 484 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_9   0x00000200U

Write protection of Sector9

Definition at line 485 of file stm32f4xx_hal_flash_ex.h.

#define OB_WRP_SECTOR_All   0x00000FFFU << 12U

Write protection of all Sectors

Definition at line 500 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().