1 /** @file reg_tcram.h
2 *   @brief TCRAM Register Layer Header File
3 *   @date 29.May.2013
4 *   @version 03.05.02
5 *
6 *   This file contains:
7 *   - Definitions
8 *   - Types
9 *   .
10 *   which are relevant for the System driver.
11 */
12 
13 /* (c) Texas Instruments 2009-2013, All rights reserved. */
14 
15 #ifndef __REG_TCRAM_H__
16 #define __REG_TCRAM_H__
17 
18 #include "sys_common.h"
19 
20 /* Tcram Register Frame Definition */
21 /** @struct tcramBase
22 *   @brief TCRAM Wrapper Register Frame Definition
23 *
24 *   This type is used to access the TCRAM Wrapper Registers.
25 */
26 /** @typedef tcramBASE_t
27 *   @brief TCRAM Wrapper Register Frame Type Definition
28 *
29 *   This type is used to access the TCRAM Wrapper Registers.
30 */
31 
32 typedef volatile struct tcramBase
33 {
34     uint32 RAMCTRL;		    /* 0x0000 */
35     uint32 RAMTHRESHOLD;      /* 0x0004 */
36     uint32 RAMOCCUR;			/* 0x0008 */
37     uint32 RAMINTCTRL;		/* 0x000C */
38     uint32 RAMERRSTATUS;		/* 0x0010 */
39     uint32 RAMSERRADDR;		/* 0x0014 */
40     uint32   rsvd1;			/* 0x0018 */
41     uint32 RAMUERRADDR;		/* 0x001C */
42     uint32   rsvd2[4U];		/* 0x0020 */
43     uint32 RAMTEST;			/* 0x0030 */
44     uint32   rsvd3;			/* 0x0034 */
45     uint32 RAMADDRDECVECT;	/* 0x0038 */
46     uint32 RAMPERADDR;        /* 0x003C */
47 } tcramBASE_t;
48 
49 #define tcram1REG ((tcramBASE_t *)(0xFFFFF800U))
50 #define tcram2REG ((tcramBASE_t *)(0xFFFFF900U))
51 
52 #endif
53