1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

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.
This commit is contained in:
David Picard 2024-02-20 15:00:55 +01:00
parent d2f8d4df22
commit 67f46778e4
3 changed files with 16 additions and 0 deletions

1
drivers/abp2/Makefile Normal file
View File

@ -0,0 +1 @@
include $(RIOTMAKE)/driver_with_saul.mk

10
drivers/abp2/Makefile.dep Normal file
View File

@ -0,0 +1,10 @@
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

View File

@ -0,0 +1,5 @@
PSEUDOMODULES += abp2_spi
PSEUDOMODULES += abp2_i2c
USEMODULE_INCLUDES_abp2 := $(LAST_MAKEFILEDIR)/include
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_abp2)