This file contains the AT32UC3L Touch Library pin, register and sensors configuration options for QMatrix, Autonomous QTouch and QTouch Group A/B method acquisition using the Capacitive Touch (CAT) module.
The configuration is tailored for the AT32UC3L-EK.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#define DEF_TOUCH_AUTONOMOUS_QTOUCH (0) |
#define DEF_TOUCH_QDEBUG_ENABLE (1) |
#define DEF_TOUCH_QMATRIX (1) |
#define DEF_TOUCH_QTOUCH_GRP_A (0) |
#define DEF_TOUCH_QTOUCH_GRP_B (0) |
#define QM_CAT_CLK_DIV (5u) |
#define QM_CHLEN (3u) |
#define QM_CONSEN (5u) |
#define QM_CXDILEN (3u) |
#define QM_DI (4u) |
#define QM_DILEN (255u) |
#define QM_DISHIFT (0u) |
#define QM_DMA_CHANNEL_0 (0u) |
Referenced by main().
#define QM_DMA_CHANNEL_1 (1u) |
Referenced by main().
#define QM_DRIFT_HOLD_TIME (20u) |
#define QM_ENABLE_EXTERNAL_SYNC (0u) |
#define QM_ENABLE_SPREAD_SPECTRUM (1u) |
#define QM_FILTER_CALLBACK (NULL) |
#define QM_GCLK_CAT_DIV (64u) |
Referenced by init_clock().
#define QM_INTREFSEL (1u) |
#define QM_INTVREFSEL (1u) |
#define QM_MAX_ACQ_COUNT (3000u) |
#define QM_MAX_ON_DURATION (0u) |
#define QM_NEG_DRIFT_RATE (20u) |
#define QM_NUM_ROTORS_SLIDERS (1u) |
#define QM_NUM_SENSORS (6u) |
#define QM_NUM_X_LINES (6u) |
#define QM_NUM_Y_LINES (2u) |
#define QM_POS_DRIFT_RATE (5u) |
#define QM_POS_RECAL_DELAY (10u) |
#define QM_RECAL_THRESHOLD (RECAL_50) |
#define QM_SELEN (3u) |
#define QM_SMP_DIS_PIN_OPTION (USE_PIN_PA17_AS_SMP) |
#define QM_SYNC_TIM (0u) |
#define QM_VDIV_PIN_OPTION (USE_NO_PIN) |
#define QM_X_PINS_SELECTED |
#define SET_PIN | ( | x | ) | (1u << (x)) |
#define TOUCH_CSARES (0x00000000u) |
#define TOUCH_CSBRES (0x00000000u) |
#define TOUCH_SPREAD_SPECTRUM_MAX_DEV (4u) |
#define TOUCH_SYNC_PIN_OPTION (USE_NO_PIN) |