AliOS Things API HAL SOC TIMER Guide - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki

API INDEX


1-hal_timer_init

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.

2-hal_timer_start

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

3-hal_timer_stop

void hal_timer_stop(timer_dev_t *tim)
  • Description

    stop a hardware timer

  • Parameters

    IN/OUT NAME DESC
    [in] tim timer struct
  • Returns

    None.

4-hal_timer_finalize

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.

⚠️ **GitHub.com Fallback** ⚠️