休眠后IO无法唤醒
您的好,如题,我现在设置了ARCH_EXT_SLEEP_ON,单片机启动后调用函数:
空白app_button_enable(空白)
{
app_easy_wakeup_set (app_wakeup_cb);
wkupct_register_callback (wake_task_cb);
wkupct_enable_irq (WKUPCT_PIN_SELECT (GPIO_HUOER_PORT GPIO_HUOER_PIN),
wkupct_pin_polarization (GPIO_HUOER_PORT, GPIO_HUOER_PIN, WKUPCT_PIN_POLARITY_LOW), //极性低
1, // 1事件
40);//调试时间= 40
}
休眠时调用:
空白set_sleep(空白)
{
arch_ble_ext_wakeup_on ();
arch_set_sleep_mode (ARCH_EXT_SLEEP_ON);
}