diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 1814bfbb7c..fce3e7aaf8 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1118,23 +1118,35 @@ bool dbg_ports(void) | |||
1118 | { | 1118 | { |
1119 | line = 0; | 1119 | line = 0; |
1120 | #if (LCD_HEIGHT >= 176) /* Only for displays with appropriate height. */ | 1120 | #if (LCD_HEIGHT >= 176) /* Only for displays with appropriate height. */ |
1121 | lcd_puts(0, line++, "GPIO ENABLE:"); | 1121 | lcd_puts(0, line++, "GPIO ENABLE: GPIO OUTPUT ENABLE:"); |
1122 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x", | 1122 | lcd_putsf(0, line++, "A: %02x E: %02x I: %02x A: %02x E: %02x I: %02x", |
1123 | (unsigned int)GPIOA_ENABLE, | 1123 | (unsigned int)GPIOA_ENABLE, |
1124 | (unsigned int)GPIOE_ENABLE, | 1124 | (unsigned int)GPIOE_ENABLE, |
1125 | (unsigned int)GPIOI_ENABLE); | 1125 | (unsigned int)GPIOI_ENABLE, |
1126 | lcd_putsf(0, line++, "B: %02x F: %02x J: %02x", | 1126 | (unsigned int)GPIOA_OUTPUT_EN, |
1127 | (unsigned int)GPIOE_OUTPUT_EN, | ||
1128 | (unsigned int)GPIOI_OUTPUT_EN); | ||
1129 | lcd_putsf(0, line++, "B: %02x F: %02x J: %02x B: %02x F: %02x J: %02x", | ||
1127 | (unsigned int)GPIOB_ENABLE, | 1130 | (unsigned int)GPIOB_ENABLE, |
1128 | (unsigned int)GPIOF_ENABLE, | 1131 | (unsigned int)GPIOF_ENABLE, |
1129 | (unsigned int)GPIOJ_ENABLE); | 1132 | (unsigned int)GPIOJ_ENABLE, |
1130 | lcd_putsf(0, line++, "C: %02x G: %02x K: %02x", | 1133 | (unsigned int)GPIOB_OUTPUT_EN, |
1134 | (unsigned int)GPIOF_OUTPUT_EN, | ||
1135 | (unsigned int)GPIOJ_OUTPUT_EN); | ||
1136 | lcd_putsf(0, line++, "C: %02x G: %02x K: %02x C: %02x G: %02x K: %02x", | ||
1131 | (unsigned int)GPIOC_ENABLE, | 1137 | (unsigned int)GPIOC_ENABLE, |
1132 | (unsigned int)GPIOG_ENABLE, | 1138 | (unsigned int)GPIOG_ENABLE, |
1133 | (unsigned int)GPIOK_ENABLE); | 1139 | (unsigned int)GPIOK_ENABLE, |
1134 | lcd_putsf(0, line++, "D: %02x H: %02x L: %02x", | 1140 | (unsigned int)GPIOC_OUTPUT_EN, |
1141 | (unsigned int)GPIOG_OUTPUT_EN, | ||
1142 | (unsigned int)GPIOK_OUTPUT_EN); | ||
1143 | lcd_putsf(0, line++, "D: %02x H: %02x L: %02x D: %02x H: %02x L: %02x", | ||
1135 | (unsigned int)GPIOD_ENABLE, | 1144 | (unsigned int)GPIOD_ENABLE, |
1136 | (unsigned int)GPIOH_ENABLE, | 1145 | (unsigned int)GPIOH_ENABLE, |
1137 | (unsigned int)GPIOL_ENABLE); | 1146 | (unsigned int)GPIOL_ENABLE, |
1147 | (unsigned int)GPIOD_OUTPUT_EN, | ||
1148 | (unsigned int)GPIOH_OUTPUT_EN, | ||
1149 | (unsigned int)GPIOL_OUTPUT_EN); | ||
1138 | line++; | 1150 | line++; |
1139 | #endif | 1151 | #endif |
1140 | lcd_puts(0, line++, "GPIO INPUT VAL:"); | 1152 | lcd_puts(0, line++, "GPIO INPUT VAL:"); |