STM32F103xB HAL User Manual
Defines
Option Bytes Write Protection
Option Byte Constants

Defines

#define OB_WRP_PAGES0TO3   0x00000001U
#define OB_WRP_PAGES4TO7   0x00000002U
#define OB_WRP_PAGES8TO11   0x00000004U
#define OB_WRP_PAGES12TO15   0x00000008U
#define OB_WRP_PAGES16TO19   0x00000010U
#define OB_WRP_PAGES20TO23   0x00000020U
#define OB_WRP_PAGES24TO27   0x00000040U
#define OB_WRP_PAGES28TO31   0x00000080U
#define OB_WRP_PAGES32TO35   0x00000100U
#define OB_WRP_PAGES36TO39   0x00000200U
#define OB_WRP_PAGES40TO43   0x00000400U
#define OB_WRP_PAGES44TO47   0x00000800U
#define OB_WRP_PAGES48TO51   0x00001000U
#define OB_WRP_PAGES52TO55   0x00002000U
#define OB_WRP_PAGES56TO59   0x00004000U
#define OB_WRP_PAGES60TO63   0x00008000U
#define OB_WRP_PAGES64TO67   0x00010000U
#define OB_WRP_PAGES68TO71   0x00020000U
#define OB_WRP_PAGES72TO75   0x00040000U
#define OB_WRP_PAGES76TO79   0x00080000U
#define OB_WRP_PAGES80TO83   0x00100000U
#define OB_WRP_PAGES84TO87   0x00200000U
#define OB_WRP_PAGES88TO91   0x00400000U
#define OB_WRP_PAGES92TO95   0x00800000U
#define OB_WRP_PAGES96TO99   0x01000000U
#define OB_WRP_PAGES100TO103   0x02000000U
#define OB_WRP_PAGES104TO107   0x04000000U
#define OB_WRP_PAGES108TO111   0x08000000U
#define OB_WRP_PAGES112TO115   0x10000000U
#define OB_WRP_PAGES116TO119   0x20000000U
#define OB_WRP_PAGES120TO123   0x40000000U
#define OB_WRP_PAGES124TO127   0x80000000U
#define OB_WRP_ALLPAGES   0xFFFFFFFFU
#define OB_WRP_PAGES0TO31MASK   0x000000FFU
#define OB_WRP_PAGES32TO63MASK   0x0000FF00U
#define OB_WRP_PAGES64TO95MASK   0x00FF0000U
#define OB_WRP_PAGES96TO127MASK   0xFF000000U

Define Documentation

#define OB_WRP_ALLPAGES   0xFFFFFFFFU

Write protection of all Pages

Definition at line 401 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES0TO3   0x00000001U

Write protection of page 0 to 3

Definition at line 319 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES0TO31MASK   0x000000FFU

Definition at line 410 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

#define OB_WRP_PAGES100TO103   0x02000000U

Write protection of page 100 to 103

Definition at line 349 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES104TO107   0x04000000U

Write protection of page 104 to 107

Definition at line 350 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES108TO111   0x08000000U

Write protection of page 108 to 111

Definition at line 351 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES112TO115   0x10000000U

Write protection of page 112 to 115

Definition at line 352 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES116TO119   0x20000000U

Write protection of page 115 to 119

Definition at line 353 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES120TO123   0x40000000U

Write protection of page 120 to 123

Definition at line 354 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES124TO127   0x80000000U

Write protection of page 124 to 127

Definition at line 355 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES12TO15   0x00000008U

Write protection of page 12 to 15

Definition at line 322 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES16TO19   0x00000010U

Write protection of page 16 to 19

Definition at line 323 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES20TO23   0x00000020U

Write protection of page 20 to 23

Definition at line 324 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES24TO27   0x00000040U

Write protection of page 24 to 27

Definition at line 325 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES28TO31   0x00000080U

Write protection of page 28 to 31

Definition at line 326 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES32TO35   0x00000100U

Write protection of page 32 to 35

Definition at line 332 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES32TO63MASK   0x0000FF00U

Definition at line 411 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

#define OB_WRP_PAGES36TO39   0x00000200U

Write protection of page 36 to 39

Definition at line 333 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES40TO43   0x00000400U

Write protection of page 40 to 43

Definition at line 334 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES44TO47   0x00000800U

Write protection of page 44 to 47

Definition at line 335 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES48TO51   0x00001000U

Write protection of page 48 to 51

Definition at line 336 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES4TO7   0x00000002U

Write protection of page 4 to 7

Definition at line 320 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES52TO55   0x00002000U

Write protection of page 52 to 55

Definition at line 337 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES56TO59   0x00004000U

Write protection of page 56 to 59

Definition at line 338 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES60TO63   0x00008000U

Write protection of page 60 to 63

Definition at line 339 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES64TO67   0x00010000U

Write protection of page 64 to 67

Definition at line 340 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES64TO95MASK   0x00FF0000U

Definition at line 412 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

#define OB_WRP_PAGES68TO71   0x00020000U

Write protection of page 68 to 71

Definition at line 341 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES72TO75   0x00040000U

Write protection of page 72 to 75

Definition at line 342 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES76TO79   0x00080000U

Write protection of page 76 to 79

Definition at line 343 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES80TO83   0x00100000U

Write protection of page 80 to 83

Definition at line 344 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES84TO87   0x00200000U

Write protection of page 84 to 87

Definition at line 345 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES88TO91   0x00400000U

Write protection of page 88 to 91

Definition at line 346 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES8TO11   0x00000004U

Write protection of page 8 to 11

Definition at line 321 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES92TO95   0x00800000U

Write protection of page 92 to 95

Definition at line 347 of file stm32f1xx_hal_flash_ex.h.

#define OB_WRP_PAGES96TO127MASK   0xFF000000U

Definition at line 413 of file stm32f1xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

#define OB_WRP_PAGES96TO99   0x01000000U

Write protection of page 96 to 99

Definition at line 348 of file stm32f1xx_hal_flash_ex.h.