![]() |
RTEMS 6.1-rc7
|
API of the Watchdog driver for the raspberrypi4 bsp in RTEMS. More...
Go to the source code of this file.
Functions | |
void | raspberrypi_watchdog_init (void) |
Initialize BSP watchdog routines. | |
void | raspberrypi_watchdog_start (uint32_t timeout_ms) |
Turn on the watchdog / begin the counter at the desired value. | |
void | raspberrypi_watchdog_stop (void) |
Turn off the watchdog. | |
void | raspberrypi_watchdog_reload (void) |
Reload watchdog. | |
uint32_t | raspberrypi_watchdog_get_remaining_time (void) |
Get the remaining time of the watchdog. The return value is still valid when the watchdog has been stopped. | |
API of the Watchdog driver for the raspberrypi4 bsp in RTEMS.
uint32_t raspberrypi_watchdog_get_remaining_time | ( | void | ) |
Get the remaining time of the watchdog. The return value is still valid when the watchdog has been stopped.
Watchdog | remaining time in ms. |
void raspberrypi_watchdog_init | ( | void | ) |
Initialize BSP watchdog routines.
void raspberrypi_watchdog_example() { raspberrypi_watchdog_init(); raspberrypi_watchdog_start(15000);
raspberrypi_watchdog_reload(); ... raspberrypi_watchdog_reload();
void raspberrypi_watchdog_start | ( | uint32_t | timeout_ms | ) |
Turn on the watchdog / begin the counter at the desired value.
timeout | Watchdog timeout value in ms. The watchdog device has 20 bits of timeout, so it only supports a maximum of 15999 ms for its timeout. This value should be between 0 and 15999. |