diff options
author | Jean-Louis Biasini <jlbiasini@gmail.com> | 2013-07-30 00:29:04 +0300 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-19 13:37:57 +0200 |
commit | 8d2e4f9b7d33f2d086d6e6a555739ffe0f51ca9c (patch) | |
tree | 587e2a73be84fd137dcac7d541c7a95edae91bd9 /firmware/target/arm/imx233/sansa-fuzeplus/button-target.h | |
parent | ce714cb023c6f50bf46b5dd8a056660acaf647f1 (diff) | |
download | rockbox-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.h | 1 |
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> |
25 | bool button_debug_screen(void); | 25 | bool button_debug_screen(void); |
26 | void touchpad_set_sensitivity(int level); | 26 | void touchpad_set_sensitivity(int level); |
27 | void 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 |