summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 267f548d87..619d38c6d2 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1049,7 +1049,9 @@ bool dbg_ports(void)
1049 lcd_puts(0, line++, buf); 1049 lcd_puts(0, line++, buf);
1050 snprintf(buf, sizeof(buf), "GPIO_D: %02x", gpio_d); 1050 snprintf(buf, sizeof(buf), "GPIO_D: %02x", gpio_d);
1051 lcd_puts(0, line++, buf); 1051 lcd_puts(0, line++, buf);
1052 1052 unsigned hehe = 0x12345678;
1053 snprintf(buf, sizeof(buf), "%x %x", hehe, swap32(hehe));
1054 lcd_puts(0, line++, buf);
1053 lcd_update(); 1055 lcd_update();
1054 button = button_get_w_tmo(HZ/10); 1056 button = button_get_w_tmo(HZ/10);
1055 1057
@@ -1183,16 +1185,24 @@ bool dbg_cpufreq(void)
1183 1185
1184 switch(button) 1186 switch(button)
1185 { 1187 {
1188#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)
1189 case BUTTON_MENU:
1190#else
1186 case BUTTON_UP: 1191 case BUTTON_UP:
1192#endif
1187 cpu_boost(true); 1193 cpu_boost(true);
1188 break; 1194 break;
1189 1195#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)
1196 case BUTTON_PLAY:
1197#else
1190 case BUTTON_DOWN: 1198 case BUTTON_DOWN:
1199#endif
1191 cpu_boost(false); 1200 cpu_boost(false);
1192 break; 1201 break;
1193 1202
1194#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ 1203#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
1195 (CONFIG_KEYPAD == IRIVER_H300_PAD) 1204 (CONFIG_KEYPAD == IRIVER_H300_PAD) || \
1205 (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)
1196 case BUTTON_SELECT: 1206 case BUTTON_SELECT:
1197#else 1207#else
1198 case BUTTON_PLAY: 1208 case BUTTON_PLAY:
@@ -1200,9 +1210,13 @@ bool dbg_cpufreq(void)
1200 set_cpu_frequency(CPUFREQ_DEFAULT); 1210 set_cpu_frequency(CPUFREQ_DEFAULT);
1201 boost_counter = 0; 1211 boost_counter = 0;
1202 break; 1212 break;
1203 1213
1214#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)
1215 case BUTTON_LEFT:
1216#else
1204 case SETTINGS_CANCEL: 1217 case SETTINGS_CANCEL:
1205 case SETTINGS_OK2: 1218 case SETTINGS_OK2:
1219#endif
1206 return false; 1220 return false;
1207 } 1221 }
1208 } 1222 }