mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-11 20:37:20 +00:00
If we had something like: gpios = <&gpiod 13 GPIO_INT_ACTIVE_LOW &gpiod 14 GPIO_INT_ACTIVE_LOW>; The script blows up in extract_cells. While extract_cells attempted to handle more than a single item in such a list, it didn't manipulate the prop list for the recursive calls properly. Since we pop off items from the prop list as we use them we can easily pass the prop list to the rescurive call to fix things. Besides, if alias is defined for the node, indexed aliases defines are generated: #define GPIO_LEDS_0_GPIO_FLAGS_0 4 #define GPIO_LEDS_0_GPIO_FLAGS_1 0 #define GPIO_LEDS_0_GPIO_PIN_0 5 #define GPIO_LEDS_0_GPIO_PIN_1 6 #define LED1_GPIO_FLAGS_0 GPIO_LEDS_0_GPIO_FLAGS_0 #define LED1_GPIO_FLAGS_1 GPIO_LEDS_0_GPIO_FLAGS_1 #define LED1_GPIO_PIN_0 GPIO_LEDS_0_GPIO_PIN_0 #define LED1_GPIO_PIN_1 GPIO_LEDS_0_GPIO_PIN_1 Signed-off-by: Kumar Gala <kumar.gala@linaro.org> |
||
---|---|---|
.. | ||
extract | ||
devicetree.py | ||
extract_dts_includes.py |