Skip to content

Commit 3060ee2

Browse files
schuamkartben
authored andcommitted
samples: boards: add nucleo_g0b1re board with mco output
Add overlay file to enable the MCO1&2 output clock on the nucleo_g0b1re. Signed-off-by: Andreas Schuster <[email protected]>
1 parent 81049c5 commit 3060ee2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
&mco1 {
2+
status = "okay";
3+
clocks = <&rcc STM32_SRC_LSI MCO1_SEL(MCO_SEL_LSI)>;
4+
prescaler = <MCO1_PRE(MCO_PRE_DIV_1)>;
5+
pinctrl-0 = <&rcc_mco_pa8>;
6+
pinctrl-names = "default";
7+
};
8+
9+
&mco2 {
10+
status = "okay";
11+
clocks = <&rcc STM32_SRC_HSI MCO2_SEL(MCO_SEL_HSI16)>;
12+
prescaler = <MCO2_PRE(MCO_PRE_DIV_16)>;
13+
pinctrl-0 = <&rcc_mco_2_pa15>;
14+
pinctrl-names = "default";
15+
};

0 commit comments

Comments
 (0)