arch/arm/src/tiva: LM3S, LM4F, TM4C: Fix GPIO IRQ error, ports R, S, T. Preprocessor logic for CONFIG_TIVA_GPIOx_IRQS was setting/clearing port Q defines when it should act on ports R, S, T. gpioport2irq() was missing handling for port T.

This commit is contained in:
Nathan Hartman 2019-08-04 16:55:26 -06:00 committed by Gregory Nutt
parent 68d43d3679
commit 5f76eb1207
5 changed files with 20 additions and 12 deletions

View File

@ -95,13 +95,13 @@
# undef CONFIG_TIVA_GPIOQ_IRQS
#endif
#if TIVA_NPORTS < 16
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOR_IRQS
#endif
#if TIVA_NPORTS < 17
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOS_IRQS
#endif
#if TIVA_NPORTS < 18
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOT_IRQS
#endif
/* Processor Exceptions (vectors 0-15) */

View File

@ -237,6 +237,14 @@ static int gpioport2irq(uint8_t port)
}
break;
#endif
#ifdef CONFIG_TIVA_GPIOT_IRQS
case (GPIO_PORTT >> GPIO_PORT_SHIFT):
{
irq = TIVA_IRQ_GPIOT;
}
break;
#endif
}
return irq;

View File

@ -114,13 +114,13 @@
# undef CONFIG_TIVA_GPIOQ_IRQS
#endif
#if TIVA_NPORTS < 16
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOR_IRQS
#endif
#if TIVA_NPORTS < 17
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOS_IRQS
#endif
#if TIVA_NPORTS < 18
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOT_IRQS
#endif
/* Bit-encoded input to tiva_configgpio() ***********************************/

View File

@ -114,13 +114,13 @@
# undef CONFIG_TIVA_GPIOQ_IRQS
#endif
#if TIVA_NPORTS < 16
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOR_IRQS
#endif
#if TIVA_NPORTS < 17
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOS_IRQS
#endif
#if TIVA_NPORTS < 18
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOT_IRQS
#endif
/* Bit-encoded input to tiva_configgpio() ***********************************/

View File

@ -100,13 +100,13 @@
# undef CONFIG_TIVA_GPIOQ_IRQS
#endif
#if TIVA_NPORTS < 16
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOR_IRQS
#endif
#if TIVA_NPORTS < 17
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOS_IRQS
#endif
#if TIVA_NPORTS < 18
# undef CONFIG_TIVA_GPIOQ_IRQS
# undef CONFIG_TIVA_GPIOT_IRQS
#endif
/* Bit-encoded input to tiva_configgpio() ***********************************/