drivers/ads101x: Makefile support

This commit is contained in:
Matthew Blue 2018-04-04 17:04:56 -04:00
parent 073d45aa4d
commit 96a7029f5f
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,13 @@ ifneq (,$(filter adc%1c,$(USEMODULE)))
USEMODULE += adcxx1c USEMODULE += adcxx1c
endif endif
ifneq (,$(filter ads101%,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_i2c
USEMODULE += ads101x
USEMODULE += xtimer
endif
ifneq (,$(filter adxl345,$(USEMODULE))) ifneq (,$(filter adxl345,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c FEATURES_REQUIRED += periph_i2c
endif endif

View File

@ -2,6 +2,10 @@ ifneq (,$(filter adcxx1c,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/adcxx1c/include USEMODULE_INCLUDES += $(RIOTBASE)/drivers/adcxx1c/include
endif endif
ifneq (,$(filter ads101x,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/ads101x/include
endif
ifneq (,$(filter adxl345,$(USEMODULE))) ifneq (,$(filter adxl345,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/adxl345/include USEMODULE_INCLUDES += $(RIOTBASE)/drivers/adxl345/include
endif endif