mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6fb369d4fc
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.
16 lines
747 B
Makefile
16 lines
747 B
Makefile
# Always use hardware features, if available
|
|
ifneq (,$(filter periph_gpio_ll%,$(USEMODULE)))
|
|
FEATURES_OPTIONAL += periph_gpio_ll_disconnect
|
|
FEATURES_OPTIONAL += periph_gpio_ll_input_pull_down
|
|
FEATURES_OPTIONAL += periph_gpio_ll_input_pull_keep
|
|
FEATURES_OPTIONAL += periph_gpio_ll_input_pull_up
|
|
FEATURES_OPTIONAL += periph_gpio_ll_irq_level_triggered_high
|
|
FEATURES_OPTIONAL += periph_gpio_ll_irq_level_triggered_low
|
|
FEATURES_OPTIONAL += periph_gpio_ll_irq_unmask
|
|
FEATURES_OPTIONAL += periph_gpio_ll_open_drain
|
|
FEATURES_OPTIONAL += periph_gpio_ll_open_drain_pull_up
|
|
FEATURES_OPTIONAL += periph_gpio_ll_open_source
|
|
FEATURES_OPTIONAL += periph_gpio_ll_open_source_pull_down
|
|
FEATURES_OPTIONAL += periph_gpio_ll_switch_dir
|
|
endif
|