1
0
Fork 0
forked from len0rd/rockbox

fuze+: rewrite touchpad driver

The old driver was bad in many respect, it had some race conditions, it was
using a thread to serialize transfers because of the legacy i2c interface.
It also had huge latency (typically 50ms but delays up to 300ms can happen),
thus some presses were missed.
The new driver takes advantage of the new i2c driver to do everything
asynchronously. It also does not need a thread anymore because queueing
ensures proper serialization. It provides much better and reliable latency
(typically ~2ms).
Also fix the debug screen which was horribly broken. The new screen also
displays the deadzones.

Change-Id: I69b7f99b75053e6b1d3d56beb4453c004fd2076e
This commit is contained in:
Amaury Pouly 2016-05-02 22:01:22 +01:00
parent 4d42e3685c
commit b2afd931e2
4 changed files with 495 additions and 350 deletions

View file

@ -1465,7 +1465,6 @@ target/arm/as3525/lcd-as-e200v2-fuze-fuzev2.S
#endif /* SANSA_FUZEV2 */
#ifdef SANSA_FUZEPLUS
drivers/synaptics-rmi.c
#ifndef BOOTLOADER
drivers/generic_i2c.c
target/arm/imx233/fmradio-imx233.c