Option_Bytes_Write_Protection
[FLASH_Exported_Constants]

Defines

#define FLASH_WRProt_AllPages   ((uint32_t)0xFFFFFFFF)
#define FLASH_WRProt_Pages0to1   ((uint32_t)0x00000001)
#define FLASH_WRProt_Pages0to3   ((uint32_t)0x00000001)
#define FLASH_WRProt_Pages100to103   ((uint32_t)0x02000000)
#define FLASH_WRProt_Pages104to107   ((uint32_t)0x04000000)
#define FLASH_WRProt_Pages108to111   ((uint32_t)0x08000000)
#define FLASH_WRProt_Pages10to11   ((uint32_t)0x00000020)
#define FLASH_WRProt_Pages112to115   ((uint32_t)0x10000000)
#define FLASH_WRProt_Pages116to119   ((uint32_t)0x20000000)
#define FLASH_WRProt_Pages120to123   ((uint32_t)0x40000000)
#define FLASH_WRProt_Pages124to127   ((uint32_t)0x80000000)
#define FLASH_WRProt_Pages12to13   ((uint32_t)0x00000040)
#define FLASH_WRProt_Pages12to15   ((uint32_t)0x00000008)
#define FLASH_WRProt_Pages14to15   ((uint32_t)0x00000080)
#define FLASH_WRProt_Pages16to17   ((uint32_t)0x00000100)
#define FLASH_WRProt_Pages16to19   ((uint32_t)0x00000010)
#define FLASH_WRProt_Pages18to19   ((uint32_t)0x00000200)
#define FLASH_WRProt_Pages20to21   ((uint32_t)0x00000400)
#define FLASH_WRProt_Pages20to23   ((uint32_t)0x00000020)
#define FLASH_WRProt_Pages22to23   ((uint32_t)0x00000800)
#define FLASH_WRProt_Pages24to25   ((uint32_t)0x00001000)
#define FLASH_WRProt_Pages24to27   ((uint32_t)0x00000040)
#define FLASH_WRProt_Pages26to27   ((uint32_t)0x00002000)
#define FLASH_WRProt_Pages28to29   ((uint32_t)0x00004000)
#define FLASH_WRProt_Pages28to31   ((uint32_t)0x00000080)
#define FLASH_WRProt_Pages2to3   ((uint32_t)0x00000002)
#define FLASH_WRProt_Pages30to31   ((uint32_t)0x00008000)
#define FLASH_WRProt_Pages32to33   ((uint32_t)0x00010000)
#define FLASH_WRProt_Pages32to35   ((uint32_t)0x00000100)
#define FLASH_WRProt_Pages34to35   ((uint32_t)0x00020000)
#define FLASH_WRProt_Pages36to37   ((uint32_t)0x00040000)
#define FLASH_WRProt_Pages36to39   ((uint32_t)0x00000200)
#define FLASH_WRProt_Pages38to39   ((uint32_t)0x00080000)
#define FLASH_WRProt_Pages40to41   ((uint32_t)0x00100000)
#define FLASH_WRProt_Pages40to43   ((uint32_t)0x00000400)
#define FLASH_WRProt_Pages42to43   ((uint32_t)0x00200000)
#define FLASH_WRProt_Pages44to45   ((uint32_t)0x00400000)
#define FLASH_WRProt_Pages44to47   ((uint32_t)0x00000800)
#define FLASH_WRProt_Pages46to47   ((uint32_t)0x00800000)
#define FLASH_WRProt_Pages48to49   ((uint32_t)0x01000000)
#define FLASH_WRProt_Pages48to51   ((uint32_t)0x00001000)
#define FLASH_WRProt_Pages4to5   ((uint32_t)0x00000004)
#define FLASH_WRProt_Pages4to7   ((uint32_t)0x00000002)
#define FLASH_WRProt_Pages50to51   ((uint32_t)0x02000000)
#define FLASH_WRProt_Pages52to53   ((uint32_t)0x04000000)
#define FLASH_WRProt_Pages52to55   ((uint32_t)0x00002000)
#define FLASH_WRProt_Pages54to55   ((uint32_t)0x08000000)
#define FLASH_WRProt_Pages56to57   ((uint32_t)0x10000000)
#define FLASH_WRProt_Pages56to59   ((uint32_t)0x00004000)
#define FLASH_WRProt_Pages58to59   ((uint32_t)0x20000000)
#define FLASH_WRProt_Pages60to61   ((uint32_t)0x40000000)
#define FLASH_WRProt_Pages60to63   ((uint32_t)0x00008000)
#define FLASH_WRProt_Pages62to127   ((uint32_t)0x80000000)
#define FLASH_WRProt_Pages62to255   ((uint32_t)0x80000000)
#define FLASH_WRProt_Pages62to511   ((uint32_t)0x80000000)
#define FLASH_WRProt_Pages64to67   ((uint32_t)0x00010000)
#define FLASH_WRProt_Pages68to71   ((uint32_t)0x00020000)
#define FLASH_WRProt_Pages6to7   ((uint32_t)0x00000008)
#define FLASH_WRProt_Pages72to75   ((uint32_t)0x00040000)
#define FLASH_WRProt_Pages76to79   ((uint32_t)0x00080000)
#define FLASH_WRProt_Pages80to83   ((uint32_t)0x00100000)
#define FLASH_WRProt_Pages84to87   ((uint32_t)0x00200000)
#define FLASH_WRProt_Pages88to91   ((uint32_t)0x00400000)
#define FLASH_WRProt_Pages8to11   ((uint32_t)0x00000004)
#define FLASH_WRProt_Pages8to9   ((uint32_t)0x00000010)
#define FLASH_WRProt_Pages92to95   ((uint32_t)0x00800000)
#define FLASH_WRProt_Pages96to99   ((uint32_t)0x01000000)
#define IS_FLASH_ADDRESS(ADDRESS)   (((ADDRESS) >= 0x08000000) && ((ADDRESS) < 0x080FFFFF))
#define IS_FLASH_WRPROT_PAGE(PAGE)   (((PAGE) != 0x00000000))
#define IS_OB_DATA_ADDRESS(ADDRESS)   (((ADDRESS) == 0x1FFFF804) || ((ADDRESS) == 0x1FFFF806))

