Skip to content

Commit 664d769

Browse files
committed
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.
1 parent 1292b2d commit 664d769

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

drivers/abp2/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include $(RIOTMAKE)/driver_with_saul.mk

drivers/abp2/Makefile.dep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ifneq (,$(filter abp2_spi,$(USEMODULE)))
2+
FEATURES_REQUIRED += periph_spi
3+
endif
4+
5+
ifneq (,$(filter abp2_i2c,$(USEMODULE)))
6+
FEATURES_REQUIRED += periph_i2c
7+
endif
8+
9+
USEMODULE += ztimer
10+
USEMODULE += ztimer_msec

drivers/abp2/Makefile.include

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PSEUDOMODULES += abp2_spi
2+
PSEUDOMODULES += abp2_i2c
3+
4+
USEMODULE_INCLUDES_abp2 := $(LAST_MAKEFILEDIR)/include
5+
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_abp2)

0 commit comments

Comments
 (0)