SAM4L QTouch Example.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "conf_example.h"
Macros | |
#define | STRING_EOL "\r" |
#define | STRING_HEADER |
Functions | |
static void | ast_per_callback (void) |
static void | configure_console (void) |
Configure UART console. More... | |
static void | example_qtouch_init (void) |
int | main (void) |
SAM4L QTouch example entry point. More... | |
#define STRING_EOL "\r" |
#define STRING_HEADER |
Referenced by main().
|
static |
References ast_clear_interrupt_flag(), AST_INTERRUPT_PER, and touch_sensors_update_time().
Referenced by example_qtouch_init().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
|
static |
References ast_clear_interrupt_flag(), AST_COUNTER_MODE, ast_enable(), AST_INTERRUPT_PER, AST_OSC_32KHZ, ast_per_callback(), AST_PSEL_32KHZ_1HZ, ast_set_callback(), ast_set_config(), ast_write_periodic0_value(), ast_config::counter, ast_config::mode, osc_enable(), OSC_ID_OSC32, osc_is_ready(), ast_config::osc_type, ast_config::psel, sysclk_enable_peripheral_clock(), and touch_sensors_init().
Referenced by main().
int main | ( | void | ) |
SAM4L QTouch example entry point.
References board_init(), configure_console(), example_qtouch_init(), GET_QT_SENSOR_STATE, STRING_HEADER, sysclk_init(), and touch_sensors_measure().