8000 stm32/stm32_it: Enable PVD_PVM_IRQHandler for WB and WL MCUs. · mzdaniel/micropython@185116e · GitHub
[go: up one dir, main page]

Skip to content

Commit 185116e

Browse files
pi-anldpgeorge
authored andcommitted
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 micropython#15548. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
1 parent 5e8d35a commit 185116e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/stm32_it.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void PVD_IRQHandler(void) {
514514
IRQ_EXIT(PVD_IRQn);
515515
}
516516

517-
#if defined(STM32L4)
517+
#if defined(STM32L4) || defined(STM32WB) || defined(STM32WL)
518518
void PVD_PVM_IRQHandler(void) {
519519
IRQ_ENTER(PVD_PVM_IRQn);
520520
Handle_EXTI_Irq(EXTI_PVD_OUTPUT);

0 commit comments

Comments
 (0)
0