RTEMS 7.0-rc1
Loading...
Searching...
No Matches
watchdog.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/*
12 * Copyright (c) 2014 Taller Technologies.
13 *
14 * @author Boretto Martin (martin.boretto@tallertechnologies.com)
15 * @author Diaz Marcos (marcos.diaz@tallertechnologies.com)
16 * @author Lenarduzzi Federico (federico.lenarduzzi@tallertechnologies.com)
17 * @author Daniel Chicco (daniel.chicco@tallertechnologies.com)
18 *
19 * The license and distribution terms for this file may be
20 * found in the file LICENSE in this distribution or at
21 * http://www.rtems.org/license/LICENSE.
22 */
23
24#ifndef LIBBSP_ARM_LPC176X_WATCHDOG_H
25#define LIBBSP_ARM_LPC176X_WATCHDOG_H
26
27#include <bsp/watchdog-defs.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
41
45void lpc176x_watchdog_reset( void );
46
54
64 lpc176x_wd_isr_funct interrupt,
66);
67
68#ifdef __cplusplus
69}
70#endif /* __cplusplus */
71
72#endif /* LIBBSP_ARM_LPC176X_WATCHDOG_H */
rtems_status_code lpc176x_watchdog_config(lpc176x_microseconds tcount)
Configures the watchdog's timer.
Definition: watchdog.c:68
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:82
void lpc176x_watchdog_reset(void)
Resets the watchdog timer.
Definition: watchdog.c:37
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:31
uint32_t lpc176x_microseconds
Microseconds representation.
Definition: common-types.h:39
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
API definitions of the Watchdog driver for the lpc176x bsp in RTEMS.
rtems_interrupt_handler lpc176x_wd_isr_funct
A function that attends an interruption for a watchdog.
Definition: watchdog-defs.h:61