diff options
| author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2024-08-14 12:04:11 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-08-20 16:39:37 +1000 |
| commit | 185116ea4139e84e7f7afb27d52b14dc03f0c2a8 (patch) | |
| tree | 8f8f719e093e2d0d273a136e5384de17d51db893 | |
| parent | 5e8d35af08b620f1498a5135d25fe6d8f3e72337 (diff) | |
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: Andrew Leech <andrew.leech@planetinnovation.com.au>
| -rw-r--r-- | ports/stm32/stm32_it.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c index bc1feceb9..a910a624b 100644 --- a/ports/stm32/stm32_it.c +++ b/ports/stm32/stm32_it.c @@ -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); |
