本帖最后由 tyou 于 2021-2-4 23:14 编辑
NVIC_SetPriority(EXTI0_1_IRQn, 3);
NVIC_DisableIRQ(EXTI0_1_IRQn);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
NVIC_EnableIRQ(EXTI0_1_IRQn);
然后EXTI0中断就被执行了
这和手册不相符了吧?
另外,lptim中断屏蔽后就无法唤醒, systick suspended.
4.3.7 Stop 1 mode - Mode exit
If WFI or Return from ISR was used for entry:
Any EXTI Line configured in Interrupt mode (the corresponding EXTI Interrupt vector must be enabled in the NVIC). The interrupt source can be external interrupts or peripherals with wakeup capability. Refer to Table 48: Vector table.
|