1 /** @file reg_efc.h
2 *   @brief EFC 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_EFC_H__
16 #define __REG_EFC_H__
17 
18 #include "sys_common.h"
19 
20 /* USER CODE BEGIN (0) */
21 /* USER CODE END */
22 
23 /* Efc Register Frame Definition */
24 /** @struct efcBase
25 *   @brief Efc Register Frame Definition
26 *
27 *   This type is used to access the Efc Registers.
28 */
29 /** @typedef efcBASE_t
30 *   @brief Efc Register Frame Type Definition
31 *
32 *   This type is used to access the Efc Registers.
33 */
34 typedef volatile struct efcBase
35 {
36 	uint32 INSTRUCTION;    			/* 0x0	INSTRUCTION AN DUMPWORD REGISTER	*/
37 	uint32 ADDRESS;			    	/* 0x4 ADDRESS REGISTER    					*/
38 	uint32 DATA_UPPER;			    /* 0x8 DATA UPPER REGISTER    				*/
39 	uint32 DATA_LOWER;				/* 0xc DATA LOWER REGISTER    				*/
40 	uint32 SYSTEM_CONFIG;				/* 0x10 SYSTEM CONFIG REGISTER    			*/
41 	uint32 SYSTEM_STATUS;				/* 0x14 SYSTEM STATUS REGISTER    			*/
42 	uint32 ACCUMULATOR;				/* 0x18 ACCUMULATOR REGISTER    			*/
43 	uint32 BOUNDARY;			    	/* 0x1C BOUNDARY REGISTER 					*/
44 	uint32 KEY_FLAG;			    	/* 0x20 KEY FLAG REGISTER    				*/
45 	uint32 KEY;			        	/* 0x24	KEY REGISTER 						*/
46 	uint32   rsvd1;			        /* 0x28	RESERVED 							*/
47 	uint32 PINS;				        /* 0x2C  PINS REGISTER						*/
48 	uint32 CRA;				        /* 0x30  CRA								*/
49 	uint32 READ;				        /* 0x34 READ REGISTER						*/
50 	uint32 PROGRAMME;				    /* 0x38 PROGRAMME REGISTER					*/
51 	uint32 ERROR;				        /* 0x3C	ERROR STATUS REGISTER				*/
52 	uint32 SINGLE_BIT;				/* 0x40	SINGLE BIT ERROR 					*/
53 	uint32 TWO_BIT_ERROR;				/* 0x44	DOUBLE BIT ERROR 					*/
54 	uint32 SELF_TEST_CYCLES;			/* 0x48	SELF TEST CYCLEX					*/
55 	uint32 SELF_TEST_SIGN;			/* 0x4C SELF TEST SIGNATURE					*/
56 } efcBASE_t;
57 
58 #define efcREG   ((efcBASE_t *)0xFFF8C000U)
59 /* USER CODE BEGIN (1) */
60 /* USER CODE END */
61 
62 
63 #endif
64