Commit 185116ea authored by Andrew Leech's avatar Andrew Leech Committed by Damien George

stm32/stm32_it: Enable PVD_PVM_IRQHandler for WB and WL MCUs.

There is a gap in support for the PVD interrupt on STM32WBxx and STM32WLxx.
This has been tested on NUCLEO_WB55 with the example code:

    from pyb import Pin, ExtInt

    def callback(line):
        print(line)

    PVD = 16
    exti = ExtInt(PVD, ExtInt.IRQ_RISING_FALLING, Pin.PULL_DOWN, callback)

    exti.swint()

Before this commit the CPU locks up as soon as the final line is run.
After this commit it prints "16".

Fixes issue #15548.
Signed-off-by: default avatarAndrew Leech <andrew.leech@planetinnovation.com.au>
parent 5e8d35af
......@@ -514,7 +514,7 @@ void PVD_IRQHandler(void) {
IRQ_EXIT(PVD_IRQn);
}
#if defined(STM32L4)
#if defined(STM32L4) || defined(STM32WB) || defined(STM32WL)
void PVD_PVM_IRQHandler(void) {
IRQ_ENTER(PVD_PVM_IRQn);
Handle_EXTI_Irq(EXTI_PVD_OUTPUT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment