File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,11 @@ static void printBoardInfo(void){
242
242
static void printPerimanInfo (void ){
243
243
chip_report_printf (" GPIO Info:\n " );
244
244
chip_report_printf (" ------------------------------------------\n " );
245
+ #if defined(BOARD_HAS_PIN_REMAP) && !defined(BOARD_USES_HW_GPIO_NUMBERS)
246
+ chip_report_printf (" DPIN|GPIO : BUS_TYPE[bus/unit][chan]\n " );
247
+ #else
245
248
chip_report_printf (" GPIO : BUS_TYPE[bus/unit][chan]\n " );
249
+ #endif
246
250
chip_report_printf (" -------------------------------------- \n " );
247
251
for (uint8_t i = 0 ; i < SOC_GPIO_PIN_COUNT; i++){
248
252
if (!perimanPinIsValid (i)){
@@ -253,7 +257,16 @@ static void printPerimanInfo(void){
253
257
continue ;// unused pin
254
258
}
255
259
const char * extra_type = perimanGetPinBusExtraType (i);
260
+ #if defined(BOARD_HAS_PIN_REMAP) && !defined(BOARD_USES_HW_GPIO_NUMBERS)
261
+ int dpin = gpioNumberToDigitalPin (i);
262
+ if (dpin < 0 ) {
263
+ continue ;// pin is not exported
264
+ } else {
265
+ chip_report_printf (" D%-3d|%4u : " , dpin, i);
266
+ }
267
+ #else
256
268
chip_report_printf (" %4u : " , i);
269
+ #endif
257
270
if (extra_type){
258
271
chip_report_printf (" %s" , extra_type);
259
272
}
You can’t perform that action at this time.
0 commit comments