]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/misc: In STM32L4x5 EXTI, consolidate 2 constants
authorInès Varhol <ines.varhol@telecom-paris.fr>
Sun, 7 Jul 2024 08:58:53 +0000 (10:58 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jul 2024 10:41:34 +0000 (11:41 +0100)
commit27d405301a676beffea4c13f5108c344fa6b8165
treefa9d6e70aa45e11c7f7b1c058069044d9eba7a78
parent0487c631801bf21e5e2ca8a54bf207fb78bd64bf
hw/misc: In STM32L4x5 EXTI, consolidate 2 constants

Up until now, the EXTI implementation had 16 inbound GPIOs connected to
the 16 outbound GPIOs of STM32L4x5 SYSCFG.
The EXTI actually handles 40 lines (namely 5 from STM32L4x5 USART
devices which are already implemented in QEMU).
In order to connect USART devices to EXTI, this commit consolidates
constants `EXTI_NUM_INTERRUPT_OUT_LINES` (40) and
`EXTI_NUM_GPIO_EVENT_IN_LINES` (16) into `EXTI_NUM_LINES` (40).

Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240707085927.122867-2-ines.varhol@telecom-paris.fr
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/stm32l4x5_exti.c
include/hw/misc/stm32l4x5_exti.h