summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
diff options
context:
space:
mode:
authorJean-Louis Biasini <jlbiasini@gmail.com>2013-07-30 00:29:04 +0300
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-19 13:37:57 +0200
commit8d2e4f9b7d33f2d086d6e6a555739ffe0f51ca9c (patch)
tree587e2a73be84fd137dcac7d541c7a95edae91bd9 /firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
parentce714cb023c6f50bf46b5dd8a056660acaf647f1 (diff)
downloadrockbox-8d2e4f9b7d33f2d086d6e6a555739ffe0f51ca9c.tar.gz
rockbox-8d2e4f9b7d33f2d086d6e6a555739ffe0f51ca9c.zip
[Fuze+][Touchpad] Improve touchpad power managment
- take advantage of the new rmi power function implemented to: 1) lower usual power_mode to low_power as it seems to be enough and might save some battery 2) implement a system that lower that state to very_low_power after 1 minute of inactivity. 3) implement touchdev_enable(bool) that can be use later to disable the touchpad when needed 4) improve the debug screen report of the current power state and changing the power state using volume keys Change-Id: I0b372696d4b2bef5360c778d0500870fd9badee1 Reviewed-on: http://gerrit.rockbox.org/525 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/button-target.h')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/button-target.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h b/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
index 58e8d3179c..1c94b76cdc 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/button-target.h
@@ -24,6 +24,7 @@
24#include <stdbool.h> 24#include <stdbool.h>
25bool button_debug_screen(void); 25bool button_debug_screen(void);
26void touchpad_set_sensitivity(int level); 26void touchpad_set_sensitivity(int level);
27void touchdev_enable(bool en);
27 28
28/* Main unit's buttons */ 29/* Main unit's buttons */
29#define BUTTON_POWER 0x00000001 30#define BUTTON_POWER 0x00000001