SAM PAC Quick Start.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Functions | |
void | config_port_pins (void) |
[pin_setup] More... | |
int | main (void) |
[pin_setup] More... | |
void config_port_pins | ( | void | ) |
[pin_setup]
References port_config::direction, port_config::input_pull, port_get_config_defaults(), PORT_PIN_DIR_INPUT, PORT_PIN_DIR_OUTPUT, PORT_PIN_PULL_UP, and port_pin_set_config().
Referenced by main().
int main | ( | void | ) |
[pin_setup]
[main]
[init]
[init]
[init_lock]
[init_lock]
[enable_interrupts]
[enable_interrupts]
[button_press]
[button_press]
[disable_interrupts]
[disable_interrupts]
[unlock_perph]
[unlock_perph]
[alter_config]
[alter_config]
[lock_perph]
[lock_perph]
[enable_interrupts_2]
[enable_interrupts_2]
[inf_loop]
[inf_loop] [main]
References config_port_pins(), port_pin_get_input_level(), port_pin_toggle_output_level(), system_init(), system_interrupt_enable_global(), system_interrupt_enter_critical_section(), system_interrupt_leave_critical_section(), system_pac_enable_interrupt(), SYSTEM_PERIPHERAL_ID, system_peripheral_lock(), and system_peripheral_unlock().