Microchip® Advanced Software Framework

conf_extint.h File Reference

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)
 Button Press Callback. More...
 
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.

static uint8_t button_0_input_level ( void  )
inlinestatic

Read the current state of the button pin.

References BUTTON_0_PIN, and ioport_get_pin_level().

void button_cb ( void  )

Button Press Callback.

References app_init_done, at_ble_event_user_defined_post(), and button_pressed.

Referenced by button_handler().

static void button_handler ( uint32_t  ul_id,
uint32_t  ul_mask 
)
inlinestatic

Handler for button interrupt.

Note
This interrupt is for waking up from sleep mode or exiting from active mode.

References button_cb(), PIN_PUSHBUTTON_WAKEUP_ID, and PIN_PUSHBUTTON_WAKEUP_MASK.

Referenced by button_init().