Skip to content

Commit 6b1f001

Browse files
committed
[stm32] Fix Rcc::enable for H7 comparator
1 parent 84463ae commit 6b1f001

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/modm/platform/clock/stm32/module.lb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ def build(env):
155155
if "Fdcan1" in all_peripherals and per == "FDCAN":
156156
per = "FDCAN1"
157157
nper = "FDCAN"
158+
# COMP12
159+
if "Comp1" in all_peripherals and per == "COMP12":
160+
per = "COMP1"
161+
nper = "COMP12"
162+
if "Comp2" in all_peripherals and per == "COMP12":
163+
per = "COMP2"
164+
nper = "COMP12"
158165
# DAC
159166
if "Dac1" in all_peripherals and per == "DAC":
160167
per = "DAC1"

0 commit comments

Comments
 (0)