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

drivers/gpio: added default ISR context struct

This commit is contained in:
Hauke Petersen 2016-01-27 17:00:23 +01:00
parent f6d350a5a5
commit 555c010623

View File

@ -122,6 +122,18 @@ typedef enum {
*/
typedef void (*gpio_cb_t)(void *arg);
/**
* @brief Default interrupt context for GPIO pins
* @{
*/
#ifndef HAVE_GPIO_ISR_CTX_T
typedef struct {
gpio_cb_t cb; /**< interrupt callback */
void *arg; /**< optional argument */
} gpio_isr_ctx_t;
#endif
/** @} */
/**
* @brief Initialize the given pin as general purpose input or output
*