py32f0xx_it.c 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. ******************************************************************************
  3. * @file py32f0xx_it.c
  4. * @author MCU Application Team
  5. * @brief Interrupt Service Routines.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2023 Puya Semiconductor Co.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by Puya 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. * @attention
  19. *
  20. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  21. * All rights reserved.</center></h2>
  22. *
  23. * This software component is licensed by ST under BSD 3-Clause license,
  24. * the "License"; You may not use this file except in compliance with the
  25. * License. You may obtain a copy of the License at:
  26. * opensource.org/licenses/BSD-3-Clause
  27. *
  28. ******************************************************************************
  29. */
  30. /* Includes ------------------------------------------------------------------*/
  31. #include "main.h"
  32. #include "py32f0xx_it.h"
  33. /* Private includes ----------------------------------------------------------*/
  34. extern TIM_HandleTypeDef TimHandle;
  35. extern UART_HandleTypeDef DebugUartHandle;
  36. /* Private typedef -----------------------------------------------------------*/
  37. /* Private define ------------------------------------------------------------*/
  38. /* Private macro -------------------------------------------------------------*/
  39. /* Private variables ---------------------------------------------------------*/
  40. /* Private function prototypes -----------------------------------------------*/
  41. /* Private user code ---------------------------------------------------------*/
  42. /* External variables --------------------------------------------------------*/
  43. /******************************************************************************/
  44. /* Cortex-M0+ Processor Interruption and Exception Handlers */
  45. /******************************************************************************/
  46. /**
  47. * @brief This function handles Non maskable interrupt.
  48. */
  49. void NMI_Handler(void)
  50. {
  51. }
  52. /**
  53. * @brief This function handles Hard fault interrupt.
  54. */
  55. void HardFault_Handler(void)
  56. {
  57. while (1)
  58. {
  59. }
  60. }
  61. /**
  62. * @brief This function handles System service call via SWI instruction.
  63. */
  64. void SVC_Handler(void)
  65. {
  66. }
  67. /**
  68. * @brief This function handles Pendable request for system service.
  69. */
  70. void PendSV_Handler(void)
  71. {
  72. }
  73. /**
  74. * @brief This function handles System tick timer.
  75. */
  76. void SysTick_Handler(void)
  77. {
  78. HAL_IncTick();
  79. }
  80. /******************************************************************************/
  81. /* PY32F0xx Peripheral Interrupt Handlers */
  82. /* Add here the Interrupt Handlers for the used peripherals. */
  83. /* For the available peripheral interrupt handler names, */
  84. /* please refer to the startup file. */
  85. /******************************************************************************/
  86. /**
  87. * @brief This function handles TIM3 Interrupt .
  88. */
  89. void TIM3_IRQHandler(void)
  90. {
  91. HAL_TIM_IRQHandler(&TimHandle);
  92. }
  93. /**
  94. * @brief This function handles USART2 Interrupt .
  95. */
  96. void USART2_IRQHandler(void)
  97. {
  98. HAL_UART_IRQHandler(&DebugUartHandle);
  99. }
  100. /************************ (C) COPYRIGHT Puya *****END OF FILE******************/