Producer Consumer

Browse source code on GitHub

Overview

A simple sample that be used with any supported board showing a producer and consumer pattern implemented using RTIO. In this case the producer is a k_timer generating cycle accurate timestamps of when the timer callback ran in an ISR.

Building and Running

The sample can be built for the native_sim target and run as follows:

west build -b native_sim samples/subsys/rtio/producer_consumer
west build -t run

When running, the output on the console shows the operations of submitting for, consuming, and processing the data.

See also

RTIO