Skip to content

AliOS Things API HAL SOC WDG Guide

librae8226 edited this page Mar 1, 2018 · 1 revision

API INDEX


1-hal_wdg_init

int32_t hal_wdg_init(wdg_dev_t *wdg)
  • Description

    This function will initialize the on board CPU hardware watch dog

  • Parameters

    IN/OUT NAME DESC
    [in] wdg the watch dog device
  • Returns

    0 : on success, EIO : if an error occurred with any step

2-hal_wdg_reload

void hal_wdg_reload(wdg_dev_t *wdg)
  • Description

    Reload watchdog counter.

  • Parameters

    IN/OUT NAME DESC
    [in] wdg the watch dog device
  • Returns

    None.

3-hal_wdg_finalize

int32_t hal_wdg_finalize(wdg_dev_t *wdg)
  • Description

    This function performs any platform-specific cleanup needed for hardware watch dog.

  • Parameters

    IN/OUT NAME DESC
    [in] wdg the watch dog device
  • Returns

    0 : on success, EIO : if an error occurred with any step

Clone this wiki locally