summaryrefslogtreecommitdiff
path: root/include/soc/imx8/sc/svc/timer/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/soc/imx8/sc/svc/timer/api.h')
-rw-r--r--include/soc/imx8/sc/svc/timer/api.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/soc/imx8/sc/svc/timer/api.h b/include/soc/imx8/sc/svc/timer/api.h
index 971fdc02b82e..c9d8d71c5ef8 100644
--- a/include/soc/imx8/sc/svc/timer/api.h
+++ b/include/soc/imx8/sc/svc/timer/api.h
@@ -152,6 +152,16 @@ sc_err_t sc_timer_get_rtc_time(sc_ipc_t ipc, uint16_t *year, uint8_t *mon,
uint8_t *sec);
/*!
+ * This function gets the RTC time in seconds since 1/1/1970.
+ *
+ * @param[in] ipc IPC handle
+ * @param[out] sec pointer to return second
+ *
+ * @return Returns an error code (SC_ERR_NONE = success).
+ */
+sc_err_t sc_timer_get_rtc_sec1970(sc_ipc_t ipc, uint32_t *sec);
+
+/*!
* This function sets the RTC alarm. Only the owner of the SC_R_SYSTEM
* resource can set the alarm.
*
@@ -173,16 +183,6 @@ sc_err_t sc_timer_set_rtc_alarm(sc_ipc_t ipc, uint16_t year, uint8_t mon,
uint8_t day, uint8_t hour, uint8_t min,
uint8_t sec);
-/*!
- * This function gets the RTC time in seconds since 1/1/1970.
- *
- * @param[in] ipc IPC handle
- * @param[out] sec pointer to return second
- *
- * @return Returns an error code (SC_ERR_NONE = success).
- */
-sc_err_t sc_timer_get_rtc_sec1970(sc_ipc_t ipc, uint32_t *sec);
-
/* @} */
#endif /* _SC_TIMER_API_H */