Wdt Read
Overview
After starting this application, perform the following actions:
Initialize WDT
Start the thread, perform a dog feeding operation in the thread, and read the cycle value and remaining value of the watchdog
Environmental requirements
The configuration of the watchdog has been completed in the device tree. If you need to make changes, you can modify the corresponding devcie tree
Building and flashing
Example Location: examples/peripheral/wdt
compile, burn, and more, see: get started
Running result
Successfully running will output the following logs
D/dt [0.038] add device wdt
I/wdt_test [0.042] wdt feed
I/wdt_test [0.046] wdt counter value 400000000 reamining time 399998672
I/wdt_test [0.550] wdt feed
I/wdt_test [0.554] wdt counter value 400000000 reamining time 399999252