diff --git a/drivers/include/periph/gpio.h b/drivers/include/periph/gpio.h index 253daa58c6..99ffa481e8 100644 --- a/drivers/include/periph/gpio.h +++ b/drivers/include/periph/gpio.h @@ -148,7 +148,7 @@ typedef struct { */ int gpio_init(gpio_t pin, gpio_mode_t mode); -#ifdef MODULE_PERIPH_GPIO_IRQ +#if defined(MODULE_PERIPH_GPIO_IRQ) || defined(DOXYGEN) /** * @brief Initialize a GPIO pin for external interrupt usage * @@ -157,6 +157,9 @@ int gpio_init(gpio_t pin, gpio_mode_t mode); * * The interrupt is activated automatically after the initialization. * + * @note You have to add the module `periph_gpio_irq` to your project to + * enable this function + * * @param[in] pin pin to initialize * @param[in] mode mode of the pin, see @c gpio_mode_t * @param[in] flank define the active flank(s) @@ -174,6 +177,9 @@ int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank, /** * @brief Enable pin interrupt if configured as interrupt source * + * @note You have to add the module `periph_gpio_irq` to your project to + * enable this function + * * @param[in] pin the pin to enable the interrupt for */ void gpio_irq_enable(gpio_t pin); @@ -181,6 +187,9 @@ void gpio_irq_enable(gpio_t pin); /** * @brief Disable the pin interrupt if configured as interrupt source * + * @note You have to add the module `periph_gpio_irq` to your project to + * enable this function + * * @param[in] pin the pin to disable the interrupt for */ void gpio_irq_disable(gpio_t pin);