1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00
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
..
2022-02-21 10:49:43 +01:00
2022-02-21 10:49:43 +01:00
2023-10-16 12:17:48 +02:00
2024-01-29 14:44:10 -05:00
2023-07-26 09:02:10 +02:00
2024-07-08 11:18:57 +02:00
2024-01-29 14:44:10 -05:00
2024-03-29 10:19:42 +01:00
2020-10-23 00:46:26 +02:00
2024-03-29 10:19:42 +01:00
2020-10-23 00:46:26 +02:00
2024-03-01 11:18:18 +01:00
2022-02-21 10:49:43 +01:00
2020-10-23 11:29:57 +02:00