stm32_isr.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 STM32L0xx/stm32_isr.h
  15. * @brief STM32L0xx ISR handler header.
  16. *
  17. * @addtogroup STM32L0xx_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..1 interrupt priority level setting.
  34. */
  35. #if !defined(STM32_IRQ_EXTI0_1_PRIORITY) || defined(__DOXYGEN__)
  36. #define STM32_IRQ_EXTI0_1_PRIORITY 3
  37. #endif
  38. /**
  39. * @brief EXTI2..3 interrupt priority level setting.
  40. */
  41. #if !defined(STM32_IRQ_EXTI2_3_PRIORITY) || defined(__DOXYGEN__)
  42. #define STM32_IRQ_EXTI2_3_PRIORITY 3
  43. #endif
  44. /**
  45. * @brief EXTI4..15 interrupt priority level setting.
  46. */
  47. #if !defined(STM32_IRQ_EXTI4_15_PRIORITY) || defined(__DOXYGEN__)
  48. #define STM32_IRQ_EXTI4_15_PRIORITY 3
  49. #endif
  50. /**
  51. * @brief EXTI16 (PVD) interrupt priority level setting.
  52. */
  53. #if !defined(STM32_IRQ_EXTI16_PRIORITY) || defined(__DOXYGEN__)
  54. #define STM32_IRQ_EXTI16_PRIORITY 3
  55. #endif
  56. /**
  57. * @brief EXTI17,19,20 interrupt priority level setting.
  58. */
  59. #if !defined(STM32_IRQ_EXTI17_20_PRIORITY) || defined(__DOXYGEN__)
  60. #define STM32_IRQ_EXTI17_20_PRIORITY 3
  61. #endif
  62. /**
  63. * @brief EXTI21,22 interrupt priority level setting.
  64. */
  65. #if !defined(STM32_IRQ_EXTI21_22_PRIORITY) || defined(__DOXYGEN__)
  66. #define STM32_IRQ_EXTI21_22_PRIORITY 3
  67. #endif
  68. /** @} */
  69. /*===========================================================================*/
  70. /* Derived constants and error checks. */
  71. /*===========================================================================*/
  72. /*===========================================================================*/
  73. /* Driver data structures and types. */
  74. /*===========================================================================*/
  75. /*===========================================================================*/
  76. /* Driver macros. */
  77. /*===========================================================================*/
  78. /*===========================================================================*/
  79. /* External declarations. */
  80. /*===========================================================================*/
  81. #ifdef __cplusplus
  82. extern "C" {
  83. #endif
  84. void irqInit(void);
  85. void irqDeinit(void);
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif /* STM32_ISR_H */
  90. /** @} */