reg_efc.h 2.0 KB

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