1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native/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
..
can.c cpu/native: remove unused can_linux module 2020-11-13 09:11:50 +01:00
cpuid.c doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
eeprom.c cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00
flashpage.c Revert "cpu/native: extend flashpage API" 2024-04-04 17:37:15 +02:00
gpio_linux.c drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
gpio_mock.c drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
hwrng.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pm.c cpu/native: return error code on failed assertion 2024-02-22 16:06:32 +01:00
pwm.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
qdec.c cpu/native/periph/qdec: remove useless loop 2024-03-15 20:27:11 +01:00
rtc.c drivers/periph/rtc: improve doc on rtc_set_alarm 2023-05-30 17:41:36 +02:00
spidev_linux.c native: Linux/x86_64 support 2024-01-30 16:33:19 +01:00
timer.c doc: note that timer_settime() comes from librt on some systems 2024-08-18 16:02:15 -04:00
uart.c cpu/native: fix native_async_read_remove_handler() + enable all baudrates 2024-02-10 15:46:00 +01:00