/* wait RTC last write operation finished flag set  */
void rtc_lwoff_wait(void)
/* wait RTC last write operation finished flag set  */
void rtc_lwoff_wait(void)
{
    while(RESET == (RTC_CTL & RTC_CTL_LWOFF)){
    }
}