summaryrefslogtreecommitdiff
path: root/apps/plugins/test_scanrate.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-22 10:24:28 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-22 10:24:28 +0000
commit29361abf744ed116cec04ca03e754ddd2794b76c (patch)
treed336dd19570faed037aef9064ce3c490c50ed6df /apps/plugins/test_scanrate.c
parentbca8edd856cee3a3b469ef9fe2770a191b590fde (diff)
Adapt most single-file plugins to the M3 keypad and screen. It's still preliminary, as many plugins now can't be left without the remote. The plugins need to be converted to use the action API (but not pluginlib actions). Plugins are not enabled yet. * Simplify the bitmap handling in the source of some plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16737 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_scanrate.c')
-rw-r--r--apps/plugins/test_scanrate.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/test_scanrate.c b/apps/plugins/test_scanrate.c
index c61a9d70fc..e6ed1aa084 100644
--- a/apps/plugins/test_scanrate.c
+++ b/apps/plugins/test_scanrate.c
@@ -38,6 +38,13 @@ PLUGIN_HEADER
#define SCANRATE_INC BUTTON_RIGHT
#define SCANRATE_DEC BUTTON_LEFT
+#elif CONFIG_KEYPAD == IAUDIO_M3_PAD
+#define SCANRATE_DONE BUTTON_RC_REC
+#define SCANRATE_FASTINC BUTTON_RC_VOL_UP
+#define SCANRATE_FASTDEC BUTTON_RC_VOL_DOWN
+#define SCANRATE_INC BUTTON_RC_FF
+#define SCANRATE_DEC BUTTON_RC_REW
+
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) \
|| (CONFIG_KEYPAD == IPOD_1G2G_PAD)
#define SCANRATE_DONE BUTTON_MENU
@@ -67,6 +74,9 @@ PLUGIN_HEADER
#define DEFAULT_SCAN_RATE 800
#elif CONFIG_LCD == LCD_IPODMINI
#define DEFAULT_SCAN_RATE 880
+#else
+#define DEFAULT_SCAN_RATE 700
+#warning Generic default scanrate
#endif
#if defined(CPU_PP) && defined(HAVE_ADJUSTABLE_CPU_FREQ)