RTEMS  5.1
Macros | Typedefs
watchdog-defs.h File Reference

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

#include <rtems/score/cpu.h>
#include <bsp.h>
#include <bspopts.h>
#include <bsp/utility.h>
#include <bsp/irq.h>
#include <bsp/common-types.h>

Go to the source code of this file.

Macros

#define LPC176X_WDMOD_BASE   0x40000000U
 
#define LPC176X_WDFEED_CON   0XAAU
 
#define LPC176X_WDFEED_CFG   0X55U
 
#define LPC176X_WD_PRESCALER_DIVISOR   4000000U
 
#define LPC176X_WWDT_MOD_WDEN   BSP_BIT32( 0 )
 
#define LPC176X_WWDT_MOD_WDRESET   BSP_BIT32( 1 )
 
#define LPC176X_WWDT_MOD_WDTOF   BSP_BIT32( 2 )
 
#define LPC176X_WWDT_MOD_WDINT   BSP_BIT32( 3 )
 
#define LPC176X_WWDT_CLKSEL_WDSEL_IRC   0x0U
 
#define LPC176X_WWDT_CLKSEL_WDSEL_PCLK   0x1U
 
#define LPC176X_WWDT_CLKSEL_WDSEL_RTC   0x2U
 
#define LPC176X_WD_INTERRUPT_VECTOR_NUMBER   0U
 
#define LPC176X_WDMOD   ( *(volatile uint32_t *) ( LPC176X_WDMOD_BASE + 0x00U ) )
 
#define LPC176X_WDTC   ( *(volatile uint32_t *) ( LPC176X_WDMOD_BASE + 0x04U ) )
 
#define LPC176X_WDFEED
 
#define LPC176X_WDTV   ( *(volatile uint32_t *) ( LPC176X_WDMOD_BASE + 0x0CU ) )
 
#define LPC176X_WDCLKSEL
 

Typedefs

typedef rtems_interrupt_handler lpc176x_wd_isr_funct
 A function that attends an interruption for a watchdog.
 

Detailed Description

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

Macro Definition Documentation

◆ LPC176X_WDCLKSEL

#define LPC176X_WDCLKSEL
Value:
( *(volatile uint32_t *) ( LPC176X_WDMOD_BASE + \
0x10U ) )

◆ LPC176X_WDFEED

#define LPC176X_WDFEED
Value:
( *(volatile uint32_t *) ( LPC176X_WDMOD_BASE + \
0x08U ) )