[rtems commit] bsp/lpc24xx: Add WWDT module defines
Sebastian Huber
sebh at rtems.org
Mon Jan 7 14:05:04 UTC 2013
Module: rtems
Branch: master
Commit: 4cc629cda82f16c152af75296841c2331650cdb4
Changeset: http://git.rtems.org/rtems/commit/?id=4cc629cda82f16c152af75296841c2331650cdb4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jan 7 14:55:54 2013 +0100
bsp/lpc24xx: Add WWDT module defines
---
c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h b/c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h
index 6d1dd45..b2cd4b0 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h
+++ b/c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h
@@ -28,6 +28,24 @@
#define LPC17XX_BASE 0x00
typedef struct {
+#define LPC17XX_WWDT_MOD_WDEN BSP_BIT32(0)
+#define LPC17XX_WWDT_MOD_WDRESET BSP_BIT32(1)
+#define LPC17XX_WWDT_MOD_WDTOF BSP_BIT32(2)
+#define LPC17XX_WWDT_MOD_WDINT BSP_BIT32(3)
+#define LPC17XX_WWDT_MOD_WDPROTECT BSP_BIT32(4)
+ uint32_t mod;
+ uint32_t tc;
+ uint32_t feed;
+ uint32_t tv;
+ uint32_t reserved_10;
+ uint32_t warnint;
+ uint32_t window;
+ uint32_t reserved_1c;
+} lpc17xx_wwdt;
+
+#define LPC17XX_WWDT (*(volatile lpc17xx_wwdt *) (LPC17XX_BASE + 0x40000000))
+
+typedef struct {
#define LPC17XX_PLL_CON_PLLE BSP_BIT32(0)
#define LPC17XX_PLL_SEL_MSEL(val) BSP_FLD32(val, 0, 4)
#define LPC17XX_PLL_SEL_MSEL_GET(reg) BSP_FLD32GET(reg, 0, 4)
@@ -176,7 +194,9 @@ typedef struct {
#define LPC17XX_SCB (*(volatile lpc17xx_scb *) (LPC17XX_BASE + 0x400fc000))
typedef struct {
- uint32_t reserved_00 [268693504];
+ uint32_t reserved_00 [268435456];
+ lpc17xx_wwdt wwdt;
+ uint32_t reserved_40000020 [258040];
lpc17xx_scb scb;
} lpc17xx;
More information about the vc
mailing list