Temp device tree node

Hi,

I want to use the temp node from the Device Tree of nrf52840. However, when I do something like this:

#define TEMP_NODE DT_NODELABEL(temp)
#define TEMP_DEVICE DEVICE_DT_GET(TEMP_NODE)



I have an error saying : undefined reference to `__device_dts_ord_xx' . However, if I enable CONFIG_SENSOR it works. Is possible to use the node without the need to enable the CONFIG_SENSOR ?

Thanks!

Parents Reply Children
No Data
Related