TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310: 重启原因

Part Number:CC1310

有没有什么函数可以获取到CC1310重启的原因(例如上电重启或者看门狗重启)

Galaxy Yue:

您好,

https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_1GHz_group__sysctrl__api.html

SysCtrlResetSourceGet

这个函数可以

#defineRSTSRC_PWR_ON(( AON_SYSCTL_RESETCTL_RESET_SRC_PWR_ON >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_PIN_RESET(( AON_SYSCTL_RESETCTL_RESET_SRC_PIN_RESET >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_VDDS_LOSS(( AON_SYSCTL_RESETCTL_RESET_SRC_VDDS_LOSS >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_VDD_LOSS(( AON_SYSCTL_RESETCTL_RESET_SRC_VDD_LOSS >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_VDDR_LOSS(( AON_SYSCTL_RESETCTL_RESET_SRC_VDDR_LOSS >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_CLK_LOSS(( AON_SYSCTL_RESETCTL_RESET_SRC_CLK_LOSS >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_SYSRESET(( AON_SYSCTL_RESETCTL_RESET_SRC_SYSRESET >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_WARMRESET(( AON_SYSCTL_RESETCTL_RESET_SRC_WARMRESET >> AON_SYSCTL_RESETCTL_RESET_SRC_S ))#defineRSTSRC_WAKEUP_FROM_SHUTDOWN(( AON_SYSCTL_RESETCTL_RESET_SRC_M >> AON_SYSCTL_RESETCTL_RESET_SRC_S ) + 1 )

赞(0)
未经允许不得转载:TI中文支持网 » CC1310: 重启原因
分享到: 更多 (0)