/* 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)
{
    RTCWriteEnable();
    xHWREG(RTC_TTR) |= RTC_TTR_TWKE;
}