WDT
WDT API reference
Functions
-
OSStatus bk_wdg_initialize(uint32_t timeout)
This function will initialize the on board CPU hardware watch dog
- Parameters
timeout – : Watchdag timeout, application should call bk_wdg_reload befor timeout.
- Returns
kNoErr : on success.
kGeneralErr : if an error occurred with any step
-
void bk_wdg_reload(void)
Reload watchdog counter.
- Parameters
none –
- Returns
none
-
OSStatus bk_wdg_finalize(void)
This function performs any platform-specific cleanup needed for hardware watch dog.
- Parameters
none –
- Returns
kNoErr : on success.
kGeneralErr : if an error occurred with any step
Macros
-
PlatformWDGInitialize
For API compatiable with older version
-
PlatformWDGReload
For API compatiable with older version
-
PlatformWDGFinalize
For API compatiable with older version