1 /** @file reg_esm.h
2 *   @brief ESM Register Layer Header File
3 *   @date 29.May.2013
4 *   @version 03.05.02
5 *
6 *   This file contains:
7 *   - Definitions
8 *   - Types
9 *   - Interface Prototypes
10 *   .
11 *   which are relevant for the ESM driver.
12 */
13 
14 /* (c) Texas Instruments 2009-2013, All rights reserved. */
15 
16 #ifndef __REG_ESM_H__
17 #define __REG_ESM_H__
18 
19 #include "sys_common.h"
20 
21 
22 
23 /* USER CODE BEGIN (0) */
24 /* USER CODE END */
25 
26 /* Esm Register Frame Definition */
27 /** @struct esmBase
28 *   @brief Esm Register Frame Definition
29 *
30 *   This type is used to access the Esm Registers.
31 */
32 /** @typedef esmBASE_t
33 *   @brief Esm Register Frame Type Definition
34 *
35 *   This type is used to access the Esm Registers.
36 */
37 typedef volatile struct esmBase
38 {
39     uint32 EPENASET1;              /* 0x0000                 */
40     uint32 EPENACLR1;              /* 0x0004                 */
41     uint32 INTENASET1;             /* 0x0008                 */
42     uint32 INTENACLR1;             /* 0x000C                 */
43     uint32 INTLVLSET1;             /* 0x0010                 */
44     uint32 INTLVLCLR1;             /* 0x0014                 */
45     uint32 ESTATUS1[3U];           /* 0x0018, 0x001C, 0x0020 */
46     uint32 EPSTATUS;               /* 0x0024                 */
47     uint32 INTOFFH;                /* 0x0028                 */
48     uint32 INTOFFL;                /* 0x002C                 */
49     uint32 LTC;                    /* 0x0030                 */
50     uint32 LTCPRELOAD;             /* 0x0034                 */
51     uint32 KEY;                    /* 0x0038                 */
52     uint32 ESTATUS2EMU;            /* 0x003C                 */
53     uint32 EPENASET4;              /* 0x0040                 */
54     uint32 EPENACLR4;              /* 0x0044                 */
55     uint32 INTENASET4;             /* 0x0048                 */
56     uint32 INTENACLR4;             /* 0x004C                 */
57     uint32 INTLVLSET4;             /* 0x0050                 */
58     uint32 INTLVLCLR4;             /* 0x0054                 */
59     uint32 ESTATUS4[3U];           /* 0x0058, 0x005C, 0x0060 */
60     uint32 ESTATUS5EMU;            /* 0x0064                 */
61 } esmBASE_t;
62 
63 /** @def esmREG
64 *   @brief Esm Register Frame Pointer
65 *
66 *   This pointer is used by the Esm driver to access the Esm registers.
67 */
68 #define esmREG ((esmBASE_t *)0xFFFFF500U)
69 
70 /* USER CODE BEGIN (1) */
71 /* USER CODE END */
72 
73 
74 #endif
75