I'd like to define some constants in a devicetree overlay. For example: To give gpio pin 9 the name led-blue, I've added the following to the devicetree overlay:
/ {
gpio_pin_names {
led-blue = < 9 >;
};
};
This adds the following to zephyr.dts:
gpio_pin_names {
led-blue = < 0x9 >;
};
However, nothing shows up at devicetree_unfixed.h, making it a little difficult to read the value in code...
What's the proper way to add a constant to a devicetree overlay? And how do you read the value in code?