mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
a6b459eff3
It turns out that the feature to switch the GPIO direction quickly is not only a way to emulate open drain / open source mode for less sophisticated GPIO peripherals that do not natively support it. It also enables tri-state output (push-pull high, push-pull low, high impedance), which is useful e.g. for driven charlieplexed LEDs quickly. This changes the API by introducing a `gpio_ll_prepare_switch_dir()` function that prepares the value used to identify which pins should be switched to input or to output mode. This is useful for GPIO peripherals in which the GPIO mode register does not allocate one bit per pin (so that only the direction is given there), such as the one for STM32. This allows an STM32 implementation in which preparing the bitmask needed to modify the direction of pins is not trivial. |
||
---|---|---|
.. | ||
pio | ||
adc.h | ||
can.h | ||
cpuid.h | ||
dac.h | ||
doc.txt | ||
eeprom.h | ||
flashpage.h | ||
freqm.h | ||
gpio_ll_irq.h | ||
gpio_ll.h | ||
gpio_util.h | ||
gpio.h | ||
hwrng.h | ||
i2c.h | ||
init.h | ||
pio.h | ||
pm.h | ||
ptp.h | ||
pwm.h | ||
qdec.h | ||
rtc_mem.h | ||
rtc.h | ||
rtt.h | ||
spi.h | ||
timer.h | ||
uart.h | ||
usbdev.h | ||
vbat.h | ||
wdt.h |