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:
parent
f6d350a5a5
commit
555c010623
@ -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
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user