This is the quick start guide for the Watchdog Timer (WDT), with step-by-step instructions on how to configure and use the driver in a selection of use cases.
The use cases contain several code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.
reset mode In this use case, the WDT is configured for:
The use case enables the WDT, and resets it after 10 ms to prevent system reset after time out period of 16 ms.
For the setup code of this use case to work, the following must be added to the project:
Add to application initialization:
Add to, e.g., main loop in application C-file: