stm32_dmamux.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @file STM32H7xx/stm32_isr.h
  15. * @brief STM32H7xx DMAMUX handler header.
  16. *
  17. * @addtogroup STM32H7xx_DMAMUX
  18. * @{
  19. */
  20. #ifndef STM32_DMAMUX_H
  21. #define STM32_DMAMUX_H
  22. /*===========================================================================*/
  23. /* Driver constants. */
  24. /*===========================================================================*/
  25. /**
  26. * @name DMAMUX1 request sources
  27. * @{
  28. */
  29. #define STM32_DMAMUX1_REQ_GEN0 1
  30. #define STM32_DMAMUX1_REQ_GEN1 2
  31. #define STM32_DMAMUX1_REQ_GEN2 3
  32. #define STM32_DMAMUX1_REQ_GEN3 4
  33. #define STM32_DMAMUX1_REQ_GEN4 5
  34. #define STM32_DMAMUX1_REQ_GEN5 6
  35. #define STM32_DMAMUX1_REQ_GEN6 7
  36. #define STM32_DMAMUX1_REQ_GEN7 8
  37. #define STM32_DMAMUX1_ADC1 9
  38. #define STM32_DMAMUX1_ADC2 10
  39. #define STM32_DMAMUX1_TIM1_CH1 11
  40. #define STM32_DMAMUX1_TIM1_CH2 12
  41. #define STM32_DMAMUX1_TIM1_CH3 13
  42. #define STM32_DMAMUX1_TIM1_CH4 14
  43. #define STM32_DMAMUX1_TIM1_UP 15
  44. #define STM32_DMAMUX1_TIM1_TRIG 16
  45. #define STM32_DMAMUX1_TIM1_COM 17
  46. #define STM32_DMAMUX1_TIM2_CH1 18
  47. #define STM32_DMAMUX1_TIM2_CH2 19
  48. #define STM32_DMAMUX1_TIM2_CH3 20
  49. #define STM32_DMAMUX1_TIM2_CH4 21
  50. #define STM32_DMAMUX1_TIM2_UP 22
  51. #define STM32_DMAMUX1_TIM3_CH1 23
  52. #define STM32_DMAMUX1_TIM3_CH2 24
  53. #define STM32_DMAMUX1_TIM3_CH3 25
  54. #define STM32_DMAMUX1_TIM3_CH4 26
  55. #define STM32_DMAMUX1_TIM3_UP 27
  56. #define STM32_DMAMUX1_TIM3_TRIG 28
  57. #define STM32_DMAMUX1_TIM4_CH1 29
  58. #define STM32_DMAMUX1_TIM4_CH2 30
  59. #define STM32_DMAMUX1_TIM4_CH3 31
  60. #define STM32_DMAMUX1_TIM4_UP 32
  61. #define STM32_DMAMUX1_I2C1_RX 33
  62. #define STM32_DMAMUX1_I2C1_TX 34
  63. #define STM32_DMAMUX1_I2C2_RX 35
  64. #define STM32_DMAMUX1_I2C2_TX 36
  65. #define STM32_DMAMUX1_SPI1_RX 37
  66. #define STM32_DMAMUX1_SPI1_TX 38
  67. #define STM32_DMAMUX1_SPI2_RX 39
  68. #define STM32_DMAMUX1_SPI2_TX 40
  69. #define STM32_DMAMUX1_USART1_RX 41
  70. #define STM32_DMAMUX1_USART1_TX 42
  71. #define STM32_DMAMUX1_USART2_RX 43
  72. #define STM32_DMAMUX1_USART2_TX 44
  73. #define STM32_DMAMUX1_USART3_RX 45
  74. #define STM32_DMAMUX1_USART3_TX 46
  75. #define STM32_DMAMUX1_TIM8_CH1 47
  76. #define STM32_DMAMUX1_TIM8_CH2 48
  77. #define STM32_DMAMUX1_TIM8_CH3 49
  78. #define STM32_DMAMUX1_TIM8_CH4 50
  79. #define STM32_DMAMUX1_TIM8_UP 51
  80. #define STM32_DMAMUX1_TIM8_TRIG 52
  81. #define STM32_DMAMUX1_TIM8_COM 53
  82. #define STM32_DMAMUX1_RESERVED54 54
  83. #define STM32_DMAMUX1_TIM5_CH1 55
  84. #define STM32_DMAMUX1_TIM5_CH2 56
  85. #define STM32_DMAMUX1_TIM5_CH3 57
  86. #define STM32_DMAMUX1_TIM5_CH4 58
  87. #define STM32_DMAMUX1_TIM5_UP 59
  88. #define STM32_DMAMUX1_TIM5_TRIG 60
  89. #define STM32_DMAMUX1_SPI3_RX 61
  90. #define STM32_DMAMUX1_SPI3_TX 62
  91. #define STM32_DMAMUX1_UART4_RX 63
  92. #define STM32_DMAMUX1_UART4_TX 64
  93. #define STM32_DMAMUX1_UART5_RX 65
  94. #define STM32_DMAMUX1_UART5_TX 66
  95. #define STM32_DMAMUX1_DAC1_CH1 67 /* Renamed to L4 name.*/
  96. #define STM32_DMAMUX1_DAC1_CH2 68 /* Renamed to L4 name.*/
  97. #define STM32_DMAMUX1_TIM6_UP 69
  98. #define STM32_DMAMUX1_TIM7_UP 70
  99. #define STM32_DMAMUX1_USART6_RX 71
  100. #define STM32_DMAMUX1_USART6_TX 72
  101. #define STM32_DMAMUX1_I2C3_RX 73
  102. #define STM32_DMAMUX1_I2C3_TX 74
  103. #define STM32_DMAMUX1_DCMI 75
  104. #define STM32_DMAMUX1_CRYP_IN 76
  105. #define STM32_DMAMUX1_CRYP_OUT 77
  106. #define STM32_DMAMUX1_HASH_IN 78
  107. #define STM32_DMAMUX1_UART7_RX 79
  108. #define STM32_DMAMUX1_UART7_TX 80
  109. #define STM32_DMAMUX1_UART8_RX 81
  110. #define STM32_DMAMUX1_UART8_TX 82
  111. #define STM32_DMAMUX1_SPI4_RX 83
  112. #define STM32_DMAMUX1_SPI4_TX 84
  113. #define STM32_DMAMUX1_SPI5_RX 85
  114. #define STM32_DMAMUX1_SPI5_TX 86
  115. #define STM32_DMAMUX1_SAI1_A 87
  116. #define STM32_DMAMUX1_SAI1_B 88
  117. #define STM32_DMAMUX1_SAI2_A 89
  118. #define STM32_DMAMUX1_SAI2_B 90
  119. #define STM32_DMAMUX1_SWPMI_RX 91
  120. #define STM32_DMAMUX1_SQPMI_TX 92
  121. #define STM32_DMAMUX1_SPDIFRX_DT 93
  122. #define STM32_DMAMUX1_SPDIFRX_CS 94
  123. #define STM32_DMAMUX1_HR_REQ1 95
  124. #define STM32_DMAMUX1_HR_REQ2 96
  125. #define STM32_DMAMUX1_HR_REQ3 97
  126. #define STM32_DMAMUX1_HR_REQ4 98
  127. #define STM32_DMAMUX1_HR_REQ5 99
  128. #define STM32_DMAMUX1_HR_REQ6 100
  129. #define STM32_DMAMUX1_DFSDM1_DMA0 101
  130. #define STM32_DMAMUX1_DFSDM1_DMA1 102
  131. #define STM32_DMAMUX1_DFSDM1_DMA2 103
  132. #define STM32_DMAMUX1_DFSDM1_DMA3 104
  133. #define STM32_DMAMUX1_TIM15_CH1 105
  134. #define STM32_DMAMUX1_TIM15_UP 106
  135. #define STM32_DMAMUX1_TIM15_TRIG 107
  136. #define STM32_DMAMUX1_TIM15_COM 108
  137. #define STM32_DMAMUX1_TIM16_CH1 109
  138. #define STM32_DMAMUX1_TIM16_UP 110
  139. #define STM32_DMAMUX1_TIM17_CH1 111
  140. #define STM32_DMAMUX1_TIM17_UP 112
  141. #define STM32_DMAMUX1_SAI3A 113
  142. #define STM32_DMAMUX1_SAI3B 114
  143. #define STM32_DMAMUX1_ADC3 115
  144. /** @} */
  145. /**
  146. * @name DMAMUX2 request sources
  147. * @{
  148. */
  149. #define STM32_DMAMUX2_REQ_GEN0 1
  150. #define STM32_DMAMUX2_REQ_GEN1 2
  151. #define STM32_DMAMUX2_REQ_GEN2 3
  152. #define STM32_DMAMUX2_REQ_GEN3 4
  153. #define STM32_DMAMUX2_REQ_GEN4 5
  154. #define STM32_DMAMUX2_REQ_GEN5 6
  155. #define STM32_DMAMUX2_REQ_GEN6 7
  156. #define STM32_DMAMUX2_REQ_GEN7 8
  157. #define STM32_DMAMUX2_LP_UART1_RX 9
  158. #define STM32_DMAMUX2_LP_UART1_TX 10
  159. #define STM32_DMAMUX2_SPI6_RX 11
  160. #define STM32_DMAMUX2_SPI6_TX 12
  161. #define STM32_DMAMUX2_I2C4_RX 13
  162. #define STM32_DMAMUX2_I2C4_TX 14
  163. #define STM32_DMAMUX2_SAI4A 15
  164. #define STM32_DMAMUX2_SAI4B 16
  165. #define STM32_DMAMUX2_ADC3_REQ 17
  166. /** @} */
  167. /*===========================================================================*/
  168. /* Driver pre-compile time settings. */
  169. /*===========================================================================*/
  170. /*===========================================================================*/
  171. /* Derived constants and error checks. */
  172. /*===========================================================================*/
  173. /*===========================================================================*/
  174. /* Driver data structures and types. */
  175. /*===========================================================================*/
  176. /*===========================================================================*/
  177. /* Driver macros. */
  178. /*===========================================================================*/
  179. /*===========================================================================*/
  180. /* External declarations. */
  181. /*===========================================================================*/
  182. #ifdef __cplusplus
  183. extern "C" {
  184. #endif
  185. #ifdef __cplusplus
  186. }
  187. #endif
  188. #endif /* STM32_DMAMUX_H */
  189. /** @} */