zephyr/include/devicetree
Martí Bolívar 884d6e6941 devicetree: gpio: make flags default to 0
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>
2020-08-04 07:35:26 -05:00
..
adc.h doc: update devicetree/adc.h 2020-05-26 22:32:34 +02:00
clocks.h
dma.h
fixed-partitions.h doc: update devicetree/fixed-partitions.h 2020-05-26 22:32:34 +02:00
gpio.h devicetree: gpio: make flags default to 0 2020-08-04 07:35:26 -05:00
pwms.h devicetree.h: pwms: Add DT_ macros for retrieving pwm period 2020-05-29 14:48:12 +02:00
spi.h devicetree: gpio: make flags default to 0 2020-08-04 07:35:26 -05:00
zephyr.h