README.rst
1.. zephyr:code-sample:: producer_consumer
2 :name: Producer Consumer
3 :relevant-api: rtio
4
5 Implement a producer->consumer pipe using RTIO.
6
7Overview
8********
9
10A simple sample that be used with any :ref:`supported board <boards>` showing a
11producer and consumer pattern implemented using RTIO. In this case the producer
12is a k_timer generating cycle accurate timestamps of when the timer callback ran
13in an ISR.
14
15Building and Running
16********************
17
18The sample can be built for the native_sim target and run as follows:
19
20.. zephyr-app-commands::
21 :zephyr-app: samples/subsys/rtio/producer_consumer
22 :board: native_sim
23 :goals: build run
24 :compact:
25
26When running, the output on the console shows the operations of submitting for,
27consuming, and processing the data.
28