stm32g0xx_it.c 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file GPIO/GPIO_IOToggle/Src/stm32g0xx_it.c
  5. * @author MCD Application Team
  6. * @brief Main Interrupt Service Routines.
  7. * This file provides template for all exceptions handler and
  8. * peripherals interrupt service routine.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * Copyright (c) 2019-2020 STMicroelectronics.
  13. * All rights reserved.
  14. *
  15. * This software is licensed under terms that can be found in the LICENSE file
  16. * in the root directory of this software component.
  17. * If no LICENSE file comes with this software, it is provided AS-IS.
  18. *
  19. ******************************************************************************
  20. */
  21. /* USER CODE END Header */
  22. /* Includes ------------------------------------------------------------------*/
  23. #include "main.h"
  24. #include "stm32g0xx_it.h"
  25. /* Private includes ----------------------------------------------------------*/
  26. /* USER CODE BEGIN Includes */
  27. /* USER CODE END Includes */
  28. /* Private typedef -----------------------------------------------------------*/
  29. /* USER CODE BEGIN TD */
  30. /* USER CODE END TD */
  31. /* Private define ------------------------------------------------------------*/
  32. /* USER CODE BEGIN PD */
  33. /* USER CODE END PD */
  34. /* Private macro -------------------------------------------------------------*/
  35. /* USER CODE BEGIN PM */
  36. /* USER CODE END PM */
  37. /* Private variables ---------------------------------------------------------*/
  38. /* USER CODE BEGIN PV */
  39. /* USER CODE END PV */
  40. /* Private function prototypes -----------------------------------------------*/
  41. /* USER CODE BEGIN PFP */
  42. /* USER CODE END PFP */
  43. /* Private user code ---------------------------------------------------------*/
  44. /* USER CODE BEGIN 0 */
  45. /* USER CODE END 0 */
  46. /* External variables --------------------------------------------------------*/
  47. /* USER CODE BEGIN EV */
  48. /* USER CODE END EV */
  49. /******************************************************************************/
  50. /* Cortex-M0+ Processor Interruption and Exception Handlers */
  51. /******************************************************************************/
  52. /**
  53. * @brief This function handles Non maskable interrupt.
  54. */
  55. void NMI_Handler(void)
  56. {
  57. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  58. /* USER CODE END NonMaskableInt_IRQn 0 */
  59. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  60. /* USER CODE END NonMaskableInt_IRQn 1 */
  61. }
  62. /**
  63. * @brief This function handles Hard fault interrupt.
  64. */
  65. void HardFault_Handler(void)
  66. {
  67. /* USER CODE BEGIN HardFault_IRQn 0 */
  68. /* USER CODE END HardFault_IRQn 0 */
  69. while (1)
  70. {
  71. /* USER CODE BEGIN W1_HardFault_IRQn 0 */
  72. /* USER CODE END W1_HardFault_IRQn 0 */
  73. }
  74. }
  75. /**
  76. * @brief This function handles System service call via SWI instruction.
  77. */
  78. void SVC_Handler(void)
  79. {
  80. /* USER CODE BEGIN SVC_IRQn 0 */
  81. /* USER CODE END SVC_IRQn 0 */
  82. /* USER CODE BEGIN SVC_IRQn 1 */
  83. /* USER CODE END SVC_IRQn 1 */
  84. }
  85. /**
  86. * @brief This function handles Pendable request for system service.
  87. */
  88. void PendSV_Handler(void)
  89. {
  90. /* USER CODE BEGIN PendSV_IRQn 0 */
  91. /* USER CODE END PendSV_IRQn 0 */
  92. /* USER CODE BEGIN PendSV_IRQn 1 */
  93. /* USER CODE END PendSV_IRQn 1 */
  94. }
  95. /**
  96. * @brief This function handles System tick timer.
  97. */
  98. void SysTick_Handler(void)
  99. {
  100. /* USER CODE BEGIN SysTick_IRQn 0 */
  101. /* USER CODE END SysTick_IRQn 0 */
  102. HAL_IncTick();
  103. /* USER CODE BEGIN SysTick_IRQn 1 */
  104. /* USER CODE END SysTick_IRQn 1 */
  105. }
  106. /******************************************************************************/
  107. /* STM32G0xx Peripheral Interrupt Handlers */
  108. /* Add here the Interrupt Handlers for the used peripherals. */
  109. /* For the available peripheral interrupt handler names, */
  110. /* please refer to the startup file (startup_stm32g0xx.s). */
  111. /******************************************************************************/
  112. /* USER CODE BEGIN 1 */
  113. /* USER CODE END 1 */