SAM GPIO driver.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Typedefs | |
typedef void(* | gpio_pin_callback_t )(void) |
Interrupt callback function type for a GPIO pin. More... | |
Functions | |
Interrupt Support | |
The GPIO can be configured to generate an interrupt when it detects a change on a GPIO pin. | |
bool | gpio_set_pin_callback (ioport_pin_t pin, gpio_pin_callback_t callback, uint8_t irq_level) |
Set callback for given GPIO pin. More... | |
static void | gpio_enable_pin_interrupt (ioport_pin_t pin) |
Enable the interrupt of a pin. More... | |
static void | gpio_disable_pin_interrupt (ioport_pin_t pin) |
Disable the interrupt of a pin. More... | |
static uint32_t | gpio_get_pin_interrupt_flag (ioport_pin_t pin) |
Get the interrupt flag of a pin. More... | |
static void | gpio_clear_pin_interrupt_flag (ioport_pin_t pin) |
Clear the interrupt flag of a pin. More... | |
Peripheral Event System Support | |
The GPIO can be programmed to output peripheral events whenever an interrupt condition is detected, such as pin value change, or only when a rising or falling edge is detected. | |
static void | gpio_enable_pin_periph_event (ioport_pin_t pin) |
Enable the peripheral event generation of a pin. More... | |
static void | gpio_disable_pin_periph_event (ioport_pin_t pin) |
Disable the peripheral event generation of a pin. More... | |