#include "lynq_alarm.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
int rtc_id = 0; | |
rtc_id = lynq_rtc_service_init(); | |
if(rtc_id == -1) | |
{ | |
printf("init fail\n"); | |
return 0; | |
} | |
lynq_set_poweralarm(60, rtc_id); | |
lynq_rtc_service_deinit(); | |
return 0; | |
} | |