1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/include/periph
Marian Buschsieweke c2c2cc8592
drivers/periph_gpio: let gpio_read() return bool
Since https://github.com/RIOT-OS/RIOT/pull/20935 gpio_write()
uses a `bool` instead of an `int`. This does the same treatment for
`gpio_read()`.

This does indeed add an instruction to `gpio_read()` implementations.
However, users caring about an instruction more are better served with
`gpio_ll_read()` anyway. And `gpio_read() == 1` is often seen in
newcomer's code, which would now work as expected.
2024-10-23 13:24:09 +02:00
..
pio
adc.h periph/adc: introduce periph_adc_continous 2023-11-10 12:10:49 +01:00
can.h
cpuid.h doc: Clarify that our CPU ID is not ARM's CPUID 2024-09-27 10:42:17 +02:00
dac.h
doc.txt drivers/periph: Add documentation on thread safety and initialization 2023-09-05 09:40:12 +02:00
eeprom.h
flashpage.h Revert "periph/flashpage: extend API" 2024-04-04 17:57:40 +02:00
freqm.h drivers/include: add header definition for freqm 2023-11-23 20:37:52 +01:00
gpio_ll_irq.h drivers/periph_gpio_ll_irq: make support for both edges optional 2024-08-02 13:41:36 +02:00
gpio_ll.h drivers/periph/gpio_ll: change gpio_ll_switch_dir API 2024-08-08 16:22:36 +02:00
gpio_util.h
gpio.h drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
hwrng.h
i2c.h
init.h drivers/periph: Add documentation on thread safety and initialization 2023-09-05 09:40:12 +02:00
pio.h
pm.h
ptp.h
pwm.h
qdec.h
rtc_mem.h
rtc.h
rtt.h
spi.h drivers/periph_spi: Add spi_transfer_u16_be() 2024-02-02 13:05:02 +01:00
timer.h tree wide: add IWYU pragma: export where needed 2024-04-14 14:26:05 +02:00
uart.h drivers/periph: introduce CONFIG_UART_DMA_THRESHOLD_BYTES 2024-01-04 17:33:51 +01:00
usbdev.h drivers/periph/usbdev: remove deprecated event flag 2024-03-19 16:41:27 +01:00
vbat.h
wdt.h