RTEMS 6.3
Loading...
Searching...
No Matches
watchdog.h File Reference

API of the Watchdog driver for the lpc176x bsp in RTEMS. More...

Go to the source code of this file.

Functions

bool lpc176x_been_reset_by_watchdog (void)
 Checks if the watchdog was executed by software or not. Set when the watchdog timer times out, cleared by software.
void lpc176x_watchdog_reset (void)
 Resets the watchdog timer.
rtems_status_code lpc176x_watchdog_config (lpc176x_microseconds tcount)
 Configures the watchdog's timer.
rtems_status_code lpc176x_watchdog_config_with_interrupt (lpc176x_wd_isr_funct interrupt, lpc176x_microseconds tcount)
 Configures the timer watchdog using interrupt.

Detailed Description

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

Function Documentation

◆ lpc176x_been_reset_by_watchdog()

bool lpc176x_been_reset_by_watchdog ( void )
inline

Checks if the watchdog was executed by software or not. Set when the watchdog timer times out, cleared by software.

Returns
TRUE if the watchdog was executed. FALSE otherwise.

◆ lpc176x_watchdog_config()

rtems_status_code lpc176x_watchdog_config ( lpc176x_microseconds tcount)

Configures the watchdog's timer.

Parameters
tcountTimer's out value.
Returns
RTEMS_SUCCESSFUL if the watchdog was configured successfully.

◆ lpc176x_watchdog_config_with_interrupt()

rtems_status_code lpc176x_watchdog_config_with_interrupt ( lpc176x_wd_isr_funct interrupt,
lpc176x_microseconds tcount )

Configures the timer watchdog using interrupt.

Parameters
tcountTimer's out value.
interruptInterrupt to register.
Returns
RTEMS_SUCCESSFUL if the watchdog was configured successfully with interrupts.