SAM External Interrupt Driver Quick Start.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Functions | |
void | configure_extint_callbacks (void) |
void | configure_extint_channel (void) |
[setup] More... | |
void | extint_detection_callback (void) |
[setup_7] More... | |
int | main (void) |
[setup_7] [setup] More... | |
void configure_extint_callbacks | ( | void | ) |
[setup_5]
[setup_5] [setup_6]
[setup_6]
References EXTINT_CALLBACK_TYPE_DETECT, extint_chan_enable_callback(), extint_detection_callback(), and extint_register_callback().
Referenced by main().
void configure_extint_channel | ( | void | ) |
[setup]
[setup_1]
[setup_1] [setup_2]
[setup_2]
[setup_3]
[setup_3] [setup_4]
[setup_4]
References extint_chan_conf::detection_criteria, extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_BOTH, EXTINT_PULL_UP, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, and extint_chan_conf::gpio_pin_pull.
void extint_detection_callback | ( | void | ) |
[setup_7]
References port_pin_get_input_level(), and port_pin_set_output_level().
Referenced by configure_extint_callbacks().
int main | ( | void | ) |
[setup_7] [setup]
[setup_init]
[setup_init]
[main]
[main]
References configure_extint_callbacks(), configure_extint_channel(), system_init(), and system_interrupt_enable_global().