@@ -201,37 +201,17 @@ from svdsuite import (
201
201
202
202
# Create an example device. Alternatevily, you can parse a CMSIS-SVD file and manipulate it.
203
203
device = SVDDevice(
204
- size = None ,
205
- access = None ,
206
- protection = None ,
207
- reset_value = None ,
208
- reset_mask = None ,
209
204
xs_no_namespace_schema_location = " CMSIS-SVD.xsd" ,
210
205
schema_version = " 1.3" ,
211
- vendor = None ,
212
- vendor_id = None ,
213
206
name = " STM32F0" ,
214
- series = None ,
215
207
version = " 1.0" ,
216
208
description = " STM32F0 device" ,
217
- license_text = None ,
218
209
cpu = SVDCPU(
219
210
name = CPUNameType.CM52 ,
220
211
revision = " r0p0" ,
221
212
endian = EndianType.LITTLE ,
222
- mpu_present = False ,
223
- fpu_present = False ,
224
- fpu_dp = False ,
225
- dsp_present = False ,
226
- icache_present = False ,
227
- dcache_present = False ,
228
- itcm_present = False ,
229
- dtcm_present = False ,
230
- vtor_present = False ,
231
213
nvic_prio_bits = 2 ,
232
214
vendor_systick_config = False ,
233
- device_num_interrupts = 6 ,
234
- sau_num_regions = 2 ,
235
215
sau_regions_config = SVDSauRegionsConfig(
236
216
enabled = True ,
237
217
protection_when_disabled = ProtectionStringType.SECURE ,
@@ -246,36 +226,13 @@ device = SVDDevice(
246
226
],
247
227
),
248
228
),
249
- header_system_filename = None ,
250
- header_definitions_prefix = None ,
251
229
address_unit_bits = 8 ,
252
230
width = 32 ,
253
231
peripherals = [
254
232
SVDPeripheral(
255
- size = None ,
256
- access = None ,
257
- protection = None ,
258
- reset_value = None ,
259
- reset_mask = None ,
260
- dim = None ,
261
- dim_increment = None ,
262
- dim_index = None ,
263
- dim_name = None ,
264
- dim_array_index = None ,
265
233
name = " Timer1" ,
266
- version = " 1.0" ,
267
234
description = " Timer 1 is a standard timer" ,
268
- alternate_peripheral = " Timer1_Alt" ,
269
- group_name = " group_name" ,
270
- prepend_to_name = " prepend" ,
271
- append_to_name = " append" ,
272
- header_struct_name = " headerstruct" ,
273
- disable_condition = " discond" ,
274
235
base_address = 1073750016 ,
275
- address_blocks = [],
276
- interrupts = [],
277
- registers_clusters = [],
278
- derived_from = " test" ,
279
236
)
280
237
],
281
238
)
@@ -300,19 +257,8 @@ Output:
300
257
<name >CM52</name >
301
258
<revision >r0p0</revision >
302
259
<endian >little</endian >
303
- <mpuPresent >false</mpuPresent >
304
- <fpuPresent >false</fpuPresent >
305
- <fpuDP >false</fpuDP >
306
- <dspPresent >false</dspPresent >
307
- <icachePresent >false</icachePresent >
308
- <dcachePresent >false</dcachePresent >
309
- <itcmPresent >false</itcmPresent >
310
- <dtcmPresent >false</dtcmPresent >
311
- <vtorPresent >false</vtorPresent >
312
260
<nvicPrioBits >2</nvicPrioBits >
313
261
<vendorSystickConfig >false</vendorSystickConfig >
314
- <deviceNumInterrupts >6</deviceNumInterrupts >
315
- <sauNumRegions >2</sauNumRegions >
316
262
<sauRegionsConfig enabled =" true" protectionWhenDisabled =" s" >
317
263
<region enabled =" true" name =" Region1" >
318
264
<base >0x1000</base >
@@ -324,16 +270,9 @@ Output:
324
270
<addressUnitBits >8</addressUnitBits >
325
271
<width >32</width >
326
272
<peripherals >
327
- <peripheral derivedFrom = " test " >
273
+ <peripheral >
328
274
<name >Timer1</name >
329
- <version >1.0</version >
330
275
<description >Timer 1 is a standard timer</description >
331
- <alternatePeripheral >Timer1_Alt</alternatePeripheral >
332
- <groupName >group_name</groupName >
333
- <prependToName >prepend</prependToName >
334
- <appendToName >append</appendToName >
335
- <headerStructName >headerstruct</headerStructName >
336
- <disableCondition >discond</disableCondition >
337
276
<baseAddress >0x40002000</baseAddress >
338
277
</peripheral >
339
278
</peripherals >
0 commit comments