Skip to content
Commit 219a3ca9 authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

device: provide internal access to static device array



Device objects in Zephyr are currently placed into an array by linker
scripts, making it easy to iterate over all devices if the array
address and size can be obtained.  This has applications in device
power management, but the existing API for this was available only
when that feature was enabled.  It also uses a signed type to hold the
device count.

Provide a new API that is generally available, but marked as internal
since normally applications should not iterate over all devices.  Mark
the PM API approach deprecated.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent af67b297
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment