Skip to content

Commit 28bcbfd

Browse files
committed
Fix rename of H7 RM0455 OCTOSPI peripheral
Previous modification did not work as this peripheral is derivedFrom OCTOSPI in the original SVD
1 parent d5d4465 commit 28bcbfd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

devices/common_patches/h7_common_highmemory.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ _modify:
1212
name: FDCAN2
1313
DAC:
1414
name: DAC1
15-
OCTOSPI1_CONTROL_REGISTER:
16-
name: OCTOSPI1
1715

1816
# The SVD is just quite different to the RM for all these registers.
1917
# We'll go with the RM convention even though it is inconsistent too.
@@ -313,6 +311,8 @@ AXI:
313311
# Work around the DMA_STR? interrupt mess in the SVD.
314312
# Some interrupts are on DMA2 instead on DMA1 and/or called DMA_STR? without
315313
# the numeral.
314+
#
315+
# Since it is not possible to modify a derivedFrom peripheral, we delete it first
316316

317317
_delete:
318318
- DMA2
@@ -322,6 +322,7 @@ _delete:
322322
- UART8
323323
- USART9
324324
- USART10
325+
- OCTOSPI1_CONTROL_REGISTER
325326

326327
_add:
327328
DMA2:
@@ -394,6 +395,13 @@ _add:
394395
USART10:
395396
description: USART10 global interrupt
396397
value: 141
398+
OCTOSPI1:
399+
derivedFrom: OCTOSPI2
400+
baseAddress: 0x52005000
401+
interrupts:
402+
OCTOSPI1:
403+
description: OCTOSPI global interrupt
404+
value: 92
397405
DAC2:
398406
derivedFrom: DAC1
399407
baseAddress: 0x58003400

0 commit comments

Comments
 (0)