Changeset 4cc629cd in rtems


Ignore:
Timestamp:
Jan 7, 2013, 1:55:54 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2460cc7
Parents:
2570a2a8
git-author:
Sebastian Huber <sebastian.huber@…> (01/07/13 13:55:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/13 14:07:42)
Message:

bsp/lpc24xx: Add WWDT module defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/include/lpc17xx.h

    r2570a2a8 r4cc629cd  
    2727
    2828#define LPC17XX_BASE 0x00
     29
     30typedef struct {
     31#define LPC17XX_WWDT_MOD_WDEN BSP_BIT32(0)
     32#define LPC17XX_WWDT_MOD_WDRESET BSP_BIT32(1)
     33#define LPC17XX_WWDT_MOD_WDTOF BSP_BIT32(2)
     34#define LPC17XX_WWDT_MOD_WDINT BSP_BIT32(3)
     35#define LPC17XX_WWDT_MOD_WDPROTECT BSP_BIT32(4)
     36        uint32_t mod;
     37        uint32_t tc;
     38        uint32_t feed;
     39        uint32_t tv;
     40        uint32_t reserved_10;
     41        uint32_t warnint;
     42        uint32_t window;
     43        uint32_t reserved_1c;
     44} lpc17xx_wwdt;
     45
     46#define LPC17XX_WWDT (*(volatile lpc17xx_wwdt *) (LPC17XX_BASE + 0x40000000))
    2947
    3048typedef struct {
     
    177195
    178196typedef struct {
    179         uint32_t reserved_00 [268693504];
     197        uint32_t reserved_00 [268435456];
     198        lpc17xx_wwdt wwdt;
     199        uint32_t reserved_40000020 [258040];
    180200        lpc17xx_scb scb;
    181201} lpc17xx;
Note: See TracChangeset for help on using the changeset viewer.