Onda VX747:

* Get rid of bug when interrupts are enabled
 * Get threading to work (although with some weirdness)
 * Other fixes/optimizations


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18512 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-09-14 16:26:08 +00:00
parent e3f1a3f33e
commit 1e294e3f25
11 changed files with 234 additions and 252 deletions

View file

@ -122,13 +122,16 @@ int button_read_device(int *data)
ret |= BUTTON_POWER;
}
if(pendown_flag)
if(data != NULL)
{
*data = touch_to_pixels(stable_x_pos, stable_y_pos);
ret |= BUTTON_TOUCH;
if(pendown_flag)
{
*data = touch_to_pixels(stable_x_pos, stable_y_pos);
ret |= BUTTON_TOUCH;
}
else
*data = 0;
}
else
*data = 0;
return ret;
}
@ -199,7 +202,7 @@ void SADC(void)
xData = (dat >> 0) & 0xfff;
yData = (dat >> 16) & 0xfff;
dat = REG_SADC_TSDAT;
tsz1Data = (dat >> 0) & 0xfff;
tsz2Data = (dat >> 16) & 0xfff;