Hellen needs text representation of GPIOI

H7 dreams are asking for J and K
This commit is contained in:
rusefillc 2021-01-22 01:25:05 -05:00
parent 1c410364c3
commit aaa9f2a608
1 changed files with 12 additions and 0 deletions

View File

@ -74,6 +74,18 @@ const char *portname(ioportid_t GPIOx) {
if (GPIOx == GPIOH)
return "PH";
#endif /* STM32_HAS_GPIOH */
#if STM32_HAS_GPIOI
if (GPIOx == GPIOI)
return "PI";
#endif /* STM32_HAS_GPIOI */
#if STM32_HAS_GPIOJ
if (GPIOx == GPIOJ)
return "PJ";
#endif /* STM32_HAS_GPIOJ */
#if STM32_HAS_GPIOK
if (GPIOx == GPIOK)
return "PK";
#endif /* STM32_HAS_GPIOK */
return "unknown";
}