F2837xD_Dma_defines.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. //###########################################################################
  2. //
  3. // FILE: F2837xD_Dma_defines.h
  4. //
  5. // TITLE: #defines used in DMA examples
  6. //
  7. //###########################################################################
  8. // $TI Release: F2837xD Support Library v3.05.00.00 $
  9. // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  10. // $Copyright:
  11. // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  12. //
  13. // Redistribution and use in source and binary forms, with or without
  14. // modification, are permitted provided that the following conditions
  15. // are met:
  16. //
  17. // Redistributions of source code must retain the above copyright
  18. // notice, this list of conditions and the following disclaimer.
  19. //
  20. // Redistributions in binary form must reproduce the above copyright
  21. // notice, this list of conditions and the following disclaimer in the
  22. // documentation and/or other materials provided with the
  23. // distribution.
  24. //
  25. // Neither the name of Texas Instruments Incorporated nor the names of
  26. // its contributors may be used to endorse or promote products derived
  27. // from this software without specific prior written permission.
  28. //
  29. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  30. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  31. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  32. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  33. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  34. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  36. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. // $
  41. //###########################################################################
  42. #ifndef F2837xD_DMA_DEFINES_H
  43. #define F2837xD_DMA_DEFINES_H
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. //
  48. // Defines
  49. //
  50. //
  51. // PERINTSEL bits
  52. //
  53. #define DMA_ADCAINT1 1
  54. #define DMA_ADCAINT2 2
  55. #define DMA_ADCAINT3 3
  56. #define DMA_ADCAINT4 4
  57. #define DMA_ADCAEVT 5
  58. #define DMA_ADCBINT1 6
  59. #define DMA_ADCBINT2 7
  60. #define DMA_ADCBINT3 8
  61. #define DMA_ADCBINT4 9
  62. #define DMA_ADCBEVT 10
  63. #define DMA_ADCCINT1 11
  64. #define DMA_ADCCINT2 12
  65. #define DMA_ADCCINT3 13
  66. #define DMA_ADCCINT4 14
  67. #define DMA_ADCCEVT 15
  68. #define DMA_ADCDINT1 16
  69. #define DMA_ADCDINT2 17
  70. #define DMA_ADCDINT3 18
  71. #define DMA_ADCDINT4 19
  72. #define DMA_ADCDEVT 20
  73. #define DMA_XINT1 29
  74. #define DMA_XINT2 30
  75. #define DMA_XINT3 31
  76. #define DMA_XINT4 32
  77. #define DMA_XINT5 33
  78. #define DMA_EPWM1A 36
  79. #define DMA_EPWM1B 37
  80. #define DMA_EPWM2A 38
  81. #define DMA_EPWM2B 39
  82. #define DMA_EPWM3A 40
  83. #define DMA_EPWM3B 41
  84. #define DMA_EPWM4A 42
  85. #define DMA_EPWM4B 43
  86. #define DMA_EPWM5A 44
  87. #define DMA_EPWM5B 45
  88. #define DMA_EPWM6A 46
  89. #define DMA_EPWM6B 47
  90. #define DMA_EPWM7A 48
  91. #define DMA_EPWM7B 49
  92. #define DMA_EPWM8A 50
  93. #define DMA_EPWM8B 51
  94. #define DMA_EPWM9A 52
  95. #define DMA_EPWM9B 53
  96. #define DMA_EPWM10A 54
  97. #define DMA_EPWM10B 55
  98. #define DMA_EPWM11A 56
  99. #define DMA_EPWM11B 57
  100. #define DMA_EPWM12A 58
  101. #define DMA_EPWM12B 59
  102. #define DMA_EPWM13A 60
  103. #define DMA_EPWM13B 61
  104. #define DMA_EPWM14A 62
  105. #define DMA_EPWM14B 63
  106. #define DMA_EPWM15A 64
  107. #define DMA_EPWM15B 65
  108. #define DMA_EPWM16A 66
  109. #define DMA_EPWM16B 67
  110. #define DMA_TINT0 68
  111. #define DMA_TINT1 69
  112. #define DMA_TINT2 70
  113. #define DMA_MXEVTA 71
  114. #define DMA_MREVTA 72
  115. #define DMA_MXEVTB 73
  116. #define DMA_MREVTB 74
  117. #define DMA_SD1FLT1 95
  118. #define DMA_SD1FLT2 96
  119. #define DMA_SD1FLT3 97
  120. #define DMA_SD1FLT4 98
  121. #define DMA_SD2FLT1 99
  122. #define DMA_SD2FLT2 100
  123. #define DMA_SD2FLT3 101
  124. #define DMA_SD2FLT4 102
  125. #define DMA_SPIATX 109
  126. #define DMA_SPIARX 110
  127. #define DMA_SPIBTX 111
  128. #define DMA_SPIBRX 112
  129. #define DMA_SPICTX 113
  130. #define DMA_SPICRX 114
  131. #define DMA_USBRX1 131
  132. #define DMA_USBTX1 132
  133. #define DMA_USBRX2 133
  134. #define DMA_USBTX2 134
  135. #define DMA_USBRX3 135
  136. #define DMA_USBTX3 136
  137. //
  138. // OVERINTE bit
  139. //
  140. #define OVRFLOW_DISABLE 0x0
  141. #define OVEFLOW_ENABLE 0x1
  142. //
  143. // PERINTE bit
  144. //
  145. #define PERINT_DISABLE 0x0
  146. #define PERINT_ENABLE 0x1
  147. //
  148. // CHINTMODE bits
  149. //
  150. #define CHINT_BEGIN 0x0
  151. #define CHINT_END 0x1
  152. //
  153. // ONESHOT bits
  154. //
  155. #define ONESHOT_DISABLE 0x0
  156. #define ONESHOT_ENABLE 0x1
  157. //
  158. // CONTINOUS bit
  159. //
  160. #define CONT_DISABLE 0x0
  161. #define CONT_ENABLE 0x1
  162. //
  163. // SYNCE bit
  164. //
  165. #define SYNC_DISABLE 0x0
  166. #define SYNC_ENABLE 0x1
  167. //
  168. // SYNCSEL bit
  169. //
  170. #define SYNC_SRC 0x0
  171. #define SYNC_DST 0x1
  172. //
  173. // DATASIZE bit
  174. //
  175. #define SIXTEEN_BIT 0x0
  176. #define THIRTYTWO_BIT 0x1
  177. //
  178. // CHINTE bit
  179. //
  180. #define CHINT_DISABLE 0x0
  181. #define CHINT_ENABLE 0x1
  182. #ifdef __cplusplus
  183. }
  184. #endif
  185. #endif // - end of F2837xD_DMA_DEFINES_H
  186. //
  187. // End of file
  188. //