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

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
watchdog.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2014 Taller Technologies.
11 *
12 * @author Boretto Martin (martin.boretto@tallertechnologies.com)
13 * @author Diaz Marcos (marcos.diaz@tallertechnologies.com)
14 * @author Lenarduzzi Federico (federico.lenarduzzi@tallertechnologies.com)
15 * @author Daniel Chicco (daniel.chicco@tallertechnologies.com)
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.org/license/LICENSE.
20 */
21
22#ifndef LIBBSP_ARM_LPC176X_WATCHDOG_H
23#define LIBBSP_ARM_LPC176X_WATCHDOG_H
24
25#include <bsp/watchdog-defs.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif /* __cplusplus */
30
38bool lpc176x_been_reset_by_watchdog( void );
39
43void lpc176x_watchdog_reset( void );
44
51 rtems_status_code lpc176x_watchdog_config( lpc176x_microseconds tcount );
52
61 rtems_status_code lpc176x_watchdog_config_with_interrupt(
62 lpc176x_wd_isr_funct interrupt,
63 lpc176x_microseconds tcount
64);
65
66#ifdef __cplusplus
67}
68#endif /* __cplusplus */
69
70#endif /* LIBBSP_ARM_LPC176X_WATCHDOG_H */
lpc176x_watchdog_config
rtems_status_code lpc176x_watchdog_config(lpc176x_microseconds tcount)
Configures the watchdog's timer.
Definition: watchdog.c:66
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.
Definition: watchdog.c:80
lpc176x_watchdog_reset
void lpc176x_watchdog_reset(void)
Resets the watchdog timer.
Definition: watchdog.c:35
lpc176x_been_reset_by_watchdog
bool lpc176x_been_reset_by_watchdog(void)
Checks if the watchdog was executed by software or not. Set when the watchdog timer times out,...
Definition: watchdog.c:29
lpc176x_microseconds
uint32_t lpc176x_microseconds
Microseconds representation.
Definition: common-types.h:37
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43
watchdog-defs.h
API definitions of the Watchdog driver for the lpc176x bsp in RTEMS.
lpc176x_wd_isr_funct
rtems_interrupt_handler lpc176x_wd_isr_funct
A function that attends an interruption for a watchdog.
Definition: watchdog-defs.h:59