Confusion with generated devicetree_unfixed.h file #devicetree


Dominic
 

Hello All,

I am running into an issue when trying to reference a #define from the generated devicetree_unfixed.h file.

#define DT_N_S_gpio_keys_S_gpio_18_EXISTS 1
#define DT_N_ALIAS_mux_en         DT_N_S_gpio_keys_S_gpio_18
#define DT_N_NODELABEL_mux_enable DT_N_S_gpio_keys_S_gpio_18

When I reference DT_N_ALIAS_mux_en in my application code, I am getting an error that DT_N_S_gpio_keys_S_gpio_18 is not defined. I have used grep to try to find instances of that string and only seen it shown in devicetree_unfixed.h and device_extern.h. Can someone point me in the right direction of what I may be missing or not understanding correctly when referencing devicetree_unfixed.h in application code?

Regards,
Dominic

Join users@lists.zephyrproject.org to automatically receive all group messages.