void rtc_alarm_delete(int argc, char **argv)
{
int index = 0;
if (argc >= 2)
{
index = atoi(argv[1]);
}
switch(index)
{
case 0:
rtc_alarm_hour_delete();
break;
case 1:
rtc_alarm_minute_delete();
break;
case 2:
rtc_alarm_second_delete();
break;
case 3:
rtc_alarm_time_delete();
break;
default:
break;
}
}
MSH_CMD_EXPORT(rtc_gettime, rtc get time);
MSH_CMD_EXPORT(rtc_alarm_create, rtc alarm_create);
MSH_CMD_EXPORT(rtc_alarm_delete, rtc alarm_delete);
MSH_CMD_EXPORT(rtc_alarm_start, rtc alarm_start);
MSH_CMD_EXPORT(rtc_alarm_stop, rtc alarm_stop);
#endif
|