Add HwWatchdog
- mbed_watchdog_mgr has interface name mbed_wdog_manager_start(),mbed_wdog_manager_stop(),mbed_wdog_manager_kick() - HwWatchdog is going to attach with LowPowerTIcker for periodic callback functionality - mbed_wdog_manager_start() will either get start either by BL/RTOS Aps,it reads the timeout value specified via macro and macro gets defined in target.json file. - mbed_wdog_manager_start() internally configure below HAL hw watchdog with timeout specified via target.json - mbed_wdog_manager_start() internally divide the timeout(specified in target.json) by the 2 and attach LowPowerTicker with periodic callback of hw_kick() - mbed_wdog_manager_start() internally create one instance of sw watchdog class,to access the static list data structure of sw watchdog class - mbed_wdog_manager_kick() function periodically get called and refresh the hw watchdog to avoid watchdog reset - converted C++ code into C based APIs - added boolean to control watchdog start and stop - Added detach from ticker on stop API |
---|
|
mbed.h |
---|
platform/mbed_watchdog_mgr.cpp 0 → 100644 |
---|
platform/mbed_watchdog_mgr.h 0 → 100644 |
---|
targets/targets.json |
---|