summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-10-27 05:31:28 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-10-27 05:31:28 +0000
commit1d4a9c63666541b9e42b5d197d6afec21eb26b4e (patch)
tree6b33e5a3818e0712147cba869ead61421fedc90f /firmware/export
parentd4dfe957f23bce14116ea9f5bdbaa77435f69908 (diff)
downloadrockbox-1d4a9c63666541b9e42b5d197d6afec21eb26b4e.tar.gz
rockbox-1d4a9c63666541b9e42b5d197d6afec21eb26b4e.zip
Stop reading buttons if one is not down. Don't read remote keys if not plugged. Good for another few points of boost and 4fps full-screen unboosted. The button scan enabling seems stable and I've been using it without any difficulties but if the interrupts hiccup it could leave them unresponsive. Clearing the GPI0 interrupts before enabling them seems to prevent any difficulties. If there's problems there I'll just leave the remote reading bypass only and 50% of the benefits will still be realized.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11357 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/adc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/adc.h b/firmware/export/adc.h
index 13d2617c00..487873dacc 100644
--- a/firmware/export/adc.h
+++ b/firmware/export/adc.h
@@ -105,4 +105,9 @@ void adc_init(void);
105unsigned short adc_scan(int channel); 105unsigned short adc_scan(int channel);
106#endif 106#endif
107 107
108#if defined(IAUDIO_X5)
109void adc_enable_button_scan(bool enable);
110bool adc_get_button_scan_enabled(void);
111#endif
112
108#endif 113#endif