summaryrefslogtreecommitdiffstats
path: root/firmware/target/sh
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh')
-rw-r--r--firmware/target/sh/system-sh.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/target/sh/system-sh.c b/firmware/target/sh/system-sh.c
index 24821095e8..e054801b57 100644
--- a/firmware/target/sh/system-sh.c
+++ b/firmware/target/sh/system-sh.c
@@ -299,10 +299,18 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
asm volatile ("sts\tpr,%0" : "=r"(n));
/* clear screen */
- lcd_clear_display();
#ifdef HAVE_LCD_BITMAP
+#if LCD_DEPTH > 1
+ lcd_set_backdrop(NULL);
+ lcd_set_drawmode(DRMODE_SOLID);
+ lcd_set_foreground(LCD_BLACK);
+ lcd_set_background(LCD_WHITE);
+#endif
lcd_setfont(FONT_SYSFIXED);
+ lcd_set_viewport(NULL);
#endif
+
+ lcd_clear_display();
/* output exception */
n = (n - (unsigned)UIE4 + 12)>>2; /* get exception or interrupt number */
lcd_putsf(0, 0, "I%02x:%s", n, irqname[n]);