stm32g0xx_it.c 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file stm32g0xx_it.c
  5. * @brief Interrupt Service Routines.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "main.h"
  22. #include "stm32g0xx_it.h"
  23. /* Private includes ----------------------------------------------------------*/
  24. /* USER CODE BEGIN Includes */
  25. /* USER CODE END Includes */
  26. /* Private typedef -----------------------------------------------------------*/
  27. /* USER CODE BEGIN TD */
  28. /* USER CODE END TD */
  29. /* Private define ------------------------------------------------------------*/
  30. /* USER CODE BEGIN PD */
  31. /* USER CODE END PD */
  32. /* Private macro -------------------------------------------------------------*/
  33. /* USER CODE BEGIN PM */
  34. /* USER CODE END PM */
  35. /* Private variables ---------------------------------------------------------*/
  36. /* USER CODE BEGIN PV */
  37. /* USER CODE END PV */
  38. /* Private function prototypes -----------------------------------------------*/
  39. /* USER CODE BEGIN PFP */
  40. /* USER CODE END PFP */
  41. /* Private user code ---------------------------------------------------------*/
  42. /* USER CODE BEGIN 0 */
  43. /* USER CODE END 0 */
  44. /* External variables --------------------------------------------------------*/
  45. /* USER CODE BEGIN EV */
  46. /* USER CODE END EV */
  47. /******************************************************************************/
  48. /* Cortex-M0+ Processor Interruption and Exception Handlers */
  49. /******************************************************************************/
  50. /**
  51. * @brief This function handles Non maskable interrupt.
  52. */
  53. void NMI_Handler(void)
  54. {
  55. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  56. /* USER CODE END NonMaskableInt_IRQn 0 */
  57. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  58. /* USER CODE END NonMaskableInt_IRQn 1 */
  59. }
  60. /**
  61. * @brief This function handles Hard fault interrupt.
  62. */
  63. void HardFault_Handler(void)
  64. {
  65. /* USER CODE BEGIN HardFault_IRQn 0 */
  66. /* USER CODE END HardFault_IRQn 0 */
  67. while (1)
  68. {
  69. /* USER CODE BEGIN W1_HardFault_IRQn 0 */
  70. /* USER CODE END W1_HardFault_IRQn 0 */
  71. }
  72. }
  73. /**
  74. * @brief This function handles System service call via SWI instruction.
  75. */
  76. void SVC_Handler(void)
  77. {
  78. /* USER CODE BEGIN SVC_IRQn 0 */
  79. /* USER CODE END SVC_IRQn 0 */
  80. /* USER CODE BEGIN SVC_IRQn 1 */
  81. /* USER CODE END SVC_IRQn 1 */
  82. }
  83. /**
  84. * @brief This function handles Pendable request for system service.
  85. */
  86. void PendSV_Handler(void)
  87. {
  88. /* USER CODE BEGIN PendSV_IRQn 0 */
  89. /* USER CODE END PendSV_IRQn 0 */
  90. /* USER CODE BEGIN PendSV_IRQn 1 */
  91. /* USER CODE END PendSV_IRQn 1 */
  92. }
  93. /**
  94. * @brief This function handles System tick timer.
  95. */
  96. void SysTick_Handler(void)
  97. {
  98. /* USER CODE BEGIN SysTick_IRQn 0 */
  99. /* USER CODE END SysTick_IRQn 0 */
  100. HAL_IncTick();
  101. /* USER CODE BEGIN SysTick_IRQn 1 */
  102. /* USER CODE END SysTick_IRQn 1 */
  103. }
  104. /******************************************************************************/
  105. /* STM32G0xx Peripheral Interrupt Handlers */
  106. /* Add here the Interrupt Handlers for the used peripherals. */
  107. /* For the available peripheral interrupt handler names, */
  108. /* please refer to the startup file (startup_stm32g0xx.s). */
  109. /******************************************************************************/
  110. /* USER CODE BEGIN 1 */
  111. /* USER CODE END 1 */
  112. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/