zephyr/samples/boards/st/mco
Joakim Andersson b4ada0dbd1 samples: stm32: mco: Add disco board which has 2 MCO instances
Add stm32f746g_disco board to MCO sample.
This board has 2 MCO instances so useful to show multiple instances
as well as checking the implementation.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2024-09-16 20:19:57 +02:00
..
boards samples: stm32: mco: Add disco board which has 2 MCO instances 2024-09-16 20:19:57 +02:00
src samples: stm32: mco: Add disco board which has 2 MCO instances 2024-09-16 20:19:57 +02:00
CMakeLists.txt
prj.conf
README.rst
sample.yaml samples: stm32: mco: Add disco board which has 2 MCO instances 2024-09-16 20:19:57 +02:00

.. zephyr:code-sample:: stm32_mco
   :name: Master Clock Output (MCO)
   :relevant-api: pinctrl_interface

   Output an internal clock for external use by the application.

Overview
********

This sample is a minimum application to demonstrate how to output one of the internal clocks for
external use by the application.

Requirements
************

The SoC should support MCO functionality and use a pin that has the MCO alternate function.
To support another board, add a dts overlay file in boards folder.
Make sure that the output clock is enabled in dts overlay file.


Building and Running
********************

.. zephyr-app-commands::
   :zephyr-app: samples/boards/st/mco
   :board: nucleo_u5a5zj_q
   :goals: build flash

After flashing, the LSE clock will be output on the MCO pin enabled in Device Tree.
The clock can be observed using a probing device, such as a logic analyzer.