Home
last modified time | relevance | path

Searched refs:year (Results 1 – 25 of 50) sorted by relevance

12

/hal_nxp-latest/mcux/mcux-sdk/drivers/lpc_rtc/
Dfsl_rtc.c69 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
77 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
101 seconds = ((uint32_t)datetime->year - 1970U) * DAYS_IN_A_YEAR; in RTC_ConvertDatetimeToSeconds()
103 seconds += (((uint32_t)datetime->year / 4U) - (1970U / 4U)); in RTC_ConvertDatetimeToSeconds()
110 if (((datetime->year & 3U) == 0x00U) && (datetime->month <= 2U)) in RTC_ConvertDatetimeToSeconds()
153 datetime->year = YEAR_RANGE_START; in RTC_ConvertSecondsToDatetime()
158 datetime->year++; in RTC_ConvertSecondsToDatetime()
161 if ((datetime->year & 3U) != 0x00U) in RTC_ConvertSecondsToDatetime()
172 if ((datetime->year & 3U) == 0x00U) in RTC_ConvertSecondsToDatetime()
/hal_nxp-latest/mcux/mcux-sdk/drivers/rtc_1/
Dfsl_rtc.c75 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
83 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
107 seconds = ((uint32_t)datetime->year - 1970U) * DAYS_IN_A_YEAR; in RTC_ConvertDatetimeToSeconds()
109 seconds += (((uint32_t)datetime->year / 4U) - (1970U / 4U)); in RTC_ConvertDatetimeToSeconds()
116 if (((datetime->year & 3U) == 0x00U) && (datetime->month <= 2U)) in RTC_ConvertDatetimeToSeconds()
159 datetime->year = YEAR_RANGE_START; in RTC_ConvertSecondsToDatetime()
164 datetime->year++; in RTC_ConvertSecondsToDatetime()
167 if ((datetime->year & 3U) != 0x00U) in RTC_ConvertSecondsToDatetime()
178 if ((datetime->year & 3U) == 0x00U) in RTC_ConvertSecondsToDatetime()
/hal_nxp-latest/mcux/mcux-sdk/drivers/snvs_hp/
Dfsl_snvs_hp.c108 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in SNVS_HP_CheckDatetimeFormat()
116 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in SNVS_HP_CheckDatetimeFormat()
140 seconds = (((uint32_t)datetime->year - 1970U) * DAYS_IN_A_YEAR); in SNVS_HP_ConvertDatetimeToSeconds()
142 seconds += (((uint32_t)datetime->year / 4U) - (1970U / 4U)); in SNVS_HP_ConvertDatetimeToSeconds()
149 if ((0U == (datetime->year & 3U)) && (datetime->month <= 2U)) in SNVS_HP_ConvertDatetimeToSeconds()
191 datetime->year = YEAR_RANGE_START; in SNVS_HP_ConvertSecondsToDatetime()
196 datetime->year++; in SNVS_HP_ConvertSecondsToDatetime()
199 if ((datetime->year & 3U) != 0U) in SNVS_HP_ConvertSecondsToDatetime()
210 if (0U == (datetime->year & 3U)) in SNVS_HP_ConvertSecondsToDatetime()
/hal_nxp-latest/mcux/mcux-sdk/drivers/irtc/
Dfsl_irtc.c77 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in IRTC_CheckDatetimeFormat()
87 …if (((0U == (datetime->year & 3U)) && (0U != (datetime->year % 100U))) || (0U == (datetime->year %… in IRTC_CheckDatetimeFormat()
296 if (datetime->year < IRTC_BASE_YEAR) in IRTC_SetDatetime()
300 …RTC_YEARMON_YROFST(0x100U + datetime->year - IRTC_BASE_YEAR) | RTC_YEARMON_MON_CNT(datetime->month… in IRTC_SetDatetime()
305 …base->YEARMON = RTC_YEARMON_YROFST(datetime->year - IRTC_BASE_YEAR) | RTC_YEARMON_MON_CNT(datetime… in IRTC_SetDatetime()
337 datetime->year = in IRTC_GetDatetime()
374 if (alarmTime->year < IRTC_BASE_YEAR) in IRTC_SetAlarm()
376 … base->ALM_YEARMON = RTC_ALM_YEARMON_ALM_YEAR(0x100U + alarmTime->year - IRTC_BASE_YEAR) | in IRTC_SetAlarm()
382 …RTC_ALM_YEARMON_ALM_YEAR(alarmTime->year - IRTC_BASE_YEAR) | RTC_ALM_YEARMON_ALM_MON(alarmTime->mo… in IRTC_SetAlarm()
414 datetime->year = in IRTC_GetAlarm()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/rtc/
Dfsl_rtc.c80 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
88 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
112 seconds = ((uint32_t)datetime->year - 1970U) * DAYS_IN_A_YEAR; in RTC_ConvertDatetimeToSeconds()
114 seconds += (((uint32_t)datetime->year / 4U) - (1970U / 4U)); in RTC_ConvertDatetimeToSeconds()
121 if ((0U == (datetime->year & 3U)) && (datetime->month <= 2U)) in RTC_ConvertDatetimeToSeconds()
163 datetime->year = YEAR_RANGE_START; in RTC_ConvertSecondsToDatetime()
168 datetime->year++; in RTC_ConvertSecondsToDatetime()
171 if (0U != (datetime->year & 3U)) in RTC_ConvertSecondsToDatetime()
182 if (0U == (datetime->year & 3U)) in RTC_ConvertSecondsToDatetime()
/hal_nxp-latest/mcux/mcux-sdk/drivers/snvs_lp/
Dfsl_snvs_lp.c103 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in SNVS_LP_CheckDatetimeFormat()
111 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in SNVS_LP_CheckDatetimeFormat()
135 seconds = ((uint32_t)datetime->year - 1970U) * DAYS_IN_A_YEAR; in SNVS_LP_ConvertDatetimeToSeconds()
137 seconds += (((uint32_t)datetime->year / 4U) - (1970U / 4U)); in SNVS_LP_ConvertDatetimeToSeconds()
144 if ((0U == (datetime->year & 3U)) && (datetime->month <= 2U)) in SNVS_LP_ConvertDatetimeToSeconds()
186 datetime->year = YEAR_RANGE_START; in SNVS_LP_ConvertSecondsToDatetime()
191 datetime->year++; in SNVS_LP_ConvertSecondsToDatetime()
194 if ((datetime->year & 3U) != 0U) in SNVS_LP_ConvertSecondsToDatetime()
205 if (0U == (datetime->year & 3U)) in SNVS_LP_ConvertSecondsToDatetime()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX3/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
Dtimer_api.h259 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon,
275 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon,
307 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon,
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX3/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
Dtimer_api.h259 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon,
275 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon,
307 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon,
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX1/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
Dtimer_api.h259 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon,
275 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon,
307 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon,
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX6/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX5/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QM6/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX2/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX4/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX6/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
Dtimer_api.h259 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon,
275 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon,
307 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon,
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8QX2/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX5/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX4/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8UX5/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8UX6/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()
/hal_nxp-latest/mcux/mcux-sdk/devices/MIMX8DX1/scfw_api/svc/timer/
Dtimer_rpc_clnt.c251 sc_err_t sc_timer_set_rtc_time(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_time() argument
262 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_time()
276 sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon, in sc_timer_get_rtc_time() argument
291 if (year != NULL) in sc_timer_get_rtc_time()
293 *year = (uint16_t) RPC_U16(&msg, 0U); in sc_timer_get_rtc_time()
341 sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon, in sc_timer_set_rtc_alarm() argument
352 RPC_U16(&msg, 0U) = U16(year); in sc_timer_set_rtc_alarm()

12