nrf52832 sdk15.3复位源检查
nrf52832复位源寄存器调用sd_power_reset_reason_get函数获取复位源信息,调用sd_power_reset_reason_clr函数清除复位源信息,上电调用一次即可,如果未调用sd_power_reset_reason_clr函数,将获取不到之后的其它复位源,因为它一直保留了第一次的Pin Reset复位源信息sd_power_reset_reason_get(&
·
-
nrf52832复位源寄存器
调用sd_power_reset_reason_get函数获取复位源信息,调用
sd_power_reset_reason_clr函数清除复位源信息,上电调用一次即可,
如果未调用sd_power_reset_reason_clr函数,将获取不到之后的其它复位源,因为它一直保留了第一次的Pin Reset复位源信息
sd_power_reset_reason_get(&reset_source);
sd_power_reset_reason_clr(reset_source);
NRF_LOG_INFO("reset source %x",reset_source);
更多推荐
已为社区贡献6条内容
所有评论(0)