diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-05-03 14:43:43 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-05-03 14:43:43 +0000 |
commit | ed5f1ed3e21e44cf052834c7d6fd70abfd1a6196 (patch) | |
tree | 2a7ea36bf7739227091878407c1484f2a1a3cb5a /firmware/target/arm/tms320dm320/debug-dm320.c | |
parent | 5fc59065032fda288e5f64405492ba8a949819f1 (diff) | |
download | rockbox-ed5f1ed3e21e44cf052834c7d6fd70abfd1a6196.tar.gz rockbox-ed5f1ed3e21e44cf052834c7d6fd70abfd1a6196.zip |
1) add debug menu for USB & PIC
2) update keymap
3) fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17324 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/debug-dm320.c')
-rwxr-xr-x | firmware/target/arm/tms320dm320/debug-dm320.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/firmware/target/arm/tms320dm320/debug-dm320.c b/firmware/target/arm/tms320dm320/debug-dm320.c index abfb5b09bc..23257ddcc6 100755 --- a/firmware/target/arm/tms320dm320/debug-dm320.c +++ b/firmware/target/arm/tms320dm320/debug-dm320.c | |||
@@ -82,6 +82,13 @@ bool __dbg_hw_info(void) | |||
82 | lcd_puts(0, line++, buf); | 82 | lcd_puts(0, line++, buf); |
83 | snprintf(buf, sizeof(buf), " IO_CLK_MOD2: 0x%04x IO_CLK_LPCTL0: 0x%04x ", IO_CLK_MOD2, IO_CLK_LPCTL0); | 83 | snprintf(buf, sizeof(buf), " IO_CLK_MOD2: 0x%04x IO_CLK_LPCTL0: 0x%04x ", IO_CLK_MOD2, IO_CLK_LPCTL0); |
84 | lcd_puts(0, line++, buf); | 84 | lcd_puts(0, line++, buf); |
85 | lcd_puts(0, line++, "Interrupt info:"); | ||
86 | snprintf(buf, sizeof(buf), " IO_INTC_EINT0: 0x%04x IO_INTC_EINT1: 0x%04x ", IO_INTC_EINT0, IO_INTC_EINT1); | ||
87 | lcd_puts(0, line++, buf); | ||
88 | snprintf(buf, sizeof(buf), " IO_INTC_EINT2: 0x%04x IO_INTC_IRQ0: 0x%04x ", IO_INTC_EINT2, IO_INTC_IRQ0); | ||
89 | lcd_puts(0, line++, buf); | ||
90 | snprintf(buf, sizeof(buf), " IO_INTC_IRQ1: 0x%04x IO_INTC_IRQ2: 0x%04x ", IO_INTC_IRQ1, IO_INTC_IRQ2); | ||
91 | lcd_puts(0, line++, buf); | ||
85 | #endif | 92 | #endif |
86 | 93 | ||
87 | lcd_puts(0, line++, "Board revision:"); | 94 | lcd_puts(0, line++, "Board revision:"); |
@@ -130,17 +137,6 @@ bool __dbg_hw_info(void) | |||
130 | else if(button & BUTTON_RIGHT) | 137 | else if(button & BUTTON_RIGHT) |
131 | lcd_set_direct_fb(true); | 138 | lcd_set_direct_fb(true); |
132 | 139 | ||
133 | lcd_puts(0, line++, "PIC info:"); | ||
134 | snprintf(buf, sizeof(buf), " Init value 1: 0x%04x", get_debug_info(1)); | ||
135 | lcd_puts(0, line++, buf); | ||
136 | snprintf(buf, sizeof(buf), " Init value 2: 0x%04x", get_debug_info(2)); | ||
137 | lcd_puts(0, line++, buf); | ||
138 | snprintf(buf, sizeof(buf), " Last button value: 0x%04x Raw value: 0x%04x", get_debug_info(3), button_read_device()); | ||
139 | lcd_puts(0, line++, buf); | ||
140 | snprintf(buf, sizeof(buf), " Last button at: 0x%04x", get_debug_info(5)); | ||
141 | lcd_puts(0, line++, buf); | ||
142 | snprintf(buf, sizeof(buf), " Dock values: 0x%04x", get_debug_info(4)); | ||
143 | lcd_puts(0, line++, buf); | ||
144 | lcd_puts(0, line++, "LCD info:"); | 140 | lcd_puts(0, line++, "LCD info:"); |
145 | snprintf(buf, sizeof(buf), " LCD direct FB access? %s", (lcd_get_direct_fb() ? "yes" : "no")); | 141 | snprintf(buf, sizeof(buf), " LCD direct FB access? %s", (lcd_get_direct_fb() ? "yes" : "no")); |
146 | lcd_puts(0, line++, buf); | 142 | lcd_puts(0, line++, buf); |