2015-10-21 15:11:05 +02:00
|
|
|
# driver dependencies (in alphabetical order)
|
|
|
|
|
2017-03-20 22:52:21 +01:00
|
|
|
ifneq (,$(filter adxl345,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
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
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2015-10-21 15:11:05 +02:00
|
|
|
USEMODULE += netif
|
2016-04-06 15:39:34 +02:00
|
|
|
USEMODULE += ieee802154
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_ieee802154
|
2016-04-06 15:39:34 +02:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
2017-02-15 13:07:34 +01:00
|
|
|
# as all drivers are ported to netdev
|
|
|
|
USEMODULE += gnrc_netdev
|
2016-04-06 15:39:34 +02:00
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-12-31 12:24:28 +01:00
|
|
|
ifneq (,$(filter mrf24j40,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2016-12-31 12:24:28 +01:00
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_ieee802154
|
2016-12-31 12:24:28 +01:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
2017-02-15 13:07:34 +01:00
|
|
|
# as all drivers are ported to netdev
|
|
|
|
USEMODULE += gnrc_netdev
|
2016-12-31 12:24:28 +01:00
|
|
|
endif
|
|
|
|
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
|
|
|
|
|
2017-02-27 16:11:38 +01:00
|
|
|
ifneq (,$(filter bm%280,$(USEMODULE)))
|
2016-10-14 08:32:41 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += xtimer
|
2017-02-27 16:11:38 +01:00
|
|
|
USEMODULE += bmx280
|
2016-10-14 08:32:41 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter cc110x,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2017-01-23 14:01:32 +01:00
|
|
|
USEMODULE += xtimer
|
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
|
2017-02-15 13:07:34 +01:00
|
|
|
# as all drivers are ported to netdev
|
|
|
|
USEMODULE += gnrc_netdev
|
2016-04-06 15:39:34 +02:00
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-04-14 13:48:00 +02:00
|
|
|
ifneq (,$(filter cc2420,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2016-04-14 13:48:00 +02:00
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_ieee802154
|
2016-04-14 13:48:00 +02:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
2017-02-15 13:07:34 +01:00
|
|
|
# as all drivers are ported to netdev
|
|
|
|
USEMODULE += gnrc_netdev
|
2016-04-14 13:48:00 +02:00
|
|
|
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
|
|
|
|
|
2017-05-23 14:01:43 +02:00
|
|
|
ifneq (,$(filter dsp0401,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_pwm
|
|
|
|
endif
|
|
|
|
|
2015-11-01 16:41:27 +01:00
|
|
|
ifneq (,$(filter enc28j60,$(USEMODULE)))
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_eth
|
2015-11-01 16:41:27 +01:00
|
|
|
USEMODULE += xtimer
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter encx24j600,$(USEMODULE)))
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_eth
|
2015-10-21 15:11:05 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-04-06 15:39:34 +02:00
|
|
|
ifneq (,$(filter ethos,$(USEMODULE)))
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_eth
|
2016-04-06 15:39:34 +02:00
|
|
|
USEMODULE += random
|
2016-04-04 15:13:12 +02:00
|
|
|
USEMODULE += tsrb
|
2016-04-06 15:39:34 +02:00
|
|
|
endif
|
|
|
|
|
2016-01-15 17:44:02 +01:00
|
|
|
ifneq (,$(filter hdc1000,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
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
|
|
|
|
|
2017-01-13 20:25:25 +01:00
|
|
|
ifneq (,$(filter jc42,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter kw2xrf,$(USEMODULE)))
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2017-01-31 13:26:01 +01:00
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_ieee802154
|
2017-01-31 13:26:01 +01:00
|
|
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
|
|
|
# XXX: this can be modelled as a dependency for gnrc_netdev_default as soon
|
2017-02-15 13:07:34 +01:00
|
|
|
# as all drivers are ported to netdev
|
|
|
|
USEMODULE += gnrc_netdev
|
2017-01-31 13:26:01 +01:00
|
|
|
endif
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-25 11:01:33 +01:00
|
|
|
ifneq (,$(filter hd44780,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2017-01-25 14:53:10 +01:00
|
|
|
ifneq (,$(filter lis3dh,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
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 mpu9150,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-11-11 11:11:41 +01:00
|
|
|
ifneq (,$(filter nrfmin,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += radio_nrfmin
|
|
|
|
FEATURES_REQUIRED += periph_cpuid
|
|
|
|
USEMODULE += netif
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter nvram_spi,$(USEMODULE)))
|
2016-07-12 07:58:42 +02:00
|
|
|
USEMODULE += nvram
|
2015-10-21 15:11:05 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter pcd8544,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
|
|
|
USEMODULE += color
|
|
|
|
endif
|
|
|
|
|
2016-10-31 14:37:28 +01:00
|
|
|
ifneq (,$(filter sdcard_spi,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
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
|
|
|
|
|
2017-02-27 21:56:23 +01:00
|
|
|
ifneq (,$(filter veml6070,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2016-08-05 14:44:09 +02:00
|
|
|
ifneq (,$(filter w5100,$(USEMODULE)))
|
2017-02-15 13:07:34 +01:00
|
|
|
USEMODULE += netdev_eth
|
2017-02-24 08:57:11 +01:00
|
|
|
USEMODULE += luid
|
2016-08-05 14:44:09 +02:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter xbee,$(USEMODULE)))
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += netif
|
|
|
|
endif
|
2017-03-27 15:50:43 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter uart_half_duplex,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
2017-03-27 15:51:11 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter feetech,$(USEMODULE)))
|
|
|
|
USEMODULE += uart_half_duplex
|
|
|
|
endif
|
2016-07-15 10:40:56 +02:00
|
|
|
|
2017-03-31 11:35:27 +02:00
|
|
|
ifneq (,$(filter dynamixel,$(USEMODULE)))
|
|
|
|
USEMODULE += uart_half_duplex
|
|
|
|
endif
|
|
|
|
|
2016-07-15 10:40:56 +02:00
|
|
|
ifneq (,$(filter mtd_spi_nor,$(USEMODULE)))
|
|
|
|
USEMODULE += mtd
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
endif
|
2017-03-16 16:44:04 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter lsm6dsl,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
2017-01-17 18:02:44 +01:00
|
|
|
|
2017-06-20 10:11:27 +02:00
|
|
|
ifneq (,$(filter adc%1c,$(USEMODULE)))
|
2017-01-17 18:02:44 +01:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-06-20 10:11:27 +02:00
|
|
|
USEMODULE += adcxx1c
|
2017-01-17 18:02:44 +01:00
|
|
|
endif
|