Define Documentation

#define FLASH_WRProt_AllPages   ((uint32_t)0xFFFFFFFF)

Write protection of all Pages

Definition at line 211 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages0to1   ((uint32_t)0x00000001)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 0 to 1

Definition at line 145 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages0to3   ((uint32_t)0x00000001)

STM32 Low and Medium density devices: Write protection of page 0 to 3

Definition at line 109 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages100to103   ((uint32_t)0x02000000)

STM32 Medium-density devices: Write protection of page 100 to 103

Definition at line 136 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages104to107   ((uint32_t)0x04000000)

STM32 Medium-density devices: Write protection of page 104 to 107

Definition at line 137 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages108to111   ((uint32_t)0x08000000)

STM32 Medium-density devices: Write protection of page 108 to 111

Definition at line 138 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages10to11   ((uint32_t)0x00000020)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 10 to 11

Definition at line 155 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages112to115   ((uint32_t)0x10000000)

STM32 Medium-density devices: Write protection of page 112 to 115

Definition at line 139 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages116to119   ((uint32_t)0x20000000)

STM32 Medium-density devices: Write protection of page 115 to 119

Definition at line 140 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages120to123   ((uint32_t)0x40000000)

STM32 Medium-density devices: Write protection of page 120 to 123

Definition at line 141 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages124to127   ((uint32_t)0x80000000)

STM32 Medium-density devices: Write protection of page 124 to 127

Definition at line 142 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages12to13   ((uint32_t)0x00000040)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 12 to 13

Definition at line 157 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages12to15   ((uint32_t)0x00000008)

STM32 Low and Medium density devices: Write protection of page 12 to 15

Definition at line 112 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages14to15   ((uint32_t)0x00000080)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 14 to 15

Definition at line 159 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages16to17   ((uint32_t)0x00000100)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 16 to 17

Definition at line 161 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages16to19   ((uint32_t)0x00000010)

STM32 Low and Medium density devices: Write protection of page 16 to 19

Definition at line 113 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages18to19   ((uint32_t)0x00000200)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 18 to 19

Definition at line 163 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages20to21   ((uint32_t)0x00000400)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 20 to 21

Definition at line 165 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages20to23   ((uint32_t)0x00000020)

STM32 Low and Medium density devices: Write protection of page 20 to 23

Definition at line 114 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages22to23   ((uint32_t)0x00000800)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 22 to 23

