zephyr/samples/drivers/uart/stm32/single_wire
Gerard Marull-Paretas 6f9f45d034 samples: remove redundant <zephyr/zephyr.h> includes
Files including <zephyr/kernel.h> do not have to include
<zephyr/zephyr.h>, a shim to <zephyr/kernel.h>.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-06-15 09:13:11 +02:00
..
boards samples: uart: Add sample for single line uart 2022-01-11 11:47:47 +01:00
src samples: remove redundant <zephyr/zephyr.h> includes 2022-06-15 09:13:11 +02:00
CMakeLists.txt samples: uart: Add sample for single line uart 2022-01-11 11:47:47 +01:00
README.rst everywhere: fix typos 2022-03-18 13:24:08 -04:00
prj.conf samples: uart: Add sample for single line uart 2022-01-11 11:47:47 +01:00
sample.yaml samples: uart: Add sample for single line uart 2022-01-11 11:47:47 +01:00

README.rst

.. _sample_uart_stm32_single_wire:

STM32 Single Wire UART
######################

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/drivers/uart/stm32/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