|
|
* means "don't care" or "match all". Only the tm_hour, | * means "don't care" or "match all". Only the tm_hour, |
* tm_min, and tm_sec values are filled in. | * tm_min, and tm_sec values are filled in. |
*/ | */ |
|
memset(&wtime, 0, sizeof(struct rtc_time)); |
ds1286_get_alm_time(&wtime); | ds1286_get_alm_time(&wtime); |
break; | break; |
} | } |
|
|
} | } |
case RTC_RD_TIME: /* Read the time/date from RTC */ | case RTC_RD_TIME: /* Read the time/date from RTC */ |
{ | { |
|
memset(&wtime, 0, sizeof(struct rtc_time)); |
ds1286_get_time(&wtime); | ds1286_get_time(&wtime); |
break; | break; |
} | } |