Definition at line 167 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages24to25   ((uint32_t)0x00001000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 24 to 25

Definition at line 169 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages24to27   ((uint32_t)0x00000040)

STM32 Low and Medium density devices: Write protection of page 24 to 27

Definition at line 115 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages26to27   ((uint32_t)0x00002000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 26 to 27

Definition at line 171 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages28to29   ((uint32_t)0x00004000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 28 to 29

Definition at line 173 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages28to31   ((uint32_t)0x00000080)

STM32 Low and Medium density devices: Write protection of page 28 to 31

Definition at line 116 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages2to3   ((uint32_t)0x00000002)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 2 to 3

Definition at line 147 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages30to31   ((uint32_t)0x00008000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 30 to 31

Definition at line 175 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages32to33   ((uint32_t)0x00010000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 32 to 33

Definition at line 177 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages32to35   ((uint32_t)0x00000100)

STM32 Medium-density devices: Write protection of page 32 to 35

Definition at line 119 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages34to35   ((uint32_t)0x00020000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 34 to 35

Definition at line 179 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages36to37   ((uint32_t)0x00040000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 36 to 37

Definition at line 181 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages36to39   ((uint32_t)0x00000200)

STM32 Medium-density devices: Write protection of page 36 to 39

Definition at line 120 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages38to39   ((uint32_t)0x00080000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 38 to 39

Definition at line 183 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages40to41   ((uint32_t)0x00100000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 40 to 41

Definition at line 185 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages40to43   ((uint32_t)0x00000400)

STM32 Medium-density devices: Write protection of page 40 to 43

Definition at line 121 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages42to43   ((uint32_t)0x00200000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 42 to 43

Definition at line 187 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages44to45   ((uint32_t)0x00400000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 44 to 45

Definition at line 189 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages44to47   ((uint32_t)0x00000800)

STM32 Medium-density devices: Write protection of page 44 to 47

Definition at line 122 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages46to47   ((uint32_t)0x00800000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 46 to 47

Definition at line 191 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages48to49   ((uint32_t)0x01000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 48 to 49

Definition at line 193 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages48to51   ((uint32_t)0x00001000)

STM32 Medium-density devices: Write protection of page 48 to 51

Definition at line 123 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages4to5   ((uint32_t)0x00000004)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 4 to 5

Definition at line 149 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages4to7   ((uint32_t)0x00000002)

STM32 Low and Medium density devices: Write protection of page 4 to 7

Definition at line 110 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages50to51   ((uint32_t)0x02000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 50 to 51

Definition at line 195 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages52to53   ((uint32_t)0x04000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 52 to 53

Definition at line 197 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages52to55   ((uint32_t)0x00002000)

STM32 Medium-density devices: Write protection of page 52 to 55

Definition at line 124 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages54to55   ((uint32_t)0x08000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 54 to 55

Definition at line 199 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages56to57   ((uint32_t)0x10000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 56 to 57

Definition at line 201 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages56to59   ((uint32_t)0x00004000)

STM32 Medium-density devices: Write protection of page 56 to 59

Definition at line 125 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages58to59   ((uint32_t)0x20000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 58 to 59

Definition at line 203 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages60to61   ((uint32_t)0x40000000)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 60 to 61

Definition at line 205 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages60to63   ((uint32_t)0x00008000)

STM32 Medium-density devices: Write protection of page 60 to 63

Definition at line 126 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages62to127   ((uint32_t)0x80000000)

STM32 Connectivity line devices: Write protection of page 62 to 127

Definition at line 207 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages62to255   ((uint32_t)0x80000000)

STM32 Medium-density devices: Write protection of page 62 to 255

Definition at line 208 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages62to511   ((uint32_t)0x80000000)

STM32 XL-density devices: Write protection of page 62 to 511

Definition at line 209 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages64to67   ((uint32_t)0x00010000)

STM32 Medium-density devices: Write protection of page 64 to 67

Definition at line 127 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages68to71   ((uint32_t)0x00020000)

STM32 Medium-density devices: Write protection of page 68 to 71

Definition at line 128 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages6to7   ((uint32_t)0x00000008)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 6 to 7

Definition at line 151 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages72to75   ((uint32_t)0x00040000)

STM32 Medium-density devices: Write protection of page 72 to 75

Definition at line 129 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages76to79   ((uint32_t)0x00080000)

STM32 Medium-density devices: Write protection of page 76 to 79

Definition at line 130 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages80to83   ((uint32_t)0x00100000)

STM32 Medium-density devices: Write protection of page 80 to 83

Definition at line 131 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages84to87   ((uint32_t)0x00200000)

STM32 Medium-density devices: Write protection of page 84 to 87

Definition at line 132 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages88to91   ((uint32_t)0x00400000)

STM32 Medium-density devices: Write protection of page 88 to 91

Definition at line 133 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages8to11   ((uint32_t)0x00000004)

STM32 Low and Medium density devices: Write protection of page 8 to 11

Definition at line 111 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages8to9   ((uint32_t)0x00000010)

STM32 High-density, XL-density and Connectivity line devices: Write protection of page 8 to 9

Definition at line 153 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages92to95   ((uint32_t)0x00800000)

STM32 Medium-density devices: Write protection of page 92 to 95

Definition at line 134 of file stm32f10x_flash.h.

#define FLASH_WRProt_Pages96to99   ((uint32_t)0x01000000)

STM32 Medium-density devices: Write protection of page 96 to 99

Definition at line 135 of file stm32f10x_flash.h.

#define IS_FLASH_ADDRESS ( ADDRESS   )     (((ADDRESS) >= 0x08000000) && ((ADDRESS) < 0x080FFFFF))

Definition at line 215 of file stm32f10x_flash.h.

Referenced by FLASH_ErasePage(), FLASH_ProgramHalfWord(), and FLASH_ProgramWord().

#define IS_FLASH_WRPROT_PAGE ( PAGE   )     (((PAGE) != 0x00000000))

Definition at line 213 of file stm32f10x_flash.h.

Referenced by FLASH_EnableWriteProtection().

#define IS_OB_DATA_ADDRESS ( ADDRESS   )     (((ADDRESS) == 0x1FFFF804) || ((ADDRESS) == 0x1FFFF806))

Definition at line 217 of file stm32f10x_flash.h.

Referenced by FLASH_ProgramOptionByteData().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32