#include <cx/wdt.h>int wdt_shutdown(void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The wdt_shutdown() call indicates to the watchdog API that the system is being shut down. This tells the API to "pat" the second stage watchdog device for no longer than a configured shutdown interval. This ensures that the board will be reset if the shutdown sequence fails to complete within the configured interval.
On successful completion, wdt_shutdown() returns 0. Otherwise it returns -1 and sets errno to indicate one of the following error conditions.
No watchdog timer has been configured.
The watchdog timer module has not been configured.
The timer is still armed or the configured shutdown interval is invalid.