zephyr/samples/boards/stm32/uart/single_wire
Benjamin Cabé f6a4217a88 doc: driver: samples: Update driver samples to use new Sphinx extension
Migrated existing driver samples to use the new code-sample directive
and role.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2023-09-22 09:21:43 +02:00
..
boards samples: stm32: move board-specific STM32 UART sample 2023-09-13 09:14:06 +02:00
src samples: stm32: move board-specific STM32 UART sample 2023-09-13 09:14:06 +02:00
CMakeLists.txt samples: stm32: move board-specific STM32 UART sample 2023-09-13 09:14:06 +02:00
prj.conf samples: stm32: move board-specific STM32 UART sample 2023-09-13 09:14:06 +02:00
README.rst doc: driver: samples: Update driver samples to use new Sphinx extension 2023-09-22 09:21:43 +02:00
sample.yaml samples: stm32: move board-specific STM32 UART sample 2023-09-13 09:14:06 +02:00

.. zephyr:code-sample:: uart-stm32-single-wire
   :name: STM32 single-wire UART
   :relevant-api: uart_interface

   Use single-wire/half-duplex UART functionality of STM32 devices.

Overview
********

A simple application demonstrating how to use the single wire / half-duplex UART
functionality of STM32. Without adaptions this example runs on STM32F3 discovery
board. You need to establish a physical connection between pins PA2 (USART2_TX) and
PC10 (UART4_TX).

Add a `single_wire_uart_loopback` fixture to your board in the hardware map to allow
twister to verify this sample's output automatically.

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

Build and flash as follows, replacing ``stm32f3_disco`` with your board:

 .. zephyr-app-commands::
    :zephyr-app: samples/boards/stm32/uart/single_wire
    :board: stm32f3_disco
    :goals: build flash
    :compact:

After flashing the console output should not show any failure reports,
but the following message repeated every 2s:

.. code-block:: none

    Received c