reg_sci.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /** @file reg_sci.h
  2. * @brief SCI 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 SCI driver.
  12. */
  13. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  14. #ifndef __REG_SCI_H__
  15. #define __REG_SCI_H__
  16. #include "sys_common.h"
  17. #include "gio.h"
  18. /* USER CODE BEGIN (0) */
  19. /* USER CODE END */
  20. /* Sci Register Frame Definition */
  21. /** @struct sciBase
  22. * @brief SCI Base Register Definition
  23. *
  24. * This structure is used to access the SCI module registers.
  25. */
  26. /** @typedef sciBASE_t
  27. * @brief SCI Register Frame Type Definition
  28. *
  29. * This type is used to access the SCI Registers.
  30. */
  31. typedef volatile struct sciBase
  32. {
  33. uint32 GCR0; /**< 0x0000 Global Control Register 0 */
  34. uint32 GCR1; /**< 0x0004 Global Control Register 1 */
  35. uint32 GCR2; /**< 0x0008 Global Control Register 2 */
  36. uint32 SETINT; /**< 0x000C Set Interrupt Enable Register */
  37. uint32 CLRINT; /**< 0x0010 Clear Interrupt Enable Register */
  38. uint32 SETINTLVL; /**< 0x0014 Set Interrupt Level Register */
  39. uint32 CLRINTLVL; /**< 0x0018 Set Interrupt Level Register */
  40. uint32 FLR; /**< 0x001C Interrupt Flag Register */
  41. uint32 INTVECT0; /**< 0x0020 Interrupt Vector Offset 0 */
  42. uint32 INTVECT1; /**< 0x0024 Interrupt Vector Offset 1 */
  43. uint32 FORMAT; /**< 0x0028 Format Control Register */
  44. uint32 BRS; /**< 0x002C Baud Rate Selection Register */
  45. uint32 ED; /**< 0x0030 Emulation Register */
  46. uint32 RD; /**< 0x0034 Receive Data Buffer */
  47. uint32 TD; /**< 0x0038 Transmit Data Buffer */
  48. uint32 FUN; /**< 0x003C Pin Function Register */
  49. uint32 DIR; /**< 0x0040 Pin Direction Register */
  50. uint32 DIN; /**< 0x0044 Pin Data In Register */
  51. uint32 DOUT; /**< 0x0048 Pin Data Out Register */
  52. uint32 SET; /**< 0x004C Pin Data Set Register */
  53. uint32 CLR; /**< 0x0050 Pin Data Clr Register */
  54. uint32 ODR; /**< 0x0054: Pin Open Drain Output Enable Register */
  55. uint32 PD; /**< 0x0058: Pin Pullup/Pulldown Disable Register */
  56. uint32 PSL; /**< 0x005C: Pin Pullup/Pulldown Selection Register */
  57. uint32 rsdv1[12U]; /**< 0x060: Reserved */
  58. uint32 IODFTCTRL; /**< 0x0090: I/O Error Enable Register */
  59. } sciBASE_t;
  60. /** @def sciREG
  61. * @brief Register Frame Pointer
  62. *
  63. * This pointer is used by the SCI driver to access the sci module registers.
  64. */
  65. #define sciREG ((sciBASE_t *)0xFFF7E500U)
  66. /** @def sciPORT
  67. * @brief SCI GIO Port Register Pointer
  68. *
  69. * Pointer used by the GIO driver to access I/O PORT of SCI
  70. * (use the GIO drivers to access the port pins).
  71. */
  72. #define sciPORT ((gioPORT_t *)0xFFF7E540U)
  73. /** @def scilinREG
  74. * @brief SCILIN (LIN - Compatibility Mode) Register Frame Pointer
  75. *
  76. * This pointer is used by the SCI driver to access the sci module registers.
  77. */
  78. #define scilinREG ((sciBASE_t *)0xFFF7E400U)
  79. /** @def scilinPORT
  80. * @brief SCILIN (LIN - Compatibility Mode) Register Frame Pointer
  81. *
  82. * Pointer used by the GIO driver to access I/O PORT of LIN
  83. * (use the GIO drivers to access the port pins).
  84. */
  85. #define scilinPORT ((gioPORT_t *)0xFFF7E440U)
  86. /* USER CODE BEGIN (1) */
  87. /* USER CODE END */
  88. #endif