1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam3/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
..
adc.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
cpuid.c many typo fixes 2019-11-23 22:39:07 +01:00
dac.c cpu, sam3: fix periph/dac poweron 2017-11-13 12:03:05 +01:00
gpio.c drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
hwrng.c doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pwm.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
rtt.c cpu/sam3/periph_rtt: fix rtt_get_alarm() 2021-03-30 14:49:11 +02:00
spi.c cpu/periph_spi: update implementations to new API 2021-09-01 21:38:40 +02:00
timer.c cpu/sam3: assert valid freq in timer_init() 2023-09-15 12:58:31 +02:00
uart.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00