fixing port I

This commit is contained in:
rusefillc 2021-01-25 00:29:48 -05:00
parent 9eabac12f5
commit cbca40dec0
1 changed files with 12 additions and 0 deletions

View File

@ -130,6 +130,18 @@ static int getPortIndex(ioportid_t port) {
if (port == GPIOH)
return 7;
#endif /* STM32_HAS_GPIOH */
#if STM32_HAS_GPIOI
if (port == GPIOI)
return 8;
#endif /* STM32_HAS_GPIOI */
#if STM32_HAS_GPIOJ
if (port == GPIOJ)
return 9;
#endif /* STM32_HAS_GPIOJ */
#if STM32_HAS_GPIOK
if (port == GPIOK)
return 10;
#endif /* STM32_HAS_GPIOK */
firmwareError(CUSTOM_ERR_UNKNOWN_PORT, "unknown port");
return -1;
}