reg_esm.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  14. #ifndef __REG_ESM_H__
  15. #define __REG_ESM_H__
  16. #include "sys_common.h"
  17. /* USER CODE BEGIN (0) */
  18. /* USER CODE END */
  19. /* Esm Register Frame Definition */
  20. /** @struct esmBase
  21. * @brief Esm Register Frame Definition
  22. *
  23. * This type is used to access the Esm Registers.
  24. */
  25. /** @typedef esmBASE_t
  26. * @brief Esm Register Frame Type Definition
  27. *
  28. * This type is used to access the Esm Registers.
  29. */
  30. typedef volatile struct esmBase
  31. {
  32. uint32 EPENASET1; /* 0x0000 */
  33. uint32 EPENACLR1; /* 0x0004 */
  34. uint32 INTENASET1; /* 0x0008 */
  35. uint32 INTENACLR1; /* 0x000C */
  36. uint32 INTLVLSET1; /* 0x0010 */
  37. uint32 INTLVLCLR1; /* 0x0014 */
  38. uint32 ESTATUS1[3U]; /* 0x0018, 0x001C, 0x0020 */
  39. uint32 EPSTATUS; /* 0x0024 */
  40. uint32 INTOFFH; /* 0x0028 */
  41. uint32 INTOFFL; /* 0x002C */
  42. uint32 LTC; /* 0x0030 */
  43. uint32 LTCPRELOAD; /* 0x0034 */
  44. uint32 KEY; /* 0x0038 */
  45. uint32 ESTATUS2EMU; /* 0x003C */
  46. uint32 EPENASET4; /* 0x0040 */
  47. uint32 EPENACLR4; /* 0x0044 */
  48. uint32 INTENASET4; /* 0x0048 */
  49. uint32 INTENACLR4; /* 0x004C */
  50. uint32 INTLVLSET4; /* 0x0050 */
  51. uint32 INTLVLCLR4; /* 0x0054 */
  52. uint32 ESTATUS4[3U]; /* 0x0058, 0x005C, 0x0060 */
  53. uint32 ESTATUS5EMU; /* 0x0064 */
  54. } esmBASE_t;
  55. /** @def esmREG
  56. * @brief Esm Register Frame Pointer
  57. *
  58. * This pointer is used by the Esm driver to access the Esm registers.
  59. */
  60. #define esmREG ((esmBASE_t *)0xFFFFF500U)
  61. /* USER CODE BEGIN (1) */
  62. /* USER CODE END */
  63. #endif