Part Number: CC2642R
My customer has some questions about CC2642's shutdown:
1. In the definition of PowerCtrlPadSleepDisable(), there is a sentence which reads the AON_RTC_O_SYNC register. What is the purpose of this call?
__STATIC_INLINE void
PowerCtrlPadSleepDisable(void)
{
HWREG(AON_PMCTL_BASE + AON_PMCTL_O_SLEEPCTL) = 1;
HWREG(AON_RTC_BASE + AON_RTC_O_SYNC);
}
2. Where can I find the description of AON_PMCTL register? I cannot find it in the TRM.
3. The definition of RSTSRC_WAKEUP_FROM_SHUTDOWN and RSTSRC_WAKEUP_FROM_TCK_NOISE is a little confusing, can you elaborate on what is the meaning of these macros?
#define RSTSRC_WAKEUP_FROM_SHUTDOWN ((( AON_PMCTL_RESETCTL_RESET_SRC_M ) >> ( AON_PMCTL_RESETCTL_RESET_SRC_S )) + 1 ) #define RSTSRC_WAKEUP_FROM_TCK_NOISE ((( AON_PMCTL_RESETCTL_RESET_SRC_M ) >> ( AON_PMCTL_RESETCTL_RESET_SRC_S )) + 2 )
Best regards,
Shuyang