#include <type.h>#include <lpc2xxx.h>

Go to the source code of this file.
Defines | |
| #define | DCLK_PIN 1<<31 |
| #define | CS_PIN 1<<28 |
| #define | DIN_PIN 1<<3 |
| #define | BUSY_PIN 1<<2 |
| #define | DOUT_PIN 1<<5 |
| #define | PENIRQ_PIN 1<<27 |
| #define | TP_DCLK_H() FIOSET=DCLK_PIN; |
| #define | TP_DCLK_L() FIOCLR=DCLK_PIN; |
| #define | TP_CS_H() FIOSET=CS_PIN; |
| #define | TP_CS_L() FIOCLR=CS_PIN; |
| #define | TP_DIN_H() FIOSET=DIN_PIN; |
| #define | TP_DIN_L() FIOCLR=DIN_PIN; |
| #define | TP_DOUT (FIOPIN & DOUT_PIN) |
Functions | |
| void | TP_Init () |
| void | TP_Done () |
| UINT8 | TP_GetAdXY (UINT16 *x, UINT16 *y) |
| #define BUSY_PIN 1<<2 |
| #define PENIRQ_PIN 1<<27 |
| #define TP_CS_H | ( | ) | FIOSET=CS_PIN; |
Referenced by start_touch(), and TP_Done().
| #define TP_CS_L | ( | ) | FIOCLR=CS_PIN; |
Referenced by start_touch(), and TP_GetAdXYOm().
| #define TP_DCLK_H | ( | ) | FIOSET=DCLK_PIN; |
Referenced by start_touch(), TP_AD_Charge(), and TP_Done().
| #define TP_DCLK_L | ( | ) | FIOCLR=DCLK_PIN; |
Referenced by start_touch(), and TP_AD_Charge().
| #define TP_DIN_H | ( | ) | FIOSET=DIN_PIN; |
Referenced by SetTouch_DIN(), start_touch(), and TP_Done().
| #define TP_DIN_L | ( | ) | FIOCLR=DIN_PIN; |
Referenced by SetTouch_DIN().
| #define TP_DOUT (FIOPIN & DOUT_PIN) |
| void TP_Done | ( | ) |
1.6.3