1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00
RIOT/drivers/abp2/Makefile.dep
David Picard 67f46778e4 drivers/abp2: implement the makefiles
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.
2025-05-04 10:28:59 +02:00

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