diff options
| author | Thom Johansen <thomj@rockbox.org> | 2006-03-17 02:02:13 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2006-03-17 02:02:13 +0000 |
| commit | f6e856774c681d3c189dd6753fc041583f36866c (patch) | |
| tree | e924dfe7d954ee90512ef9321da42cccf8ab3489 /apps/debug_menu.c | |
| parent | 4ba14d91135f75e98987887679b7b3d6bccb3120 (diff) | |
| download | rockbox-f6e856774c681d3c189dd6753fc041583f36866c.zip rockbox-f6e856774c681d3c189dd6753fc041583f36866c.tar.gz rockbox-f6e856774c681d3c189dd6753fc041583f36866c.tar.bz2 rockbox-f6e856774c681d3c189dd6753fc041583f36866c.tar.xz | |
CPU boosting support for ipod nano and video. The rest of the targets
are either untested or do not work with the current code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9070 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 267f548..619d38c 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1049,7 +1049,9 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "GPIO_D: %02x", gpio_d); lcd_puts(0, line++, buf); - + unsigned hehe = 0x12345678; + snprintf(buf, sizeof(buf), "%x %x", hehe, swap32(hehe)); + lcd_puts(0, line++, buf); lcd_update(); button = button_get_w_tmo(HZ/10); @@ -1183,16 +1185,24 @@ bool dbg_cpufreq(void) switch(button) { +#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) + case BUTTON_MENU: +#else case BUTTON_UP: +#endif cpu_boost(true); break; - +#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) + case BUTTON_PLAY: +#else case BUTTON_DOWN: +#endif cpu_boost(false); break; #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ - (CONFIG_KEYPAD == IRIVER_H300_PAD) + (CONFIG_KEYPAD == IRIVER_H300_PAD) || \ + (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) case BUTTON_SELECT: #else case BUTTON_PLAY: @@ -1200,9 +1210,13 @@ bool dbg_cpufreq(void) set_cpu_frequency(CPUFREQ_DEFAULT); boost_counter = 0; break; - + +#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) + case BUTTON_LEFT: +#else case SETTINGS_CANCEL: case SETTINGS_OK2: +#endif return false; } } |