commit | 4df1d15618911586179597dc4b90382ef22d98cf | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Mon Sep 06 15:45:34 2021 +0200 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Tue Sep 28 20:00:00 2021 -0400 |
tree | e4aec0a5d0fd1283423c509338be5ab5d97b0dd5 | |
parent | 5ddbdcedd0046d4f3d541667579c029afd8d01a9 [diff] |
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: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>