mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
e3f1a3f33e
commit
1e294e3f25
11 changed files with 234 additions and 252 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue