samples: boards: stm32F4 board with mco output selection
Add overlay file to enable the MCO1&2 output clock on the nucleo_f429zi. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
f670551008
commit
c2778e798f
1 changed files with 31 additions and 0 deletions
31
samples/boards/st/mco/boards/nucleo_f429zi.overlay
Normal file
31
samples/boards/st/mco/boards/nucleo_f429zi.overlay
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* The clock that is output must be enabled. */
|
||||
&clk_hse {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* See reference manual (RM0090):
|
||||
* 0b010: HSE clock selected
|
||||
*/
|
||||
#define MCO_SEL_HSE 2
|
||||
|
||||
/* See reference manual (RM0090):
|
||||
* 0b100: MCO divided by 2
|
||||
*/
|
||||
#define MCO_PRE_DIV_2 4
|
||||
|
||||
&mco1 {
|
||||
status = "okay";
|
||||
clocks = <&rcc STM32_SRC_HSE MCO1_SEL(MCO_SEL_HSE)>;
|
||||
prescaler = <MCO1_PRE(MCO_PRE_DIV_2)>;
|
||||
pinctrl-0 = <&rcc_mco_1_pa8>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
|
||||
&mco2 {
|
||||
status = "okay";
|
||||
clocks = <&rcc STM32_SRC_HSE MCO2_SEL(MCO_SEL_HSE)>;
|
||||
prescaler = <MCO2_PRE(MCO_PRE_DIV_2)>;
|
||||
pinctrl-0 = <&rcc_mco_2_pc9>;
|
||||
pinctrl-names = "default";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue