mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/misc: In STM32L4x5 EXTI, correct configurable interrupts
The implementation of configurable interrupts (interrupts supporting edge selection) was incorrectly expecting alternating input levels : this commits adds a new status field `irq_levels` to actually detect edges. Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr> Message-id: 20240629110800.539969-2-ines.varhol@telecom-paris.fr Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7d9b3c34f3
commit
9c4887e3b6
2 changed files with 15 additions and 15 deletions
|
@ -45,6 +45,8 @@ struct Stm32l4x5ExtiState {
|
|||
uint32_t swier[EXTI_NUM_REGISTER];
|
||||
uint32_t pr[EXTI_NUM_REGISTER];
|
||||
|
||||
/* used for edge detection */
|
||||
uint32_t irq_levels[EXTI_NUM_REGISTER];
|
||||
qemu_irq irq[EXTI_NUM_INTERRUPT_OUT_LINES];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue