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 <andreas.schuster@schuam.de>
This commit is contained in:
parent
81049c5b75
commit
3060ee2c5c
1 changed files with 15 additions and 0 deletions
15
samples/boards/st/mco/boards/nucleo_g0b1re.overlay
Normal file
15
samples/boards/st/mco/boards/nucleo_g0b1re.overlay
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
&mco1 {
|
||||||
|
status = "okay";
|
||||||
|
clocks = <&rcc STM32_SRC_LSI MCO1_SEL(MCO_SEL_LSI)>;
|
||||||
|
prescaler = <MCO1_PRE(MCO_PRE_DIV_1)>;
|
||||||
|
pinctrl-0 = <&rcc_mco_pa8>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
||||||
|
&mco2 {
|
||||||
|
status = "okay";
|
||||||
|
clocks = <&rcc STM32_SRC_HSI MCO2_SEL(MCO_SEL_HSI16)>;
|
||||||
|
prescaler = <MCO2_PRE(MCO_PRE_DIV_16)>;
|
||||||
|
pinctrl-0 = <&rcc_mco_2_pa15>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue