summaryrefslogtreecommitdiff
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
parent71dc284b5d4f7bfd27fb50fd91184d2d5f70db21 (diff)
downloadrockbox-d159ae54b616a21c1a087ea578ff42914d88dc3a.tar.gz
rockbox-d159ae54b616a21c1a087ea578ff42914d88dc3a.zip
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
-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 @@
61#include "peakmeter.h" 61#include "peakmeter.h"
62#endif 62#endif
63#ifdef CONFIG_TUNER 63#ifdef CONFIG_TUNER
64#include "tuner.h"
64#include "radio.h" 65#include "radio.h"
65#endif 66#endif
66#ifdef HAVE_MMC 67#ifdef HAVE_MMC
@@ -497,7 +498,7 @@ bool dbg_hw_info(void)
497 if(button == SETTINGS_CANCEL) 498 if(button == SETTINGS_CANCEL)
498 return false; 499 return false;
499 } 500 }
500#elif CONFIG_CPU == MCF5249 501#elif CONFIG_CPU == MCF5249 || CONFIG_CPU == MCF5250
501 char buf[32]; 502 char buf[32];
502 int button; 503 int button;
503 unsigned manu, id; /* flash IDs */ 504 unsigned manu, id; /* flash IDs */
@@ -1987,14 +1988,29 @@ bool dbg_fm_radio(void)
1987 1988
1988 while(1) 1989 while(1)
1989 { 1990 {
1991 int row = 0;
1992 unsigned long regs;
1993
1990 lcd_clear_display(); 1994 lcd_clear_display();
1991 fm_detected = radio_hardware_present(); 1995 fm_detected = radio_hardware_present();
1992 1996
1993 snprintf(buf, sizeof buf, "HW detected: %s", fm_detected?"yes":"no"); 1997 snprintf(buf, sizeof buf, "HW detected: %s", fm_detected?"yes":"no");
1994 lcd_puts(0, 0, buf); 1998 lcd_puts(0, row++, buf);
1999
2000#if (CONFIG_TUNER & S1A0903X01)
2001 regs = samsung_get(RADIO_ALL);
2002 snprintf(buf, sizeof buf, "Samsung regs: %08lx", regs);
2003 lcd_puts(0, row++, buf);
2004#endif
2005#if (CONFIG_TUNER & TEA5767)
2006 regs = philips_get(RADIO_ALL);
2007 snprintf(buf, sizeof buf, "Philips regs: %08lx", regs);
2008 lcd_puts(0, row++, buf);
2009#endif
2010
1995 lcd_update(); 2011 lcd_update();
1996 2012
1997 button = button_get(true); 2013 button = button_get_w_tmo(HZ);
1998 2014
1999 switch(button) 2015 switch(button)
2000 { 2016 {