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:
parent
d2f8d4df22
commit
67f46778e4
1
drivers/abp2/Makefile
Normal file
1
drivers/abp2/Makefile
Normal file
@ -0,0 +1 @@
|
||||
include $(RIOTMAKE)/driver_with_saul.mk
|
||||
10
drivers/abp2/Makefile.dep
Normal file
10
drivers/abp2/Makefile.dep
Normal 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
|
||||
5
drivers/abp2/Makefile.include
Normal file
5
drivers/abp2/Makefile.include
Normal file
@ -0,0 +1,5 @@
|
||||
PSEUDOMODULES += abp2_spi
|
||||
PSEUDOMODULES += abp2_i2c
|
||||
|
||||
USEMODULE_INCLUDES_abp2 := $(LAST_MAKEFILEDIR)/include
|
||||
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_abp2)
|
||||
Loading…
x
Reference in New Issue
Block a user