1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/fe310/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
..
cpucycle.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
cpuid.c riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
gpio.c drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
i2c.c cpu/fe310: use coreclk instead of cpu_freq 2021-12-15 13:14:19 +01:00
Makefile cpu/fe310: add RISC-V cpu FE310 2018-05-29 15:21:45 -07:00
pm.c cpu/fe310: Uncrustify code 2021-01-15 12:02:55 +01:00
rtc.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
rtt.c riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
spi.c cpu/fe310: use coreclk instead of cpu_freq 2021-12-15 13:14:19 +01:00
uart.c cpu/fe310: use coreclk instead of cpu_freq 2021-12-15 13:14:19 +01:00
wdt.c cpu/fe310: Uncrustify code 2021-01-15 12:02:55 +01:00