1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - Access control register"]
    pub acr: ACR,
    #[doc = "0x04 - FLASH key register for bank 1"]
    pub keyr1: KEYR1,
    #[doc = "0x08 - FLASH option key register"]
    pub optkeyr: OPTKEYR,
    #[doc = "0x0c - FLASH control register for bank 1"]
    pub cr1: CR1,
    #[doc = "0x10 - FLASH status register for bank 1"]
    pub sr1: SR1,
    #[doc = "0x14 - FLASH clear control register for bank 1"]
    pub ccr1: CCR1,
    #[doc = "0x18 - FLASH option control register"]
    pub optcr: OPTCR,
    #[doc = "0x1c - FLASH option status register"]
    pub optsr_cur: OPTSR_CUR,
    #[doc = "0x20 - FLASH option status register"]
    pub optsr_prg: OPTSR_PRG,
    #[doc = "0x24 - FLASH option clear control register"]
    pub optccr: OPTCCR,
    #[doc = "0x28 - FLASH protection address for bank 1"]
    pub prar_cur1: PRAR_CUR1,
    #[doc = "0x2c - FLASH protection address for bank 1"]
    pub prar_prg1: PRAR_PRG1,
    #[doc = "0x30 - FLASH secure address for bank 1"]
    pub scar_cur1: SCAR_CUR1,
    #[doc = "0x34 - FLASH secure address for bank 1"]
    pub scar_prg1: SCAR_PRG1,
    #[doc = "0x38 - FLASH write sector protection for bank 1"]
    pub wpsn_cur1r: WPSN_CUR1R,
    #[doc = "0x3c - FLASH write sector protection for bank 1"]
    pub wpsn_prg1r: WPSN_PRG1R,
    #[doc = "0x40 - FLASH register with boot address"]
    pub boot_curr: BOOT_CURR,
    #[doc = "0x44 - FLASH register with boot address"]
    pub boot_prgr: BOOT_PRGR,
    _reserved18: [u8; 8usize],
    #[doc = "0x50 - FLASH CRC control register for bank 1"]
    pub crccr1: CRCCR1,
    #[doc = "0x54 - FLASH CRC start address register for bank 1"]
    pub crcsadd1r: CRCSADD1R,
    #[doc = "0x58 - FLASH CRC end address register for bank 1"]
    pub crceadd1r: CRCEADD1R,
    #[doc = "0x5c - FLASH CRC data register"]
    pub crcdatar: CRCDATAR,
    #[doc = "0x60 - FLASH ECC fail address for bank 1"]
    pub ecc_fa1r: ECC_FA1R,
    _reserved23: [u8; 156usize],
    #[doc = "0x100 - Access control register"]
    pub acr_: ACR_,
    #[doc = "0x104 - FLASH key register for bank 2"]
    pub keyr2: KEYR2,
    #[doc = "0x108 - FLASH option key register"]
    pub optkeyr_: OPTKEYR_,
    #[doc = "0x10c - FLASH control register for bank 2"]
    pub cr2: CR2,
    #[doc = "0x110 - FLASH status register for bank 2"]
    pub sr2: SR2,
    #[doc = "0x114 - FLASH clear control register for bank 2"]
    pub ccr2: CCR2,
    #[doc = "0x118 - FLASH option control register"]
    pub optcr_: OPTCR_,
    #[doc = "0x11c - FLASH option status register"]
    pub optsr_cur_: OPTSR_CUR_,
    #[doc = "0x120 - FLASH option status register"]
    pub optsr_prg_: OPTSR_PRG_,
    #[doc = "0x124 - FLASH option clear control register"]
    pub optccr_: OPTCCR_,
    #[doc = "0x128 - FLASH protection address for bank 1"]
    pub prar_cur2: PRAR_CUR2,
    #[doc = "0x12c - FLASH protection address for bank 2"]
    pub prar_prg2: PRAR_PRG2,
    #[doc = "0x130 - FLASH secure address for bank 2"]
    pub scar_cur2: SCAR_CUR2,
    #[doc = "0x134 - FLASH secure address for bank 2"]
    pub scar_prg2: SCAR_PRG2,
    #[doc = "0x138 - FLASH write sector protection for bank 2"]
    pub wpsn_cur2r: WPSN_CUR2R,
    #[doc = "0x13c - FLASH write sector protection for bank 2"]
    pub wpsn_prg2r: WPSN_PRG2R,
    _reserved39: [u8; 16usize],
    #[doc = "0x150 - FLASH CRC control register for bank 1"]
    pub crccr2: CRCCR2,
    #[doc = "0x154 - FLASH CRC start address register for bank 2"]
    pub crcsadd2r: CRCSADD2R,
    #[doc = "0x158 - FLASH CRC end address register for bank 2"]
    pub crceadd2r: CRCEADD2R,
    _reserved42: [u8; 4usize],
    #[doc = "0x160 - FLASH ECC fail address for bank 2"]
    pub ecc_fa2r: ECC_FA2R,
}
#[doc = "Access control register"]
pub struct ACR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "Access control register"]
pub mod acr;
#[doc = "Access control register"]
pub struct ACR_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "Access control register"]
pub mod acr_;
#[doc = "FLASH key register for bank 1"]
pub struct KEYR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH key register for bank 1"]
pub mod keyr1;
#[doc = "FLASH option key register"]
pub struct OPTKEYR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option key register"]
pub mod optkeyr;
#[doc = "FLASH option key register"]
pub struct OPTKEYR_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option key register"]
pub mod optkeyr_;
#[doc = "FLASH control register for bank 1"]
pub struct CR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH control register for bank 1"]
pub mod cr1;
#[doc = "FLASH status register for bank 1"]
pub struct SR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH status register for bank 1"]
pub mod sr1;
#[doc = "FLASH clear control register for bank 1"]
pub struct CCR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH clear control register for bank 1"]
pub mod ccr1;
#[doc = "FLASH option control register"]
pub struct OPTCR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option control register"]
pub mod optcr;
#[doc = "FLASH option control register"]
pub struct OPTCR_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option control register"]
pub mod optcr_;
#[doc = "FLASH option status register"]
pub struct OPTSR_CUR_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option status register"]
pub mod optsr_cur_;
#[doc = "FLASH option status register"]
pub struct OPTSR_CUR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option status register"]
pub mod optsr_cur;
#[doc = "FLASH option status register"]
pub struct OPTSR_PRG {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option status register"]
pub mod optsr_prg;
#[doc = "FLASH option status register"]
pub struct OPTSR_PRG_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option status register"]
pub mod optsr_prg_;
#[doc = "FLASH option clear control register"]
pub struct OPTCCR_ {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option clear control register"]
pub mod optccr_;
#[doc = "FLASH option clear control register"]
pub struct OPTCCR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH option clear control register"]
pub mod optccr;
#[doc = "FLASH protection address for bank 1"]
pub struct PRAR_CUR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH protection address for bank 1"]
pub mod prar_cur1;
#[doc = "FLASH protection address for bank 1"]
pub struct PRAR_PRG1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH protection address for bank 1"]
pub mod prar_prg1;
#[doc = "FLASH secure address for bank 1"]
pub struct SCAR_CUR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH secure address for bank 1"]
pub mod scar_cur1;
#[doc = "FLASH secure address for bank 1"]
pub struct SCAR_PRG1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH secure address for bank 1"]
pub mod scar_prg1;
#[doc = "FLASH write sector protection for bank 1"]
pub struct WPSN_CUR1R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH write sector protection for bank 1"]
pub mod wpsn_cur1r;
#[doc = "FLASH write sector protection for bank 1"]
pub struct WPSN_PRG1R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH write sector protection for bank 1"]
pub mod wpsn_prg1r;
#[doc = "FLASH register with boot address"]
pub struct BOOT_CURR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH register with boot address"]
pub mod boot_curr;
#[doc = "FLASH register with boot address"]
pub struct BOOT_PRGR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH register with boot address"]
pub mod boot_prgr;
#[doc = "FLASH CRC control register for bank 1"]
pub struct CRCCR1 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC control register for bank 1"]
pub mod crccr1;
#[doc = "FLASH CRC start address register for bank 1"]
pub struct CRCSADD1R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC start address register for bank 1"]
pub mod crcsadd1r;
#[doc = "FLASH CRC end address register for bank 1"]
pub struct CRCEADD1R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC end address register for bank 1"]
pub mod crceadd1r;
#[doc = "FLASH CRC data register"]
pub struct CRCDATAR {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC data register"]
pub mod crcdatar;
#[doc = "FLASH ECC fail address for bank 1"]
pub struct ECC_FA1R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH ECC fail address for bank 1"]
pub mod ecc_fa1r;
#[doc = "FLASH key register for bank 2"]
pub struct KEYR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH key register for bank 2"]
pub mod keyr2;
#[doc = "FLASH control register for bank 2"]
pub struct CR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH control register for bank 2"]
pub mod cr2;
#[doc = "FLASH status register for bank 2"]
pub struct SR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH status register for bank 2"]
pub mod sr2;
#[doc = "FLASH clear control register for bank 2"]
pub struct CCR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH clear control register for bank 2"]
pub mod ccr2;
#[doc = "FLASH protection address for bank 1"]
pub struct PRAR_CUR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH protection address for bank 1"]
pub mod prar_cur2;
#[doc = "FLASH protection address for bank 2"]
pub struct PRAR_PRG2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH protection address for bank 2"]
pub mod prar_prg2;
#[doc = "FLASH secure address for bank 2"]
pub struct SCAR_CUR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH secure address for bank 2"]
pub mod scar_cur2;
#[doc = "FLASH secure address for bank 2"]
pub struct SCAR_PRG2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH secure address for bank 2"]
pub mod scar_prg2;
#[doc = "FLASH write sector protection for bank 2"]
pub struct WPSN_CUR2R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH write sector protection for bank 2"]
pub mod wpsn_cur2r;
#[doc = "FLASH write sector protection for bank 2"]
pub struct WPSN_PRG2R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH write sector protection for bank 2"]
pub mod wpsn_prg2r;
#[doc = "FLASH CRC control register for bank 1"]
pub struct CRCCR2 {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC control register for bank 1"]
pub mod crccr2;
#[doc = "FLASH CRC start address register for bank 2"]
pub struct CRCSADD2R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC start address register for bank 2"]
pub mod crcsadd2r;
#[doc = "FLASH CRC end address register for bank 2"]
pub struct CRCEADD2R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH CRC end address register for bank 2"]
pub mod crceadd2r;
#[doc = "FLASH ECC fail address for bank 2"]
pub struct ECC_FA2R {
    register: vcell::VolatileCell<u32>,
}
#[doc = "FLASH ECC fail address for bank 2"]
pub mod ecc_fa2r;