SENSORS_XPLAINED_BOARD extension board adaptation.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | PIN_INPUT_FLAGS (GPIO_DIR_INPUT) |
#define | PIN_OUTPUT_FLAGS (GPIO_DIR_OUTPUT | GPIO_INIT_HIGH) |
Functions | |
ISR (gpio_irq_handler, AVR32_GPIO_IRQ_GROUP, GPIO_INT_LVL) | |
void | sensor_board_init (void) |
Initialize sensor board target resources. More... | |
bool | sensor_board_irq_connect (uint32_t gpio_pin, SENSOR_IRQ_HANDLER handler, void *arg) |
Install a sensor interrupt handler. More... | |
Variables | |
Sensor Board GPIO interrupt handler callback pointers | |
static SENSOR_IRQ_HANDLER | sensor_pin3_handler |
static volatile void * | sensor_pin3_arg |
static SENSOR_IRQ_HANDLER | sensor_pin4_handler |
static volatile void * | sensor_pin4_arg |
static SENSOR_IRQ_HANDLER | sensor_pin5_handler |
static volatile void * | sensor_pin5_arg |
#define PIN_INPUT_FLAGS (GPIO_DIR_INPUT) |
Referenced by sensor_board_init().
#define PIN_OUTPUT_FLAGS (GPIO_DIR_OUTPUT | GPIO_INIT_HIGH) |
Referenced by sensor_board_init().
ISR | ( | gpio_irq_handler | , |
AVR32_GPIO_IRQ_GROUP | , | ||
GPIO_INT_LVL | |||
) |
Sensor Board GPIO interrupt handler
This is the default ISR for the Xplained Sensor board GPIO pins. If an external interrupt interface is available, the corresponding eic_pinX_handler will be used instead.
References SENSOR_BOARD_PIN3, SENSOR_BOARD_PIN4, SENSOR_BOARD_PIN5, sensor_pin3_arg, sensor_pin3_handler, sensor_pin4_arg, sensor_pin4_handler, sensor_pin5_arg, and sensor_pin5_handler.
|
static |
Referenced by ISR(), and sensor_board_irq_connect().
|
static |
Referenced by ISR(), and sensor_board_irq_connect().
|
static |
Referenced by ISR(), and sensor_board_irq_connect().
|
static |
Referenced by ISR(), and sensor_board_irq_connect().
|
static |
Referenced by ISR(), and sensor_board_irq_connect().
|
static |
Referenced by ISR(), and sensor_board_irq_connect().