1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +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
..
2019-04-03 11:12:46 +02:00
2019-11-23 22:39:07 +01:00
2023-05-23 08:49:37 +02:00
2020-10-22 11:29:27 +02:00
2021-02-10 09:55:52 +01:00
2023-06-26 17:24:07 +02:00
2021-12-02 07:54:38 +01:00
2022-02-20 13:43:19 +01:00