mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Use pseudomodules to add a dependency on the relevant feature: periph_spi if the abp2_spi pseudomodule is selected, or periph_i2c if the abp2_i2c pseudomodule is selected.
11 lines
209 B
Makefile
11 lines
209 B
Makefile
ifneq (,$(filter abp2_spi,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_spi
|
|
endif
|
|
|
|
ifneq (,$(filter abp2_i2c,$(USEMODULE)))
|
|
FEATURES_REQUIRED += periph_i2c
|
|
endif
|
|
|
|
USEMODULE += ztimer
|
|
USEMODULE += ztimer_usec
|