stm8s_it.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /**
  2. ******************************************************************************
  3. * @file stm8s_it.h
  4. * @author MCD Application Team
  5. * @version V2.2.0
  6. * @date 30-September-2014
  7. * @brief This file contains the headers of the interrupt handlers
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __STM8S_IT_H
  29. #define __STM8S_IT_H
  30. /* Includes ------------------------------------------------------------------*/
  31. #include "stm8s.h"
  32. /* Exported types ------------------------------------------------------------*/
  33. /* Exported constants --------------------------------------------------------*/
  34. /* Exported macro ------------------------------------------------------------*/
  35. /* Exported functions ------------------------------------------------------- */
  36. #ifdef _COSMIC_
  37. void _stext(void); /* RESET startup routine */
  38. INTERRUPT void NonHandledInterrupt(void);
  39. #endif /* _COSMIC_ */
  40. #ifndef _RAISONANCE_
  41. INTERRUPT void TRAP_IRQHandler(void); /* TRAP */
  42. INTERRUPT void TLI_IRQHandler(void); /* TLI */
  43. INTERRUPT void AWU_IRQHandler(void); /* AWU */
  44. INTERRUPT void CLK_IRQHandler(void); /* CLOCK */
  45. INTERRUPT void EXTI_PORTA_IRQHandler(void); /* EXTI PORTA */
  46. INTERRUPT void EXTI_PORTB_IRQHandler(void); /* EXTI PORTB */
  47. INTERRUPT void EXTI_PORTC_IRQHandler(void); /* EXTI PORTC */
  48. INTERRUPT void EXTI_PORTD_IRQHandler(void); /* EXTI PORTD */
  49. INTERRUPT void EXTI_PORTE_IRQHandler(void); /* EXTI PORTE */
  50. #if defined(STM8S903) || defined(STM8AF622x)
  51. INTERRUPT void EXTI_PORTF_IRQHandler(void); /* EXTI PORTF */
  52. #endif /* (STM8S903) || (STM8AF622x) */
  53. #if defined (STM8S208) || defined (STM8AF52Ax)
  54. INTERRUPT void CAN_RX_IRQHandler(void); /* CAN RX */
  55. INTERRUPT void CAN_TX_IRQHandler(void); /* CAN TX/ER/SC */
  56. #endif /* (STM8S208) || (STM8AF52Ax) */
  57. INTERRUPT void SPI_IRQHandler(void); /* SPI */
  58. INTERRUPT void TIM1_CAP_COM_IRQHandler(void); /* TIM1 CAP/COM */
  59. INTERRUPT void TIM1_UPD_OVF_TRG_BRK_IRQHandler(void); /* TIM1 UPD/OVF/TRG/BRK */
  60. #if defined(STM8S903) || defined(STM8AF622x)
  61. INTERRUPT void TIM5_UPD_OVF_BRK_TRG_IRQHandler(void); /* TIM5 UPD/OVF/BRK/TRG */
  62. INTERRUPT void TIM5_CAP_COM_IRQHandler(void); /* TIM5 CAP/COM */
  63. #else /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8S103) || (STM8AF52Ax) || (STM8AF62Ax) || (STM8A626x) */
  64. INTERRUPT void TIM2_UPD_OVF_BRK_IRQHandler(void); /* TIM2 UPD/OVF/BRK */
  65. INTERRUPT void TIM2_CAP_COM_IRQHandler(void); /* TIM2 CAP/COM */
  66. #endif /* (STM8S903) || (STM8AF622x) */
  67. #if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \
  68. defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x)
  69. INTERRUPT void TIM3_UPD_OVF_BRK_IRQHandler(void); /* TIM3 UPD/OVF/BRK */
  70. INTERRUPT void TIM3_CAP_COM_IRQHandler(void); /* TIM3 CAP/COM */
  71. #endif /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8AF52Ax) || (STM8AF62Ax) || (STM8A626x) */
  72. #if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) || \
  73. defined(STM8S003) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8S903)
  74. INTERRUPT void UART1_TX_IRQHandler(void); /* UART1 TX */
  75. INTERRUPT void UART1_RX_IRQHandler(void); /* UART1 RX */
  76. #endif /* (STM8S208) || (STM8S207) || (STM8S903) || (STM8S103) || (STM8AF52Ax) || (STM8AF62Ax) */
  77. #if defined (STM8AF622x)
  78. INTERRUPT void UART4_TX_IRQHandler(void); /* UART4 TX */
  79. INTERRUPT void UART4_RX_IRQHandler(void); /* UART4 RX */
  80. #endif /* (STM8AF622x) */
  81. INTERRUPT void I2C_IRQHandler(void); /* I2C */
  82. #if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x)
  83. INTERRUPT void UART2_RX_IRQHandler(void); /* UART2 RX */
  84. INTERRUPT void UART2_TX_IRQHandler(void); /* UART2 TX */
  85. #endif /* (STM8S105) || (STM8AF626x) */
  86. #if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
  87. INTERRUPT void UART3_RX_IRQHandler(void); /* UART3 RX */
  88. INTERRUPT void UART3_TX_IRQHandler(void); /* UART3 TX */
  89. #endif /* (STM8S207) || (STM8S208) || (STM8AF62Ax) || (STM8AF52Ax) */
  90. #if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
  91. INTERRUPT void ADC2_IRQHandler(void); /* ADC2 */
  92. #else /* (STM8S105) || (STM8S103) || (STM8S903) || (STM8AF622x) */
  93. INTERRUPT void ADC1_IRQHandler(void); /* ADC1 */
  94. #endif /* (STM8S207) || (STM8S208) || (STM8AF62Ax) || (STM8AF52Ax) */
  95. #if defined(STM8S903) || defined(STM8AF622x)
  96. INTERRUPT void TIM6_UPD_OVF_TRG_IRQHandler(void); /* TIM6 UPD/OVF/TRG */
  97. #else /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8S103) || (STM8AF62Ax) || (STM8AF52Ax) || (STM8AF626x) */
  98. INTERRUPT void TIM4_UPD_OVF_IRQHandler(void); /* TIM4 UPD/OVF */
  99. #endif /* (STM8S903) || (STM8AF622x) */
  100. INTERRUPT void EEPROM_EEC_IRQHandler(void); /* EEPROM ECC CORRECTION */
  101. #endif /* _RAISONANCE_ */
  102. #endif /* __STM8S_IT_H */
  103. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/