Microchip® Advanced Software Framework

conf_rtouch.h File Reference
#include <board.h>

Macros

#define RTOUCH_ADC   AVR32_ADCIFA
 AVR32 ADC module used for touch panel sampling. More...
 
#define RTOUCH_ADC_INT_LEVEL   AVR32_INTC_INTLEVEL_INT0
 Interrupt priority for the resistive touch driver. More...
 
#define RTOUCH_ADC_IRQ   AVR32_ADCIFA_SEQUENCER0_IRQ
 
#define RTOUCH_ADC_XH_CHANNEL   AVR32_ADCIFA_INP_ADCIN1
 
#define RTOUCH_ADC_XL_CHANNEL   AVR32_ADCIFA_INN_ADCIN15
 
#define RTOUCH_ADC_YH_CHANNEL   AVR32_ADCIFA_INP_ADCIN0
 
#define RTOUCH_ADC_YL_CHANNEL   AVR32_ADCIFA_INN_ADCIN13
 
#define RTOUCH_OVERSAMPLING   32
 Sample count per signal line. More...
 
#define RTOUCH_SAMPLESCALE   5
 Number of right shifts required to scale down to 10 bits after oversampling. More...
 
#define RTOUCH_XH_PIN   AVR32_ADCIN1_PIN /* PA5 */
 IO pin used for XL line. More...
 
#define RTOUCH_XH_PIN_FUNCTION   AVR32_ADCIN1_FUNCTION
 
#define RTOUCH_XL_PIN   AVR32_ADCIN15_PIN/* PA13 */
 IO pin used for XH line. More...
 
#define RTOUCH_XL_PIN_FUNCTION   AVR32_ADCIN15_FUNCTION
 
#define RTOUCH_YH_PIN   AVR32_ADCIN0_PIN /* PA4 */
 IO pin used for YH line. More...
 
#define RTOUCH_YH_PIN_FUNCTION   AVR32_ADCIN0_FUNCTION
 
#define RTOUCH_YL_PIN   AVR32_ADCIN13_PIN /* PA24 */
 IO pin used for YL line. More...
 
#define RTOUCH_YL_PIN_FUNCTION   AVR32_ADCIN13_FUNCTION
 
#define TOUCH_DETECT_SLEEP_MODE   SLEEPMGR_SAVE
 Deepest sleep mode allowed when waiting for touch detect. More...
 
#define TOUCH_SAMPLE_SLEEP_MODE   SLEEPMGR_IDLE
 Deepest sleep mode allowed when sampling. More...
 
#define TOUCH_USE_IMMEDIATE_RESAMPLE   1
 Set to 0 if the timer module should be used for delayed resampling. More...
 

#define RTOUCH_ADC   AVR32_ADCIFA
#define RTOUCH_ADC_INT_LEVEL   AVR32_INTC_INTLEVEL_INT0

Interrupt priority for the resistive touch driver.

Referenced by rtouch_prepare_adc().

#define RTOUCH_ADC_IRQ   AVR32_ADCIFA_SEQUENCER0_IRQ

Referenced by rtouch_prepare_adc().

#define RTOUCH_OVERSAMPLING   32

Sample count per signal line.

Referenced by rtouch_adc_int_handler().

#define RTOUCH_SAMPLESCALE   5

Number of right shifts required to scale down to 10 bits after oversampling.

Referenced by rtouch_process_samples().

#define RTOUCH_XH_PIN   AVR32_ADCIN1_PIN /* PA5 */

IO pin used for XL line.

#define RTOUCH_XH_PIN_FUNCTION   AVR32_ADCIN1_FUNCTION
#define RTOUCH_XL_PIN   AVR32_ADCIN15_PIN/* PA13 */

IO pin used for XH line.

#define RTOUCH_XL_PIN_FUNCTION   AVR32_ADCIN15_FUNCTION
#define RTOUCH_YH_PIN   AVR32_ADCIN0_PIN /* PA4 */

IO pin used for YH line.

#define RTOUCH_YH_PIN_FUNCTION   AVR32_ADCIN0_FUNCTION
#define RTOUCH_YL_PIN   AVR32_ADCIN13_PIN /* PA24 */

IO pin used for YL line.

#define RTOUCH_YL_PIN_FUNCTION   AVR32_ADCIN13_FUNCTION
#define TOUCH_DETECT_SLEEP_MODE   SLEEPMGR_SAVE

Deepest sleep mode allowed when waiting for touch detect.

#define TOUCH_SAMPLE_SLEEP_MODE   SLEEPMGR_IDLE

Deepest sleep mode allowed when sampling.

#define TOUCH_USE_IMMEDIATE_RESAMPLE   1

Set to 0 if the timer module should be used for delayed resampling.