mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/periph_gpio_ll: always use hardware features
GPIO LL headers might be included even when not using GPIO LL. Some functions may be provided by the common header or the platform specific one, depending on the features used. Hence, the header can only be safely included if the correct set of GPIO LL hardware features is used.
This commit is contained in:
parent
422042bd00
commit
5db461c28b
@ -1,16 +1,14 @@
|
||||
# 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_edge_triggered_both
|
||||
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
|
||||
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_edge_triggered_both
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user