RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Functions
watchdog.h File Reference

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.
 

Detailed Description

API of the Watchdog driver for the raspberrypi4 bsp in RTEMS.

Function Documentation

◆ raspberrypi_watchdog_get_remaining_time()

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.

Return values
Watchdogremaining time in ms.

◆ raspberrypi_watchdog_init()

void raspberrypi_watchdog_init ( void  )

Initialize BSP watchdog routines.

Note
a brief example of expected usage.

void raspberrypi_watchdog_example() { raspberrypi_watchdog_init(); raspberrypi_watchdog_start(15000);

raspberrypi_watchdog_reload(); ... raspberrypi_watchdog_reload();

raspberrypi_watchdog_stop(); }

◆ raspberrypi_watchdog_start()

void raspberrypi_watchdog_start ( uint32_t  timeout_ms)

Turn on the watchdog / begin the counter at the desired value.

Parameters
timeoutWatchdog 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.