Skip to content
Commit 4df1d156 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Christopher Friedt
Browse files

device: add DEVICE_DT_GET_OR_NULL utility macro



Add a new utility macro to obtain an optional reference to a device. If
the provided node_id is not enabled, the macro falls back to NULL.

Signed-off-by: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent 5ddbdced
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment