From abc11c8e2368654b26358b4babb391939673b8a3 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 20 Sep 2018 15:06:13 +0200 Subject: [PATCH] periph/gpio: fix scope of GPIO_IRQ submodule Move the gpio_irq_enable() and gpio_irq_disable() functions into the scope of the PERIPH_GPIO_IRQ submodule. --- drivers/include/periph/gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/include/periph/gpio.h b/drivers/include/periph/gpio.h index 253daa58c6..baf48af5ac 100644 --- a/drivers/include/periph/gpio.h +++ b/drivers/include/periph/gpio.h @@ -169,8 +169,6 @@ 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, gpio_cb_t cb, void *arg); -#endif /* MODULE_PERIPH_GPIO_IRQ */ - /** * @brief Enable pin interrupt if configured as interrupt source * @@ -185,6 +183,8 @@ void gpio_irq_enable(gpio_t pin); */ void gpio_irq_disable(gpio_t pin); +#endif /* MODULE_PERIPH_GPIO_IRQ */ + /** * @brief Get the current value of the given pin *