#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "pm.h"
#include "gpio.h"
#include "eic.h"
#include "qt1081.h"
#include "intc.h"
Macros | |
#define | INT_MODE INT_MODE_EIC |
#define | INT_MODE_EIC 0 |
#define | INT_MODE_GPIO 1 |
#define | is_touch_center() is_touch_sensor_4() |
#define | is_touch_down() is_touch_sensor_1() |
#define | is_touch_left() is_touch_sensor_3() |
#define | is_touch_right() is_touch_sensor_2() |
#define | is_touch_up() is_touch_sensor_0() |
Functions | |
int | main (void) |
void | touch_button_isr (void) |
Variables | |
eic_options_t | eic_options [2] |
Structure holding the configuration parameters of the EIC module. More... | |
#define INT_MODE INT_MODE_EIC |
#define INT_MODE_EIC 0 |
#define INT_MODE_GPIO 1 |
#define is_touch_center | ( | ) | is_touch_sensor_4() |
Referenced by touch_button_isr().
#define is_touch_down | ( | ) | is_touch_sensor_1() |
Referenced by touch_button_isr().
#define is_touch_left | ( | ) | is_touch_sensor_3() |
Referenced by touch_button_isr().
#define is_touch_right | ( | ) | is_touch_sensor_2() |
Referenced by touch_button_isr().
#define is_touch_up | ( | ) | is_touch_sensor_0() |
Referenced by touch_button_isr().
int main | ( | void | ) |
References Disable_global_interrupt, eic_options_t::eic_async, eic_options_t::eic_edge, EIC_EDGE_RISING_EDGE, eic_enable_interrupt_lines(), eic_enable_lines(), eic_init(), eic_options_t::eic_line, eic_options_t::eic_mode, EIC_MODE_EDGE_TRIGGERED, EIC_SYNCH_MODE, Enable_global_interrupt, FOSC0, gpio_enable_module_pin(), gpio_enable_pin_interrupt(), GPIO_RISING_EDGE, gpio_set_gpio_pin(), INTC_init_interrupts(), INTC_register_interrupt(), LED0_GPIO, LED1_GPIO, LED2_GPIO, LED3_GPIO, OSC0_STARTUP, pm_switch_to_osc0(), QT1081_EIC_EXTINT_FUNCTION, QT1081_EIC_EXTINT_INT, QT1081_EIC_EXTINT_IRQ, QT1081_EIC_EXTINT_PIN, QT1081_TOUCH_SENSOR_0, QT1081_TOUCH_SENSOR_1, QT1081_TOUCH_SENSOR_2, QT1081_TOUCH_SENSOR_3, QT1081_TOUCH_SENSOR_4, and touch_button_isr().
void touch_button_isr | ( | void | ) |
References eic_clear_interrupt_line(), gpio_tgl_gpio_pin(), is_touch_center, is_touch_down, is_touch_left, is_touch_right, is_touch_up, LED0_GPIO, LED1_GPIO, LED2_GPIO, and QT1081_EIC_EXTINT_INT.
Referenced by main().
eic_options_t eic_options[2] |
Structure holding the configuration parameters of the EIC module.