XMEGA timeout example 2.
Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | DEBOUNCE_TICKS (50 * TIMEOUT_TICK_HZ / 1000) |
Length of debounce timeout, in ticks. More... | |
Enumerations | |
enum | { DEBOUNCE_TIMEOUT } |
Enum to get timeout index. More... | |
Functions | |
int | main (void) |
Timeout example 2 main application routine. More... | |
#define DEBOUNCE_TICKS (50 * TIMEOUT_TICK_HZ / 1000) |
Length of debounce timeout, in ticks.
Referenced by main().
int main | ( | void | ) |
Timeout example 2 main application routine.
References board_init(), cpu_irq_enable, DEBOUNCE_TICKS, DEBOUNCE_TIMEOUT, gpio_pin_is_low, GPIO_PUSH_BUTTON_0, GPIO_PUSH_BUTTON_1, gpio_set_pin_group_high, gpio_toggle_pin, LED0_GPIO, LED1_GPIO, LED_PORT, LED_PORT_MASK, pmic_init(), sysclk_init(), timeout_init(), timeout_start_singleshot(), and timeout_test_and_clear_expired().