2015-10-21 15:11:05 +02:00
|
|
|
# driver dependencies (in alphabetical order)
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter adc%1c,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += adcxx1c
|
|
|
|
endif
|
|
|
|
|
2017-03-20 22:52:21 +01:00
|
|
|
ifneq (,$(filter adxl345,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-03-20 22:52:21 +01:00
|
|
|
endif
|
|
|
|
|
2017-03-16 13:28:17 +01:00
|
|
|
ifneq (,$(filter apa102,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
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
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
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)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += xtimer
|
2016-07-20 10:47:05 +02:00
|
|
|
endif
|
|
|
|
|
2017-02-27 16:11:38 +01:00
|
|
|
ifneq (,$(filter bm%280,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += xtimer
|
|
|
|
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
|
|
|
|
endif
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_spi
|
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
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter dht,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
2015-11-01 16:41:27 +01:00
|
|
|
endif
|
|
|
|
|
2017-07-04 13:28:02 +02:00
|
|
|
ifneq (,$(filter ds1307,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2017-05-23 14:01:43 +02:00
|
|
|
ifneq (,$(filter dsp0401,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_pwm
|
2017-05-23 14:01:43 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter dynamixel,$(USEMODULE)))
|
|
|
|
USEMODULE += uart_half_duplex
|
|
|
|
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-09-06 13:59:07 +02:00
|
|
|
USEMODULE += netdev_eth
|
|
|
|
USEMODULE += random
|
|
|
|
USEMODULE += tsrb
|
2016-04-06 15:39:34 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter feetech,$(USEMODULE)))
|
|
|
|
USEMODULE += uart_half_duplex
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter grove_ledbar,$(USEMODULE)))
|
|
|
|
USEMODULE += my9221
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter hd44780,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2016-01-15 17:44:02 +01:00
|
|
|
ifneq (,$(filter hdc1000,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2016-01-15 17:44:02 +01:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter hih6130,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
2017-11-16 20:15:38 +01:00
|
|
|
ifneq (,$(filter hts221,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
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)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-01-13 20:25:25 +01:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter kw2xrf,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += luid
|
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += netdev_ieee802154
|
2017-12-20 13:54:32 +01:00
|
|
|
USEMODULE += core_thread_flags
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_spi
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2017-10-28 21:09:36 +02:00
|
|
|
ifneq (,$(filter l3g4200d,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2017-01-25 14:53:10 +01:00
|
|
|
ifneq (,$(filter lis3dh,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
2017-01-25 14:53:10 +01:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter lm75a,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2016-08-04 22:05:17 +02:00
|
|
|
ifneq (,$(filter lpd8808,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += color
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
2016-08-04 22:05:17 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter lsm6dsl,$(USEMODULE)))
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-12-05 12:50:52 +01:00
|
|
|
USEMODULE += xtimer
|
2017-10-28 21:09:36 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter mag3110,$(USEMODULE)))
|
2017-10-28 21:09:36 +02:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter mma8x5x,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-10-28 21:09:36 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter mpl3115a2,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter mpu9150,$(USEMODULE)))
|
2017-11-07 22:55:56 +01:00
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter mrf24j40,$(USEMODULE)))
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += luid
|
|
|
|
USEMODULE += netif
|
|
|
|
USEMODULE += ieee802154
|
|
|
|
USEMODULE += netdev_ieee802154
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
endif
|
|
|
|
|
2017-08-09 11:30:41 +02:00
|
|
|
ifneq (,$(filter mtd_sdcard,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += mtd
|
|
|
|
USEMODULE += sdcard_spi
|
2017-06-12 22:28:55 +02:00
|
|
|
endif
|
2017-06-12 22:31:04 +02:00
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter mtd_spi_nor,$(USEMODULE)))
|
|
|
|
USEMODULE += mtd
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
2017-06-12 22:31:04 +02:00
|
|
|
endif
|
2017-06-12 22:28:55 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter my9221,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
USEMODULE += xtimer
|
2017-08-09 11:30:41 +02:00
|
|
|
endif
|
|
|
|
|
2016-11-11 11:11:41 +01:00
|
|
|
ifneq (,$(filter nrfmin,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
FEATURES_REQUIRED += radio_nrfmin
|
|
|
|
FEATURES_REQUIRED += periph_cpuid
|
|
|
|
USEMODULE += netif
|
2016-11-11 11:11:41 +01:00
|
|
|
endif
|
|
|
|
|
2015-10-21 15:11:05 +02:00
|
|
|
ifneq (,$(filter nvram_spi,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += nvram
|
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter pcd8544,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
|
|
|
USEMODULE += color
|
|
|
|
endif
|
|
|
|
|
2017-09-11 14:55:42 +02:00
|
|
|
ifneq (,$(filter rn2%3,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += rn2xx3
|
|
|
|
USEMODULE += fmt
|
|
|
|
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)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
2015-10-21 15:11:05 +02:00
|
|
|
endif
|
|
|
|
|
2017-07-03 00:00:47 +02:00
|
|
|
ifneq (,$(filter si70%,$(USEMODULE)))
|
2017-09-06 13:59:07 +02:00
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-07-03 00:00:47 +02:00
|
|
|
USEMODULE += si70xx
|
2016-07-18 23:05:17 +02:00
|
|
|
endif
|
|
|
|
|
2017-12-05 12:50:52 +01:00
|
|
|
ifneq (,$(filter slipdev,$(USEMODULE)))
|
2017-12-13 21:37:45 +01:00
|
|
|
USEMODULE += tsrb
|
2017-12-05 12:50:52 +01:00
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter soft_spi,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
USEMODULE += xtimer
|
|
|
|
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-06-30 19:00:27 +02:00
|
|
|
ifneq (,$(filter sx127%,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += sx127x
|
2017-11-17 10:51:00 +01:00
|
|
|
USEMODULE += netif
|
2017-12-09 22:13:08 +01:00
|
|
|
USEMODULE += lora
|
2017-06-30 19:00:27 +02:00
|
|
|
endif
|
2017-10-28 21:09:36 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter tcs37727,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter tmp006,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
2017-12-05 12:50:52 +01:00
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter uart_half_duplex,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
USEMODULE += xtimer
|
2017-10-28 21:09:36 +02:00
|
|
|
endif
|
2017-06-30 19:00:27 +02:00
|
|
|
|
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-11-28 23:09:05 +01:00
|
|
|
FEATURES_REQUIRED += periph_spi
|
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-11-07 15:02:14 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter lis3mdl,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_i2c
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
2016-12-15 11:57:24 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter tja1042,$(USEMODULE)))
|
|
|
|
USEMODULE += can_trx
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
endif
|