1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #17014 from benpicco/periph/gpio-cb_not_NULL

drivers/periph/gpio: state that interrupt callback must not be NULL
This commit is contained in:
benpicco 2021-11-05 12:47:16 +01:00 committed by GitHub
commit bfb8d1d3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,6 +182,8 @@ int gpio_init(gpio_t pin, gpio_mode_t mode);
* @note You have to add the module `periph_gpio_irq` to your project to
* enable this function
*
* @pre @p cb must not be NULL
*
* @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)