diff options
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); |