This commit is contained in:
Tectu 2012-06-07 23:57:15 +02:00
parent ef2d9a6a30
commit cb3292bf36
2 changed files with 2 additions and 4 deletions

View File

@ -52,7 +52,7 @@ uint8_t tpIRQ(void) {
return (!palReadPad(TP_PORT, TP_IRQ));
}
uint16_t tpReadRealX(void) {
static uint16_t tpReadRealX(void) {
uint32_t results = 0;
uint16_t i, x;
@ -66,7 +66,7 @@ uint16_t tpReadRealX(void) {
return x;
}
uint16_t tpReadRealY(void) {
static uint16_t tpReadRealY(void) {
uint32_t results = 0;
uint16_t i, y;

View File

@ -19,8 +19,6 @@ void tpInit(void);
uint8_t tpIRQ(void);
uint16_t tpReadX(void);
uint16_t tpReadY(void);
uint16_t tpReadRealX(void);
uint16_t tpReadRealY(void);
void tpCalibrate(void);
void tpCalibrate2(void);
void tpDrawCross(uint16_t x, uint16_t y);