rendered paste bodyIndex: firmware/target/arm/as3525/debug-as3525.c
===================================================================
--- firmware/target/arm/as3525/debug-as3525.c (revision 27160)
+++ firmware/target/arm/as3525/debug-as3525.c (working copy)
@@ -260,6 +260,8 @@
int last_sd = 0;
#endif
#endif /* CONFIG_CPU == AS3525 */
+ unsigned char buf[16];
+ int i;
lcd_clear_display();
lcd_setfont(FONT_SYSFIXED);
@@ -385,14 +387,29 @@
lcd_clear_display();
line = 0;
+#if 0
lcd_putsf(0, line++, "CGU_PLLA :%8x", (unsigned int)(CGU_PLLA));
+ lcd_putsf(0, line++, "CGU_PLLASUP%8x", (unsigned int)(CGU_PLLASUP));
lcd_putsf(0, line++, "CGU_PLLB :%8x", (unsigned int)(CGU_PLLB));
+ lcd_putsf(0, line++, "CGU_PLLBSUP%8x", (unsigned int)(CGU_PLLBSUP));
lcd_putsf(0, line++, "CGU_PROC :%8x", (unsigned int)(CGU_PROC));
lcd_putsf(0, line++, "CGU_PERI :%8x", (unsigned int)(CGU_PERI));
lcd_putsf(0, line++, "CGU_IDE :%8x", (unsigned int)(CGU_IDE));
lcd_putsf(0, line++, "CGU_DBOP :%8x", (unsigned int)(CGU_DBOP));
lcd_putsf(0, line++, "CGU_AUDIO :%8x", (unsigned int)(CGU_AUDIO));
lcd_putsf(0, line++, "CGU_USB :%8x", (unsigned int)(CGU_USB));
+#else
+ ascodec_read(0);
+ int oldstatus = disable_irq_save();
+ for (i = 0; i < 16; i++) {
+ buf[i] = ascodec_read(AS3543_WAKEUP);
+ }
+ restore_irq(oldstatus);
+ for (i = 0; i < 16; i += 4) {
+ lcd_putsf(0, line++, "%02X: %02X %02X %02X %02X",
+ i, buf[i+0], buf[i+1], buf[i+2], buf[i+3]);
+ }
+#endif
#if LCD_HEIGHT < 176 /* clip */
lcd_update();