RTEMS: bsps/arm/lpc176x/include/bsp/watchdog.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
watchdog.h File Reference
Board Support Packages » ARM » NXP LPC176X

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

`#include <bsp/watchdog-defs.h>`

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

  tcount | Timer'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

  tcount | Timer's out value.
  interrupt | Interrupt to register.

Returns
  RTEMS_SUCCESSFUL if the watchdog was configured successfully with interrupts.