KasperskyOS Community Edition 1.2
Contents
Contents
watchdog_system_reset example
This example demonstrates use of the Watchdog
driver in KasperskyOS.
In this example, the Client
program uses the Watchdog
driver interface to interact with the Watchdog timer as follows:
- Receives the current parameters of the
Watchdog
driver and prints them tostderr
. - Changes the default value of the timer to a new value and starts the timer.
- Resets the timer several times.
- Waits for the system to restart when the timer is triggered.
The client library of the Watchdog
driver is statically linked to the Client
program.
The CMake
system, which is included with KasperskyOS Community Edition, is used to build and run the example.
Example files
The code of the example and build scripts are available at the following path:
/opt/KasperskyOS-Community-Edition-<version>/examples/watchdog_system_reset
Building and running example
See Building and running examples section.
Page top