唤醒源
唤醒源可将GR551x芯片从低功耗模式中唤醒,包括从Idle Mode唤醒为Active Mode、从Sleep Mode唤醒为Active Mode。
Idle Mode:ARM处理器执行WFE(Wait For Event)或WFI(Wait For Interrupt)指令后进入空闲模式并保持该状态。从Idle Mode 到Active Mode的唤醒源包括:
- Reset
- NVIC Event
- Debug Event
Sleep Mode:进入睡眠模式后,只有Always-on域的模块可唤醒系统,并使系统进入热启动流程。从Sleep Mode到Active Mode的唤醒源包括:
- BLE Timer
- Sleep Timer
- Real Time Calendar
- AON GPIO
- LPCOMP
- Reset
用户可以调用SDK的API来配置唤醒源:
void pwr_mgmt_wakeup_source_setup(uint32_t wakeup_source);
唤醒源配置详情,请参考GR551x Datasheet。