diff options
-rw-r--r-- | apps/debug_menu.c | 8 | ||||
-rw-r--r-- | firmware/export/pp5002.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index aa4a397a63..301fca834b 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -630,6 +630,11 @@ static bool dbg_hw_info(void) | |||
630 | #elif CONFIG_CPU == PP5002 | 630 | #elif CONFIG_CPU == PP5002 |
631 | int line = 0; | 631 | int line = 0; |
632 | char buf[32]; | 632 | char buf[32]; |
633 | char pp_version[] = { (PP_VER4 >> 8) & 0xff, PP_VER4 & 0xff, | ||
634 | (PP_VER3 >> 8) & 0xff, PP_VER3 & 0xff, | ||
635 | (PP_VER2 >> 8) & 0xff, PP_VER2 & 0xff, | ||
636 | (PP_VER1 >> 8) & 0xff, PP_VER1 & 0xff, '\0' }; | ||
637 | |||
633 | 638 | ||
634 | lcd_setmargins(0, 0); | 639 | lcd_setmargins(0, 0); |
635 | lcd_setfont(FONT_SYSFIXED); | 640 | lcd_setfont(FONT_SYSFIXED); |
@@ -642,6 +647,9 @@ static bool dbg_hw_info(void) | |||
642 | lcd_puts(0, line++, buf); | 647 | lcd_puts(0, line++, buf); |
643 | #endif | 648 | #endif |
644 | 649 | ||
650 | snprintf(buf, sizeof(buf), "PP version: %s", pp_version); | ||
651 | lcd_puts(0, line++, buf); | ||
652 | |||
645 | snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck()); | 653 | snprintf(buf, sizeof(buf), "Est. clock (kHz): %d", perfcheck()); |
646 | lcd_puts(0, line++, buf); | 654 | lcd_puts(0, line++, buf); |
647 | 655 | ||
diff --git a/firmware/export/pp5002.h b/firmware/export/pp5002.h index 021c248690..6076703f1a 100644 --- a/firmware/export/pp5002.h +++ b/firmware/export/pp5002.h | |||
@@ -136,6 +136,11 @@ | |||
136 | #define TIMING1_CTL (*(volatile unsigned long *)(0xcf004000)) | 136 | #define TIMING1_CTL (*(volatile unsigned long *)(0xcf004000)) |
137 | #define TIMING2_CTL (*(volatile unsigned long *)(0xcf004008)) | 137 | #define TIMING2_CTL (*(volatile unsigned long *)(0xcf004008)) |
138 | 138 | ||
139 | #define PP_VER1 (*(volatile unsigned long *)(0xcf004030)) | ||
140 | #define PP_VER2 (*(volatile unsigned long *)(0xcf004034)) | ||
141 | #define PP_VER3 (*(volatile unsigned long *)(0xcf004038)) | ||
142 | #define PP_VER4 (*(volatile unsigned long *)(0xcf00403c)) | ||
143 | |||
139 | #define CPU_CTL (*(volatile unsigned char *)(0xcf004054)) | 144 | #define CPU_CTL (*(volatile unsigned char *)(0xcf004054)) |
140 | #define COP_CTL (*(volatile unsigned char *)(0xcf004058)) | 145 | #define COP_CTL (*(volatile unsigned char *)(0xcf004058)) |
141 | 146 | ||