1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/cc2538/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 cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
flashpage.c cc2538: Adapt to flashpage/flashpage_pagewise API 2020-11-11 23:16:38 +01:00
gpio.c drivers/periph_gpio: let gpio_read() return bool 2024-10-23 13:24:09 +02:00
hwrng.c cpu/cc2538: don't pollute global namespace with cc2538_rfcore.h 2021-09-16 15:31:22 +02:00
i2c.c cpu/periph/i2c: update implementations to new I2C API 2021-11-29 06:35:25 +01:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pm.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
rtt.c cpu/cc2538/rtt: fix rtt_set_counter 2022-01-18 16:39:04 +01:00
spi.c cpu/cc2538/periph/spi: move assert to spi_acquire 2021-09-06 10:52:35 +02:00
timer.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
uart.c cpu/cc2538: add periph_uart_nonblocking 2020-12-11 09:36:16 +01:00
wdt.c cpu/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00