drivers: Add dep on periph_gpio_irq in drivers using GPIO IRQ
This commit is contained in:
parent
8996cbe313
commit
ace717ee27
@ -1,13 +1,13 @@
|
|||||||
# driver dependencies (in alphabetical order)
|
# driver dependencies (in alphabetical order)
|
||||||
|
|
||||||
ifneq (,$(filter adc%1c,$(USEMODULE)))
|
ifneq (,$(filter adc%1c,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
USEMODULE += adcxx1c
|
USEMODULE += adcxx1c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter ads101%,$(USEMODULE)))
|
ifneq (,$(filter ads101%,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
USEMODULE += ads101x
|
USEMODULE += ads101x
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -45,6 +45,7 @@ ifneq (,$(filter at86rf2%,$(USEMODULE)))
|
|||||||
USEMODULE += ieee802154
|
USEMODULE += ieee802154
|
||||||
USEMODULE += netdev_ieee802154
|
USEMODULE += netdev_ieee802154
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -52,6 +53,7 @@ ifneq (,$(filter ata8520e,$(USEMODULE)))
|
|||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
USEMODULE += fmt
|
USEMODULE += fmt
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -82,6 +84,8 @@ ifneq (,$(filter cc110x,$(USEMODULE)))
|
|||||||
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
||||||
USEMODULE += gnrc_cc110x
|
USEMODULE += gnrc_cc110x
|
||||||
endif
|
endif
|
||||||
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -92,6 +96,7 @@ ifneq (,$(filter cc2420,$(USEMODULE)))
|
|||||||
USEMODULE += ieee802154
|
USEMODULE += ieee802154
|
||||||
USEMODULE += netdev_ieee802154
|
USEMODULE += netdev_ieee802154
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -116,6 +121,7 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter enc28j60,$(USEMODULE)))
|
ifneq (,$(filter enc28j60,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
USEMODULE += netdev_eth
|
USEMODULE += netdev_eth
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -123,7 +129,7 @@ ifneq (,$(filter enc28j60,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter encx24j600,$(USEMODULE)))
|
ifneq (,$(filter encx24j600,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
USEMODULE += netdev_eth
|
USEMODULE += netdev_eth
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -160,11 +166,6 @@ ifneq (,$(filter hdc1000,$(USEMODULE)))
|
|||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter pulse_counter,$(USEMODULE)))
|
|
||||||
USEMODULE += xtimer
|
|
||||||
FEATURES_REQUIRED += periph_gpio
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(filter hih6130,$(USEMODULE)))
|
ifneq (,$(filter hih6130,$(USEMODULE)))
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
@ -190,6 +191,7 @@ ifneq (,$(filter isl29020,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter isl29125,$(USEMODULE)))
|
ifneq (,$(filter isl29125,$(USEMODULE)))
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -205,6 +207,7 @@ ifneq (,$(filter kw2xrf,$(USEMODULE)))
|
|||||||
USEMODULE += core_thread_flags
|
USEMODULE += core_thread_flags
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter l3g4200d,$(USEMODULE)))
|
ifneq (,$(filter l3g4200d,$(USEMODULE)))
|
||||||
@ -213,7 +216,7 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter lc709203f,$(USEMODULE)))
|
ifneq (,$(filter lc709203f,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_i2c
|
FEATURES_REQUIRED += periph_i2c
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter lis2dh12%,$(USEMODULE)))
|
ifneq (,$(filter lis2dh12%,$(USEMODULE)))
|
||||||
@ -281,6 +284,7 @@ ifneq (,$(filter mrf24j40,$(USEMODULE)))
|
|||||||
USEMODULE += ieee802154
|
USEMODULE += ieee802154
|
||||||
USEMODULE += netdev_ieee802154
|
USEMODULE += netdev_ieee802154
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -307,6 +311,7 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter nrf24l01p,$(USEMODULE)))
|
ifneq (,$(filter nrf24l01p,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
endif
|
endif
|
||||||
@ -325,9 +330,20 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter pir,$(USEMODULE)))
|
ifneq (,$(filter pir,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter pn532,$(USEMODULE)))
|
||||||
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter pulse_counter,$(USEMODULE)))
|
||||||
|
USEMODULE += xtimer
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter rgbled,$(USEMODULE)))
|
ifneq (,$(filter rgbled,$(USEMODULE)))
|
||||||
USEMODULE += color
|
USEMODULE += color
|
||||||
endif
|
endif
|
||||||
@ -395,6 +411,7 @@ endif
|
|||||||
|
|
||||||
ifneq (,$(filter sx127%,$(USEMODULE)))
|
ifneq (,$(filter sx127%,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_gpio
|
FEATURES_REQUIRED += periph_gpio
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
USEMODULE += iolist
|
USEMODULE += iolist
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -423,6 +440,7 @@ ifneq (,$(filter veml6070,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter w5100,$(USEMODULE)))
|
ifneq (,$(filter w5100,$(USEMODULE)))
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
FEATURES_REQUIRED += periph_spi
|
FEATURES_REQUIRED += periph_spi
|
||||||
USEMODULE += netdev_eth
|
USEMODULE += netdev_eth
|
||||||
USEMODULE += luid
|
USEMODULE += luid
|
||||||
|
|||||||
@ -148,6 +148,7 @@ typedef struct {
|
|||||||
*/
|
*/
|
||||||
int gpio_init(gpio_t pin, gpio_mode_t mode);
|
int gpio_init(gpio_t pin, gpio_mode_t mode);
|
||||||
|
|
||||||
|
#ifdef MODULE_PERIPH_GPIO_IRQ
|
||||||
/**
|
/**
|
||||||
* @brief Initialize a GPIO pin for external interrupt usage
|
* @brief Initialize a GPIO pin for external interrupt usage
|
||||||
*
|
*
|
||||||
@ -168,6 +169,8 @@ int gpio_init(gpio_t pin, gpio_mode_t mode);
|
|||||||
int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
|
int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
|
||||||
gpio_cb_t cb, void *arg);
|
gpio_cb_t cb, void *arg);
|
||||||
|
|
||||||
|
#endif /* MODULE_PERIPH_GPIO_IRQ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enable pin interrupt if configured as interrupt source
|
* @brief Enable pin interrupt if configured as interrupt source
|
||||||
*
|
*
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "periph/gpio.h"
|
|
||||||
#include "periph/spi.h"
|
#include "periph/spi.h"
|
||||||
#include "lis3dh.h"
|
#include "lis3dh.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
|
|
||||||
TEST_ON_CI_WHITELIST += all
|
TEST_ON_CI_WHITELIST += all
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
|
FEATURES_REQUIRED += periph_gpio_irq
|
||||||
USEMODULE += lis3dh
|
USEMODULE += lis3dh
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
FEATURES_REQUIRED = periph_gpio
|
FEATURES_REQUIRED = periph_gpio
|
||||||
|
FEATURES_REQUIRED = periph_gpio_irq
|
||||||
|
|
||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
USEMODULE += benchmark
|
USEMODULE += benchmark
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user