From 1d4a9c63666541b9e42b5d197d6afec21eb26b4e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 27 Oct 2006 05:31:28 +0000 Subject: 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 --- firmware/export/adc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/export') 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); unsigned short adc_scan(int channel); #endif +#if defined(IAUDIO_X5) +void adc_enable_button_scan(bool enable); +bool adc_get_button_scan_enabled(void); +#endif + #endif -- cgit v1.2.3