stm32_isr.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 ISR handler header.
  16. *
  17. * @addtogroup STM32H7xx_ISR
  18. * @{
  19. */
  20. #ifndef STM32_ISR_H
  21. #define STM32_ISR_H
  22. /*===========================================================================*/
  23. /* Driver constants. */
  24. /*===========================================================================*/
  25. /*===========================================================================*/
  26. /* Driver pre-compile time settings. */
  27. /*===========================================================================*/
  28. /**
  29. * @name Configuration options
  30. * @{
  31. */
  32. /**
  33. * @brief EXTI0 interrupt priority level setting.
  34. */
  35. #if !defined(STM32_IRQ_EXTI0_PRIORITY) || defined(__DOXYGEN__)
  36. #define STM32_IRQ_EXTI0_PRIORITY 6
  37. #endif
  38. /**
  39. * @brief EXTI1 interrupt priority level setting.
  40. */
  41. #if !defined(STM32_IRQ_EXTI1_PRIORITY) || defined(__DOXYGEN__)
  42. #define STM32_IRQ_EXTI1_PRIORITY 6
  43. #endif
  44. /**
  45. * @brief EXTI2 interrupt priority level setting.
  46. */
  47. #if !defined(STM32_IRQ_EXTI2_PRIORITY) || defined(__DOXYGEN__)
  48. #define STM32_IRQ_EXTI2_PRIORITY 6
  49. #endif
  50. /**
  51. * @brief EXTI3 interrupt priority level setting.
  52. */
  53. #if !defined(STM32_IRQ_EXTI3_PRIORITY) || defined(__DOXYGEN__)
  54. #define STM32_IRQ_EXTI3_PRIORITY 6
  55. #endif
  56. /**
  57. * @brief EXTI4 interrupt priority level setting.
  58. */
  59. #if !defined(STM32_IRQ_EXTI4_PRIORITY) || defined(__DOXYGEN__)
  60. #define STM32_IRQ_EXTI4_PRIORITY 6
  61. #endif
  62. /**
  63. * @brief EXTI9..5 interrupt priority level setting.
  64. */
  65. #if !defined(STM32_IRQ_EXTI5_9_PRIORITY) || defined(__DOXYGEN__)
  66. #define STM32_IRQ_EXTI5_9_PRIORITY 6
  67. #endif
  68. /**
  69. * @brief EXTI15..10 interrupt priority level setting.
  70. */
  71. #if !defined(STM32_IRQ_EXTI10_15_PRIORITY) || defined(__DOXYGEN__)
  72. #define STM32_IRQ_EXTI10_15_PRIORITY 6
  73. #endif
  74. /**
  75. * @brief EXTI16 interrupt priority level setting.
  76. */
  77. #if !defined(STM32_IRQ_EXTI16_PRIORITY) || defined(__DOXYGEN__)
  78. #define STM32_IRQ_EXTI16_PRIORITY 6
  79. #endif
  80. /**
  81. * @brief EXTI17 interrupt priority level setting.
  82. */
  83. #if !defined(STM32_IRQ_EXTI17_PRIORITY) || defined(__DOXYGEN__)
  84. #define STM32_IRQ_EXTI17_PRIORITY 6
  85. #endif
  86. /**
  87. * @brief EXTI18 interrupt priority level setting.
  88. */
  89. #if !defined(STM32_IRQ_EXTI18_PRIORITY) || defined(__DOXYGEN__)
  90. #define STM32_IRQ_EXTI18_PRIORITY 6
  91. #endif
  92. /**
  93. * @brief EXTI19 interrupt priority level setting.
  94. */
  95. #if !defined(STM32_IRQ_EXTI19_PRIORITY) || defined(__DOXYGEN__)
  96. #define STM32_IRQ_EXTI19_PRIORITY 6
  97. #endif
  98. /**
  99. * @brief EXTI20 interrupt priority level setting.
  100. */
  101. #if !defined(STM32_IRQ_EXTI20_PRIORITY) || defined(__DOXYGEN__)
  102. #define STM32_IRQ_EXTI20_PRIORITY 6
  103. #endif
  104. /**
  105. * @brief EXTI21 interrupt priority level setting.
  106. */
  107. #if !defined(STM32_IRQ_EXTI21_PRIORITY) || defined(__DOXYGEN__)
  108. #define STM32_IRQ_EXTI21_PRIORITY 6
  109. #endif
  110. /**
  111. * @brief EXTI22 interrupt priority level setting.
  112. */
  113. #if !defined(STM32_IRQ_EXTI22_PRIORITY) || defined(__DOXYGEN__)
  114. #define STM32_IRQ_EXTI22_PRIORITY 6
  115. #endif
  116. /**
  117. * @brief EXTI23 interrupt priority level setting.
  118. */
  119. #if !defined(STM32_IRQ_EXTI23_PRIORITY) || defined(__DOXYGEN__)
  120. #define STM32_IRQ_EXTI23_PRIORITY 6
  121. #endif
  122. /** @} */
  123. /*===========================================================================*/
  124. /* Derived constants and error checks. */
  125. /*===========================================================================*/
  126. /*===========================================================================*/
  127. /* Driver data structures and types. */
  128. /*===========================================================================*/
  129. /*===========================================================================*/
  130. /* Driver macros. */
  131. /*===========================================================================*/
  132. /*===========================================================================*/
  133. /* External declarations. */
  134. /*===========================================================================*/
  135. #ifdef __cplusplus
  136. extern "C" {
  137. #endif
  138. void irqInit(void);
  139. void irqDeinit(void);
  140. #ifdef __cplusplus
  141. }
  142. #endif
  143. #endif /* STM32_ISR_H */
  144. /** @} */