RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Functions
watchdog.c File Reference

Watchdog controller for the mbed lpc176x family boards. More...

#include <assert.h>
#include <rtems/status-checks.h>
#include <bsp.h>
#include <bsp/irq.h>
#include <bsp/watchdog.h>
#include <bsp/io.h>

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 (const lpc176x_microseconds tcount)
 Configures the watchdog's timer.
 
rtems_status_code lpc176x_watchdog_config_with_interrupt (const lpc176x_wd_isr_funct interrupt, const lpc176x_microseconds tcount)
 Configures the timer watchdog using interrupt.
 

Detailed Description

Watchdog controller for the mbed lpc176x family boards.

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.