# include/gpio/gpio_irq_handler.h File Reference

GPIO irq handler. More...

`#include <slist.h>`
`#include <chip/portmux.h>`

Include dependency graph for gpio_irq_handler.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | gpio_irq_handler
| GPIO irq handler. More...
## Functions
static void | gpio_init_irq_handler (struct gpio_irq_handler *irqh, gpio_pin_t pin, void(*handler)(void *data), void *data)
| Init GPIO irq handler.
void | gpio_register_irq_handler (struct gpio_irq_handler *irqh)
| Register GPIO irq handler.

## Detailed Description

GPIO irq handler.

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All AVR32 devices with a GPIO module
- AppNote:

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file gpio_irq_handler.h.

## Function Documentation

static void gpio_init_irq_handler | ( | struct gpio_irq_handler * | irqh,
|  | gpio_pin_t | pin,
|  | void(*)(void *data) | handler,
|  | void * | data |
| ) |  |  | `[inline, static]`

Init GPIO irq handler.

Parameters:

  | irqh | Pointer to gpio_irq_handler
  | handler | Sub handler callback
  | data | sub handler private data

Definition at line 68 of file gpio_irq_handler.h.

References gpio_irq_handler::data, gpio_irq_handler::handler, and gpio_irq_handler::pin.

Referenced by sdmmc_cd_init().

void gpio_register_irq_handler | ( | struct gpio_irq_handler * | irqh | ) |

Register GPIO irq handler.

Parameters:

  | irqh | handler to register

Definition at line 79 of file gpio_irq_handler.c.

References cpu_irq_restore(), cpu_irq_save(), gpio_irq_group_pin2index(), gpio_irq_group::handler_list, gpio_irq_handler::node, gpio_irq_handler::pin, and slist_insert_tail().

Referenced by sdmmc_cd_init().

Here is the call graph for this function: