Board-specific ADC control for resistive touch driver
[General touch driver]

Collaboration diagram for Board-specific ADC control for resistive touch driver:

Functions

static __always_inline void board_enable_touch_adc (void)
 Clear PR bit for default touch ADC.
static __always_inline void board_disable_touch_adc (void)
 Disable ADC and references, then set its PR bit.

Detailed Description

This uses the configuration set in config-xplain.mk for the application.


Function Documentation

static __always_inline void board_disable_touch_adc ( void   )  [static]

Disable ADC and references, then set its PR bit.

Note:
This leaves all configuration except the ADC and reference enable bits intact.

Definition at line 79 of file touch.h.

References ADC_BFMASK, ADC_BIT, adc_read_reg, adc_write_reg, SYSCLK_ADC, sysclk_disable_module(), and SYSCLK_PORT_A.

static __always_inline void board_enable_touch_adc ( void   )  [static]

Clear PR bit for default touch ADC.

Note:
The enable bits for neither the ADC nor the bandgap or temperature references are restored if this function is called after board_disable_touch_adc() has been called.

Definition at line 67 of file touch.h.

References SYSCLK_ADC, sysclk_enable_module(), and SYSCLK_PORT_A.

Generated on Thu Apr 29 15:18:25 2010 for display-training by  doxygen 1.6.3