2015-10-21 15:11:05 +02:00
|
|
|
# driver dependencies (in alphabetical order)
|
|
|
|
|
|
|
|
ifneq (,$(filter at30tse75x,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2016-09-02 09:13:51 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter at86rf2%,$(USEMODULE)))
|
|
|
|
USEMODULE += at86rf2xx
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += netif
|
2016-04-06 15:39:34 +02:00
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += netdev2_ieee802154
|
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
|
|
# as all drivers are ported to netdev2
|
|
|
|
USEMODULE += gnrc_netdev2
|
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-01-13 15:11:26 +01:00
|
|
|
ifneq (,$(filter bh1750fvi,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2016-04-13 16:47:00 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2016-01-13 15:11:26 +01:00
|
|
|
endif
|
|
|
|
|
2016-07-20 10:47:05 +02:00
|
|
|
ifneq (,$(filter bmp180,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2016-07-25 15:32:09 +02:00
|
|
|
USEMODULE += xtimer
|
2016-07-20 10:47:05 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter cc110x,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
2016-04-06 15:39:34 +02:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
USEMODULE += gnrc_cc110x
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
|
|
# as all drivers are ported to netdev2
|
|
|
|
USEMODULE += gnrc_netdev2
|
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-04-14 13:48:00 +02:00
|
|
|
ifneq (,$(filter cc2420,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += netdev2_ieee802154
|
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
|
|
|
# as all drivers are ported to netdev2
|
|
|
|
USEMODULE += gnrc_netdev2
|
|
|
|
endif
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter dht,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2016-04-13 16:47:00 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
2015-11-01 16:41:27 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter enc28j60,$(USEMODULE)))
|
|
|
|
USEMODULE += netdev2_eth
|
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter encx24j600,$(USEMODULE)))
|
2015-11-30 14:02:34 +01:00
|
|
|
USEMODULE += netdev2_eth
|
2015-10-21 15:11:05 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-04-06 15:39:34 +02:00
|
|
|
ifneq (,$(filter ethos,$(USEMODULE)))
|
|
|
|
USEMODULE += netdev2_eth
|
|
|
|
USEMODULE += random
|
2016-04-04 15:13:12 +02:00
|
|
|
USEMODULE += tsrb
|
2016-04-06 15:39:34 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter hih6130,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-09-02 09:13:51 +02:00
|
|
|
ifneq (,$(filter io1_xplained,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
USEMODULE += at30tse75x
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter kw2xrf,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += netif
|
2016-04-06 15:39:34 +02:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
USEMODULE += gnrc_nomac
|
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter lm75a,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-08-04 22:05:17 +02:00
|
|
|
ifneq (,$(filter lpd8808,$(USEMODULE)))
|
|
|
|
USEMODULE += color
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter ltc4150,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter mpu9150,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter nvram_spi,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter pcd8544,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
|
|
|
USEMODULE += color
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter sht11,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-07-18 23:05:17 +02:00
|
|
|
ifneq (,$(filter si70xx,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter srf02,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2015-10-22 11:06:38 +02:00
|
|
|
ifneq (,$(filter srf08,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-08-05 14:44:09 +02:00
|
|
|
ifneq (,$(filter w5100,$(USEMODULE)))
|
|
|
|
USEMODULE += netdev2_eth
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter xbee,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += netif
|
|
|
|
endif
|