SAM D21 External Interrupt Driver Configuration Header.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | EXTINT_CLOCK_SOURCE GCLK_GENERATOR_0 |
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_init (void) |
#define EXTINT_CLOCK_SOURCE GCLK_GENERATOR_0 |
|
inlinestatic |
Read the current state of the button pin.
References BUTTON_0_PIN, and port_pin_get_input_level().
void button_cb | ( | void | ) |
Referenced by button_init().
|
inlinestatic |
References BUTTON_0_EIC_LINE, BUTTON_0_EIC_MUX, BUTTON_0_EIC_PIN, button_cb(), extint_chan_conf::detection_criteria, EXTINT_CALLBACK_TYPE_DETECT, extint_chan_enable_callback(), extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_FALLING, EXTINT_PULL_UP, extint_register_callback(), extint_chan_conf::filter_input_signal, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, and extint_chan_conf::gpio_pin_pull.
Referenced by main().