reg_emif.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /** @file reg_emif.h
  2. * @brief EMIF 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 EMIF driver.
  12. */
  13. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  14. #ifndef __REG_EMIF_H__
  15. #define __REG_EMIF_H__
  16. #include "sys_common.h"
  17. /* USER CODE BEGIN (0) */
  18. /* USER CODE END */
  19. /* Emif Register Frame Definition */
  20. /** @struct emifBASE_t
  21. * @brief emifBASE Register Definition
  22. *
  23. * This structure is used to access the EMIF module registers.
  24. */
  25. typedef volatile struct emifBase
  26. {
  27. uint32 MIDR; /**< 0x0000 Module ID Register */
  28. uint32 AWCC; /**< 0x0004 Asynchronous wait cycle register*/
  29. uint32 SDCR; /**< 0x0008 SDRAM configuration register */
  30. uint32 SDRCR ; /**< 0x000C Set Interrupt Enable Register */
  31. uint32 CE2CFG; /**< 0x0010 Asynchronous 1 Configuration Register */
  32. uint32 CE3CFG; /**< 0x0014 Asynchronous 2 Configuration Register */
  33. uint32 CE4CFG; /**< 0x0018 Asynchronous 3 Configuration Register */
  34. uint32 CE5CFG; /**< 0x001C Asynchronous 4 Configuration Register */
  35. uint32 SDTIMR; /**< 0x0020 SDRAM Timing Register */
  36. uint32 dummy1[6]; /** reserved **/
  37. uint32 SDSRETR; /**< 0x003c SDRAM Self Refresh Exit Timing Register */
  38. uint32 INTRAW; /**< 0x0040 0x0020 Interrupt Vector Offset*/
  39. uint32 INTMSK; /**< 0x0044 EMIF Interrupt Mask Register */
  40. uint32 INTMSKSET; /**< 48 EMIF Interrupt Mask Set Register */
  41. uint32 INTMSKCLR; /**< 0x004c EMIF Interrupt Mask Register */
  42. uint32 dummy2[6]; /** reserved **/
  43. uint32 PMCR; /**< 0x0068 Page Mode Control Register*/
  44. } emifBASE_t;
  45. #define emifREG ((emifBASE_t *)0xFCFFE800U)
  46. /* USER CODE BEGIN (1) */
  47. /* USER CODE END */
  48. #endif