AliOS Things API HAL SOC TIMER Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki
int32_t hal_timer_init(timer_dev_t *tim)
-
Description
init a hardware timer
-
Parameters
IN/OUT NAME DESC [in] tim timer struct -
Returns
None.
int32_t hal_timer_start(timer_dev_t *tim)
-
Description
start a hardware timer
-
Parameters
IN/OUT NAME DESC [in] tim timer struct -
Returns
0 == success, EIO == failure
void hal_timer_stop(timer_dev_t *tim)
-
Description
stop a hardware timer
-
Parameters
IN/OUT NAME DESC [in] tim timer struct -
Returns
None.
int32_t hal_timer_finalize(timer_dev_t *tim)
-
Description
finalize a hardware timer
-
Parameters
IN/OUT NAME DESC [in] tim timer struct -
Returns
None.