1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 10:33:49 +01:00
RIOT/drivers/periph_common
Marian Buschsieweke 6fb369d4fc
drivers/periph/gpio_ll: Add API to switch direction
This adds two functions:

    void gpio_ll_switch_dir_output(gpio_port_t port, uword_t outputs);
    void gpio_ll_switch_dir_input(gpio_port_t port, uword_t inputs);

The first configures GPIO pins specified by a bitmask as output, the
second configures the specified pins as input.

The main use case is to allow bit-banging bidirectional protocols using
more basic GPIO peripherals that do not implement open drain mode, such
as found e.g. on MSP430, ATmega, or SAM0.

It is not intended to implement this feature on modern MCUs with
sophisticated GPIO peripherals.
2024-02-05 10:56:16 +01:00
..
2022-04-11 12:01:57 +02:00
2022-04-22 08:39:04 +02:00
2023-08-23 16:55:09 +00:00
2023-12-19 11:13:43 +01:00
2023-12-19 11:13:43 +01:00
2021-12-10 18:54:07 +01:00
2022-02-21 10:49:43 +01:00
2020-10-23 01:26:09 +02:00