conf_rtouch_example.h File Reference

Go to the source code of this file.

Defines

#define RTOUCH_ADC   AVR32_ADC
 AVR32 ADC module used for touch panel sampling.
#define RTOUCH_ADC_INT_LEVEL   1
#define RTOUCH_ADC_IRQ   AVR32_ADC_IRQ
#define RTOUCH_ADC_XH_CHANNEL   (1 << 6)
#define RTOUCH_ADC_XL_CHANNEL   (1 << 4)
 ADC channel number for XL.
#define RTOUCH_ADC_YH_CHANNEL   (1 << 7)
#define RTOUCH_ADC_YL_CHANNEL   (1 << 5)
#define RTOUCH_OVERSAMPLING   4
 Sample count per signal line.
#define RTOUCH_SAMPLESCALE   2
 Number of right shifts required to scale down to 10 bits after oversampling.
#define RTOUCH_XH_PIN   AVR32_ADC_AD_6_PIN
 IO pin used for XH line.
#define RTOUCH_XH_PIN_FUNCTION   AVR32_ADC_AD_6_FUNCTION
#define RTOUCH_XL_PIN   AVR32_ADC_AD_4_PIN
 IO pin used for XL line.
#define RTOUCH_XL_PIN_FUNCTION   AVR32_ADC_AD_4_FUNCTION
#define RTOUCH_YH_PIN   AVR32_ADC_AD_7_PIN
 IO pin used for YH line.
#define RTOUCH_YH_PIN_FUNCTION   AVR32_ADC_AD_7_FUNCTION
#define RTOUCH_YL_PIN   AVR32_ADC_AD_5_PIN
 IO pin used for YL line.
#define RTOUCH_YL_PIN_FUNCTION   AVR32_ADC_AD_5_FUNCTION
#define TOUCH_DETECT_SLEEP_MODE   SLEEPMGR_SAVE
 Deepest sleep mode allowed when waiting for touch detect.
#define TOUCH_SAMPLE_IRQ   SOFTIRQ_TOUCH
 Which soft IRQ to use for raw sample processing.
#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.
#define TOUCH_USE_SOFTIRQ   0
 Set to 1 if soft IRQs are used for raw sample processing.


Define Documentation

#define RTOUCH_ADC   AVR32_ADC

AVR32 ADC module used for touch panel sampling.

Definition at line 56 of file conf_rtouch_example.h.

Referenced by rtouch_adc_int_handler(), rtouch_disable_adc_int(), rtouch_enable_adc_int(), rtouch_get_adc_value(), rtouch_prepare_adc(), and rtouch_start_read().

#define RTOUCH_ADC_INT_LEVEL   1

Definition at line 31 of file conf_rtouch_example.h.

Referenced by rtouch_prepare_adc().

#define RTOUCH_ADC_IRQ   AVR32_ADC_IRQ

Definition at line 32 of file conf_rtouch_example.h.

Referenced by rtouch_prepare_adc().

#define RTOUCH_ADC_XH_CHANNEL   (1 << 6)

#define RTOUCH_ADC_XL_CHANNEL   (1 << 4)

#define RTOUCH_ADC_YH_CHANNEL   (1 << 7)

#define RTOUCH_ADC_YL_CHANNEL   (1 << 5)

#define RTOUCH_OVERSAMPLING   4

Sample count per signal line.

Definition at line 9 of file conf_rtouch_example.h.

Referenced by rtouch_adc_int_handler().

#define RTOUCH_SAMPLESCALE   2

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

Definition at line 11 of file conf_rtouch_example.h.

Referenced by rtouch_process_samples().

#define RTOUCH_XH_PIN   AVR32_ADC_AD_6_PIN

IO pin used for XH line.

Definition at line 41 of file conf_rtouch_example.h.

#define RTOUCH_XH_PIN_FUNCTION   AVR32_ADC_AD_6_FUNCTION

Definition at line 42 of file conf_rtouch_example.h.

#define RTOUCH_XL_PIN   AVR32_ADC_AD_4_PIN

IO pin used for XL line.

Definition at line 35 of file conf_rtouch_example.h.

#define RTOUCH_XL_PIN_FUNCTION   AVR32_ADC_AD_4_FUNCTION

Definition at line 36 of file conf_rtouch_example.h.

#define RTOUCH_YH_PIN   AVR32_ADC_AD_7_PIN

IO pin used for YH line.

Definition at line 51 of file conf_rtouch_example.h.

#define RTOUCH_YH_PIN_FUNCTION   AVR32_ADC_AD_7_FUNCTION

Definition at line 52 of file conf_rtouch_example.h.

#define RTOUCH_YL_PIN   AVR32_ADC_AD_5_PIN

IO pin used for YL line.

Definition at line 46 of file conf_rtouch_example.h.

#define RTOUCH_YL_PIN_FUNCTION   AVR32_ADC_AD_5_FUNCTION

Definition at line 47 of file conf_rtouch_example.h.

#define TOUCH_DETECT_SLEEP_MODE   SLEEPMGR_SAVE

Deepest sleep mode allowed when waiting for touch detect.

Definition at line 14 of file conf_rtouch_example.h.

#define TOUCH_SAMPLE_IRQ   SOFTIRQ_TOUCH

Which soft IRQ to use for raw sample processing.

Definition at line 22 of file conf_rtouch_example.h.

Referenced by rtouch_init().

#define TOUCH_SAMPLE_SLEEP_MODE   SLEEPMGR_IDLE

Deepest sleep mode allowed when sampling.

Definition at line 16 of file conf_rtouch_example.h.

#define TOUCH_USE_IMMEDIATE_RESAMPLE   1

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

Definition at line 25 of file conf_rtouch_example.h.

#define TOUCH_USE_SOFTIRQ   0

Set to 1 if soft IRQs are used for raw sample processing.

Definition at line 20 of file conf_rtouch_example.h.


Generated on Fri Feb 19 02:24:05 2010 for AVR32 - Resistive Driver by  doxygen 1.5.5