Skip to content

Commit cfc8f88

Browse files
authored
Merge pull request #497 from stm32-rs/f303-dac2
F303: Rename DAC to DAC1, add DAC2
2 parents 6054bdf + d03ac14 commit cfc8f88

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

devices/common_patches/f3_syscfg.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ SYSCFG:
88
_strip:
99
- SYSCFG_
1010
_delete:
11-
- OPAMP*
12-
- COMP*
11+
_registers:
12+
- OPAMP*
13+
- COMP*
1314
CFGR1:
1415
_modify:
1516
TIM1_ITR_RMP:

devices/stm32f303.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ _modify:
55
Flash:
66
name: FLASH
77

8+
# Rename DAC to DAC1 in accordance with the reference manual.
9+
DAC:
10+
name: DAC1
11+
812
PWR:
913
CSR:
1014
_add:
@@ -26,6 +30,13 @@ PWR:
2630
TIFRFE:
2731
name: "FRE"
2832

33+
_add:
34+
# DAC2 exists on F303x6/8 and F328x8 devices, and only has one channel.
35+
DAC2:
36+
derivedFrom: DAC1
37+
baseAddress: "0x40009800"
38+
39+
2940
RCC:
3041
APB1RSTR:
3142
_add:
@@ -44,8 +55,6 @@ SYSCFG:
4455
_delete:
4556
_interrupts:
4657
- "COMP*"
47-
48-
SYSCFG:
4958
_strip:
5059
- SYSCFG_
5160
_add:

0 commit comments

Comments
 (0)