mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 17:35:58 +00:00
The vast majority of devicetree bindings for GPIO controllers are expected to have "flags" cells in their respective GPIO specifiers, but that's not required by the specification and we want to make sure to support that. However, so many drivers and applications initialize gpio_dt_flags_t values that it's silly to require each and every one of them to check for the flags value and fall back to the sensible default flags value of 0 when it does not exist. Make the API easier to use correctly by returning 0 in the devicetree core API for accessing flags, whenever there are no flags defined. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
adc.h | ||
clocks.h | ||
dma.h | ||
fixed-partitions.h | ||
gpio.h | ||
pwms.h | ||
spi.h | ||
zephyr.h |