summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRani Hod <raenye@gmail.com>2006-08-11 17:39:34 +0000
committerRani Hod <raenye@gmail.com>2006-08-11 17:39:34 +0000
commitd159ae54b616a21c1a087ea578ff42914d88dc3a (patch)
tree1417e260dbc7d6902c34a1792d7421531399b748 /apps
parent71dc284b5d4f7bfd27fb50fd91184d2d5f70db21 (diff)
support for more detailed FM radio debug info and for X5 flash debug
info. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10530 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 6329977765..e79e88de76 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -61,6 +61,7 @@
#include "peakmeter.h"
#endif
#ifdef CONFIG_TUNER
+#include "tuner.h"
#include "radio.h"
#endif
#ifdef HAVE_MMC
@@ -497,7 +498,7 @@ bool dbg_hw_info(void)
if(button == SETTINGS_CANCEL)
return false;
}
-#elif CONFIG_CPU == MCF5249
+#elif CONFIG_CPU == MCF5249 || CONFIG_CPU == MCF5250
char buf[32];
int button;
unsigned manu, id; /* flash IDs */
@@ -1987,14 +1988,29 @@ bool dbg_fm_radio(void)
while(1)
{
+ int row = 0;
+ unsigned long regs;
+
lcd_clear_display();
fm_detected = radio_hardware_present();
snprintf(buf, sizeof buf, "HW detected: %s", fm_detected?"yes":"no");
- lcd_puts(0, 0, buf);
+ lcd_puts(0, row++, buf);
+
+#if (CONFIG_TUNER & S1A0903X01)
+ regs = samsung_get(RADIO_ALL);
+ snprintf(buf, sizeof buf, "Samsung regs: %08lx", regs);
+ lcd_puts(0, row++, buf);
+#endif
+#if (CONFIG_TUNER & TEA5767)
+ regs = philips_get(RADIO_ALL);
+ snprintf(buf, sizeof buf, "Philips regs: %08lx", regs);
+ lcd_puts(0, row++, buf);
+#endif
+
lcd_update();
- button = button_get(true);
+ button = button_get_w_tmo(HZ);
switch(button)
{