|
| 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>© 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 | + |
| 28 | +/* Define to prevent recursive inclusion -------------------------------------*/ |
| 29 | +#ifndef __STM8S_IT_H |
| 30 | +#define __STM8S_IT_H |
| 31 | + |
| 32 | +/* Includes ------------------------------------------------------------------*/ |
| 33 | +#include "stm8s.h" |
| 34 | + |
| 35 | +/* Exported types ------------------------------------------------------------*/ |
| 36 | +/* Exported constants --------------------------------------------------------*/ |
| 37 | +/* Exported macro ------------------------------------------------------------*/ |
| 38 | +/* Exported functions ------------------------------------------------------- */ |
| 39 | +#ifdef _COSMIC_ |
| 40 | + void _stext(void); /* RESET startup routine */ |
| 41 | + INTERRUPT void NonHandledInterrupt(void); |
| 42 | +#endif /* _COSMIC_ */ |
| 43 | + |
| 44 | +#if !defined(_RAISONANCE_) && !defined(_SDCC_) // SDCC patch: interrupt keyword required after function |
| 45 | + INTERRUPT void TRAP_IRQHandler(void); /* TRAP */ |
| 46 | + INTERRUPT void TLI_IRQHandler(void); /* TLI */ |
| 47 | + INTERRUPT void AWU_IRQHandler(void); /* AWU */ |
| 48 | + INTERRUPT void CLK_IRQHandler(void); /* CLOCK */ |
| 49 | + INTERRUPT void EXTI_PORTA_IRQHandler(void); /* EXTI PORTA */ |
| 50 | + INTERRUPT void EXTI_PORTB_IRQHandler(void); /* EXTI PORTB */ |
| 51 | + INTERRUPT void EXTI_PORTC_IRQHandler(void); /* EXTI PORTC */ |
| 52 | + INTERRUPT void EXTI_PORTD_IRQHandler(void); /* EXTI PORTD */ |
| 53 | + INTERRUPT void EXTI_PORTE_IRQHandler(void); /* EXTI PORTE */ |
| 54 | + |
| 55 | +#if defined(STM8S903) || defined(STM8AF622x) |
| 56 | + INTERRUPT void EXTI_PORTF_IRQHandler(void); /* EXTI PORTF */ |
| 57 | +#endif /* (STM8S903) || (STM8AF622x) */ |
| 58 | + |
| 59 | +#if defined (STM8S208) || defined (STM8AF52Ax) |
| 60 | + INTERRUPT void CAN_RX_IRQHandler(void); /* CAN RX */ |
| 61 | + INTERRUPT void CAN_TX_IRQHandler(void); /* CAN TX/ER/SC */ |
| 62 | +#endif /* (STM8S208) || (STM8AF52Ax) */ |
| 63 | + |
| 64 | + INTERRUPT void SPI_IRQHandler(void); /* SPI */ |
| 65 | + INTERRUPT void TIM1_CAP_COM_IRQHandler(void); /* TIM1 CAP/COM */ |
| 66 | + INTERRUPT void TIM1_UPD_OVF_TRG_BRK_IRQHandler(void); /* TIM1 UPD/OVF/TRG/BRK */ |
| 67 | + |
| 68 | +#if defined(STM8S903) || defined(STM8AF622x) |
| 69 | + INTERRUPT void TIM5_UPD_OVF_BRK_TRG_IRQHandler(void); /* TIM5 UPD/OVF/BRK/TRG */ |
| 70 | + INTERRUPT void TIM5_CAP_COM_IRQHandler(void); /* TIM5 CAP/COM */ |
| 71 | +#else /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8S103) || (STM8AF52Ax) || (STM8AF62Ax) || (STM8A626x) */ |
| 72 | + INTERRUPT void TIM2_UPD_OVF_BRK_IRQHandler(void); /* TIM2 UPD/OVF/BRK */ |
| 73 | + INTERRUPT void TIM2_CAP_COM_IRQHandler(void); /* TIM2 CAP/COM */ |
| 74 | +#endif /* (STM8S903) || (STM8AF622x) */ |
| 75 | + |
| 76 | +#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \ |
| 77 | + defined(STM8S005) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8AF626x) |
| 78 | + INTERRUPT void TIM3_UPD_OVF_BRK_IRQHandler(void); /* TIM3 UPD/OVF/BRK */ |
| 79 | + INTERRUPT void TIM3_CAP_COM_IRQHandler(void); /* TIM3 CAP/COM */ |
| 80 | +#endif /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8AF52Ax) || (STM8AF62Ax) || (STM8A626x) */ |
| 81 | + |
| 82 | +#if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) || \ |
| 83 | + defined(STM8S003) || defined (STM8AF52Ax) || defined (STM8AF62Ax) || defined (STM8S903) |
| 84 | + INTERRUPT void UART1_TX_IRQHandler(void); /* UART1 TX */ |
| 85 | + INTERRUPT void UART1_RX_IRQHandler(void); /* UART1 RX */ |
| 86 | +#endif /* (STM8S208) || (STM8S207) || (STM8S903) || (STM8S103) || (STM8AF52Ax) || (STM8AF62Ax) */ |
| 87 | + |
| 88 | +#if defined (STM8AF622x) |
| 89 | + INTERRUPT void UART4_TX_IRQHandler(void); /* UART4 TX */ |
| 90 | + INTERRUPT void UART4_RX_IRQHandler(void); /* UART4 RX */ |
| 91 | +#endif /* (STM8AF622x) */ |
| 92 | + |
| 93 | + INTERRUPT void I2C_IRQHandler(void); /* I2C */ |
| 94 | + |
| 95 | +#if defined(STM8S105) || defined(STM8S005) || defined (STM8AF626x) |
| 96 | + INTERRUPT void UART2_RX_IRQHandler(void); /* UART2 RX */ |
| 97 | + INTERRUPT void UART2_TX_IRQHandler(void); /* UART2 TX */ |
| 98 | +#endif /* (STM8S105) || (STM8AF626x) */ |
| 99 | + |
| 100 | +#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax) |
| 101 | + INTERRUPT void UART3_RX_IRQHandler(void); /* UART3 RX */ |
| 102 | + INTERRUPT void UART3_TX_IRQHandler(void); /* UART3 TX */ |
| 103 | +#endif /* (STM8S207) || (STM8S208) || (STM8AF62Ax) || (STM8AF52Ax) */ |
| 104 | + |
| 105 | +#if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax) |
| 106 | + INTERRUPT void ADC2_IRQHandler(void); /* ADC2 */ |
| 107 | +#else /* (STM8S105) || (STM8S103) || (STM8S903) || (STM8AF622x) */ |
| 108 | + INTERRUPT void ADC1_IRQHandler(void); /* ADC1 */ |
| 109 | +#endif /* (STM8S207) || (STM8S208) || (STM8AF62Ax) || (STM8AF52Ax) */ |
| 110 | + |
| 111 | +#if defined(STM8S903) || defined(STM8AF622x) |
| 112 | + INTERRUPT void TIM6_UPD_OVF_TRG_IRQHandler(void); /* TIM6 UPD/OVF/TRG */ |
| 113 | +#else /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8S103) || (STM8AF62Ax) || (STM8AF52Ax) || (STM8AF626x) */ |
| 114 | + INTERRUPT void TIM4_UPD_OVF_IRQHandler(void); /* TIM4 UPD/OVF */ |
| 115 | +#endif /* (STM8S903) || (STM8AF622x) */ |
| 116 | + INTERRUPT void EEPROM_EEC_IRQHandler(void); /* EEPROM ECC CORRECTION */ |
| 117 | +#endif /* _RAISONANCE_ */ |
| 118 | + |
| 119 | +#endif /* __STM8S_IT_H */ |
| 120 | + |
| 121 | + |
| 122 | +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
0 commit comments