zephyr/tests/lib
Peter A. Bigot 13f96d439e sys: onoff: support clients using synchronous transitions
The on-off manager infrastructure is designed to robust asynchronous
transition between binary states where multiple clients may be
initiating a transition from any context.  The actual transition is
performed using a manager that tracks the current state and pending
operations.  Requests are initiated by passing a reference to an
onoff_client object that holds client state including the notification
mechanism.

This API may be used in subsystems where the transitions for a
particular driver are always synchronous and isr-ok, e.g. setting a
SoC-controlled GPIO.  In this situation the full on-off manager
infrastructure is wasteful.  All we need is a record of the service
state: off, active count, or error.

Add a data structure and an API that can be used to replace the onoff
manager functionality in a situation where all transitions are isr-ok
and synchronous while retaining compatible behavior from the client
perspective.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2020-08-14 17:53:39 +02:00
..
c_lib
cmsis_dsp tests: cmsis_dsp: use integration keyword 2020-07-30 08:00:03 -04:00
devicetree device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
fdtable tests: lib: fdtable: Add tests for checking refcounting 2020-08-10 14:56:08 -07:00
gui/lvgl gui: Add open flags argument to fs_open invocation 2020-07-30 16:33:18 +02:00
heap
heap_align lib/os/heap: remove big_heap restriction for aligned allocations 2020-07-14 19:35:52 -04:00
json tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
mem_alloc
notify tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
onoff sys: onoff: support clients using synchronous transitions 2020-08-14 17:53:39 +02:00
ringbuffer tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
sprintf tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00