SAM G55 External Interrupt Driver Configuration Header.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | WAKEUP_BACKUP_INPUT_ID (1u << 2) |
Wakeup pin for backup mode: Touchscreen controller IRQ pin. More... | |
#define | WAKEUP_WAIT_INPUT_ID (1u << 2) |
Wakeup pin for wait mode: SW0. More... | |
#define | PIN_PUSHBUTTON_WAKEUP_PIO PIOA |
Push button definitions for sleep mode and active mode. More... | |
#define | PIN_PUSHBUTTON_WAKEUP_MASK PIO_PA2 |
#define | PIN_PUSHBUTTON_WAKEUP_ID ID_PIOA |
#define | PIN_PUSHBUTTON_WAKEUP_ATTR PIO_DEFAULT |
Functions | |
static uint8_t | button_0_input_level (void) |
Read the current state of the button pin. More... | |
void | button_cb (void) |
static void | button_handler (uint32_t ul_id, uint32_t ul_mask) |
Handler for button interrupt. More... | |
static void | button_init (void) |
#define PIN_PUSHBUTTON_WAKEUP_ATTR PIO_DEFAULT |
Referenced by button_init().
#define PIN_PUSHBUTTON_WAKEUP_ID ID_PIOA |
Referenced by button_handler(), and button_init().
#define PIN_PUSHBUTTON_WAKEUP_MASK PIO_PA2 |
Referenced by button_handler(), and button_init().
#define PIN_PUSHBUTTON_WAKEUP_PIO PIOA |
Push button definitions for sleep mode and active mode.
Referenced by button_init().
#define WAKEUP_BACKUP_INPUT_ID (1u << 2) |
Wakeup pin for backup mode: Touchscreen controller IRQ pin.
#define WAKEUP_WAIT_INPUT_ID (1u << 2) |
Wakeup pin for wait mode: SW0.
|
inlinestatic |
Read the current state of the button pin.
References BUTTON_0_PIN, and ioport_get_pin_level().
void button_cb | ( | void | ) |
References app_init_done, at_ble_event_user_defined_post(), and button_press.
Referenced by button_handler().
|
inlinestatic |
Handler for button interrupt.
References button_cb(), PIN_PUSHBUTTON_WAKEUP_ID, and PIN_PUSHBUTTON_WAKEUP_MASK.
Referenced by button_init().
|
inlinestatic |