1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #9844 from gebart/pr/features-fixup

drivers: Add missing dependencies
This commit is contained in:
Alexandre Abadie 2018-08-27 12:50:03 +02:00 committed by GitHub
commit bee9a210bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 54 additions and 71 deletions

View File

@ -13,6 +13,10 @@ ifneq (,$(filter ads101%,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter adt7310,$(USEMODULE)))
FEATURES_REQUIRED += periph_spi
endif
ifneq (,$(filter adxl345,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
@ -163,12 +167,17 @@ endif
ifneq (,$(filter hih6130,$(USEMODULE)))
USEMODULE += xtimer
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter hts221,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter ina220,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter io1_xplained,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_adc
@ -176,6 +185,14 @@ ifneq (,$(filter io1_xplained,$(USEMODULE)))
USEMODULE += sdcard_spi
endif
ifneq (,$(filter isl29020,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter isl29125,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter jc42,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
@ -187,12 +204,18 @@ ifneq (,$(filter kw2xrf,$(USEMODULE)))
USEMODULE += netdev_ieee802154
USEMODULE += core_thread_flags
FEATURES_REQUIRED += periph_spi
FEATURES_REQUIRED += periph_gpio
endif
ifneq (,$(filter l3g4200d,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter lc709203f,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
FEATURES_REQUIRED += periph_gpio
endif
ifneq (,$(filter lis2dh12%,$(USEMODULE)))
ifneq (,$(filter lis2dh12_spi,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
@ -208,15 +231,19 @@ ifneq (,$(filter lis3dh,$(USEMODULE)))
FEATURES_REQUIRED += periph_spi
endif
ifneq (,$(filter lm75a,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter lpd8808,$(USEMODULE)))
USEMODULE += color
FEATURES_REQUIRED += periph_gpio
endif
ifneq (,$(filter lps331ap,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter lsm303dlhc,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif
ifneq (,$(filter lsm6dsl,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
USEMODULE += xtimer
@ -243,6 +270,10 @@ ifneq (,$(filter mpu9150,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter mq3,$(USEMODULE)))
FEATURES_REQUIRED += periph_adc
endif
ifneq (,$(filter mrf24j40,$(USEMODULE)))
USEMODULE += xtimer
USEMODULE += luid
@ -274,12 +305,21 @@ ifneq (,$(filter nrfmin,$(USEMODULE)))
USEMODULE += netif
endif
ifneq (,$(filter nrf24l01p,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_spi
USEMODULE += xtimer
endif
ifneq (,$(filter nvram_spi,$(USEMODULE)))
FEATURES_REQUIRED += periph_spi
USEMODULE += nvram
USEMODULE += xtimer
endif
ifneq (,$(filter pcd8544,$(USEMODULE)))
FEATURES_REQUIRED += periph_gpio
FEATURES_REQUIRED += periph_spi
USEMODULE += xtimer
endif
@ -343,7 +383,13 @@ ifneq (,$(filter srf02,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter srf02,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
USEMODULE += xtimer
endif
ifneq (,$(filter srf08,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
USEMODULE += xtimer
endif
@ -383,6 +429,8 @@ ifneq (,$(filter w5100,$(USEMODULE)))
endif
ifneq (,$(filter xbee,$(USEMODULE)))
FEATURES_REQUIRED += periph_uart
FEATURES_REQUIRED += periph_gpio
USEMODULE += ieee802154
USEMODULE += xtimer
USEMODULE += netif

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += adc081c
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += ads101x
include $(RIOTBASE)/Makefile.include

View File

@ -4,8 +4,6 @@ BOARD_INSUFFICIENT_MEMORY := arduino-mega2560 \
mega-xplained \
waspmote-pro
FEATURES_REQUIRED = periph_spi periph_gpio
USEMODULE += adt7310
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += at30tse75x
USEMODULE += shell
USEMODULE += shell_commands

View File

@ -3,8 +3,6 @@ include ../Makefile.tests_common
# exclude boards with insufficient memory
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6
FEATURES_REQUIRED = periph_spi periph_gpio
DISABLE_MODULE += auto_init
USEMODULE += od

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += hdc1000
USEMODULE += xtimer
USEMODULE += fmt

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += hih6130
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += hts221
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += ina220
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += isl29020
USEMODULE += xtimer

View File

@ -3,8 +3,6 @@ BOARD ?= samr21-xpro
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += isl29125
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_spi periph_gpio
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 \
nucleo-f334r8 nucleo-l053r8 stm32f0discovery

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c periph_gpio
USEMODULE += l3g4200d
USEMODULE += xtimer

View File

@ -1,13 +1,7 @@
APPLICATION = driver_lc709203f
include ../Makefile.tests_common
FEATURES_REQUIRED += periph_i2c
FEATURES_REQUIRED += periph_gpio
USEMODULE += lc709203f
USEMODULE += xtimer
CFLAGS += -DDEVELHELP
include $(RIOTBASE)/Makefile.include

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += lps331ap
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += lsm303dlhc
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += lsm6dsl
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += mag3110
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += mma8x5x
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += mpl3115a2
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_adc
USEMODULE += mq3
USEMODULE += xtimer

View File

@ -3,8 +3,6 @@ include ../Makefile.tests_common
# exclude boards with insufficient memory
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6
FEATURES_REQUIRED = periph_spi
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_spi periph_gpio
USEMODULE += nvram_spi
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_gpio periph_spi
USEMODULE += shell
USEMODULE += pcd8544

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += xtimer
USEMODULE += srf02
USEMODULE += shell

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += xtimer
USEMODULE += srf08

View File

@ -15,7 +15,4 @@ DRIVER ?= sx1276
# use SX1276 by default
USEMODULE += $(DRIVER)
FEATURES_REQUIRED ?= periph_spi
FEATURES_REQUIRED ?= periph_gpio
include $(RIOTBASE)/Makefile.include

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += tcs37727
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += tmp006
USEMODULE += xtimer

View File

@ -1,7 +1,5 @@
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_uart periph_gpio
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 nucleo-f030r8 nucleo-f334r8 \
stm32f0discovery

View File

@ -26,8 +26,8 @@ ifneq (,$(filter iotlab-m3 fox iotlab-a8-m3,$(BOARD)))
endif
ifneq (,$(filter at86rf2%,$(DRIVER)))
FEATURES_REQUIRED = periph_spi
FEATURES_REQUIRED = periph_gpio
FEATURES_REQUIRED += periph_spi
FEATURES_REQUIRED += periph_gpio
endif
USEMODULE += $(DRIVER)