/* Enable RTC Timer wake-up function that chip can be waken up from power down mode by Time Tick or Alarm Match.  */
void RTCWakeupEnable(void)
/* Enable RTC Timer wake-up function that chip can be waken up from power down mode by Time Tick or Alarm Match.  */
void RTCWakeupEnable(void)
{
    xHWREG(RTC_CR) |= RTC_CR_WPE;
    xHWREG(RTC_IER) |= RTC_IER_WPON;}