STM8S/A Standard Peripherals Firmware Library: stm8s_it.c Source File

STM8S/A

STM8S_StdPeriph_Template/stm8s_it.c
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm8s_it.c
00004   * @author  MCD Application Team
00005   * @version V2.2.0
00006   * @date    30-September-2014
00007   * @brief   Main Interrupt Service Routines.
00008   *          This file provides template for all peripherals interrupt service 
00009   *          routine.
00010    ******************************************************************************
00011   * @attention
00012   *
00013   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00014   *
00015   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00016   * You may not use this file except in compliance with the License.
00017   * You may obtain a copy of the License at:
00018   *
00019   *        http://www.st.com/software_license_agreement_liberty_v2
00020   *
00021   * Unless required by applicable law or agreed to in writing, software 
00022   * distributed under the License is distributed on an "AS IS" BASIS, 
00023   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   * See the License for the specific language governing permissions and
00025   * limitations under the License.
00026   *
00027   ******************************************************************************
00028   */ 
00029 
00030 /* Includes ------------------------------------------------------------------*/
00031 #include "stm8s_it.h"
00032 
00033 /** @addtogroup Template_Project
00034   * @{
00035   */
00036 
00037 /* Private typedef -----------------------------------------------------------*/
00038 /* Private define ------------------------------------------------------------*/
00039 /* Private macro -------------------------------------------------------------*/
00040 /* Private variables ---------------------------------------------------------*/
00041 /* Private function prototypes -----------------------------------------------*/
00042 /* Private functions ---------------------------------------------------------*/
00043 /* Public functions ----------------------------------------------------------*/
00044 
00045 #ifdef _COSMIC_
00046 /**
00047   * @brief Dummy Interrupt routine
00048   * @par Parameters:
00049   * None
00050   * @retval
00051   * None
00052 */
00053 INTERRUPT_HANDLER(NonHandledInterrupt, 25)
00054 {
00055   /* In order to detect unexpected events during development,
00056      it is recommended to set a breakpoint on the following instruction.
00057   */
00058 }
00059 #endif /*_COSMIC_*/
00060 
00061 /**
00062   * @brief TRAP Interrupt routine
00063   * @param  None
00064   * @retval None
00065   */
00066 INTERRUPT_HANDLER_TRAP(TRAP_IRQHandler)
00067 {
00068   /* In order to detect unexpected events during development,
00069      it is recommended to set a breakpoint on the following instruction.
00070   */
00071 }
00072 
00073 /**
00074   * @brief Top Level Interrupt routine.
00075   * @param  None
00076   * @retval None
00077   */
00078 INTERRUPT_HANDLER(TLI_IRQHandler, 0)
00079 
00080 {
00081   /* In order to detect unexpected events during development,
00082      it is recommended to set a breakpoint on the following instruction.
00083   */
00084 }
00085 
00086 /**
00087   * @brief Auto Wake Up Interrupt routine.
00088   * @param  None
00089   * @retval None
00090   */
00091 INTERRUPT_HANDLER(AWU_IRQHandler, 1)
00092 {
00093   /* In order to detect unexpected events during development,
00094      it is recommended to set a breakpoint on the following instruction.
00095   */
00096 }
00097 
00098 /**
00099   * @brief Clock Controller Interrupt routine.
00100   * @param  None
00101   * @retval None
00102   */
00103 INTERRUPT_HANDLER(CLK_IRQHandler, 2)
00104 {
00105   /* In order to detect unexpected events during development,
00106      it is recommended to set a breakpoint on the following instruction.
00107   */
00108 }
00109 
00110 /**
00111   * @brief External Interrupt PORTA Interrupt routine.
00112   * @param  None
00113   * @retval None
00114   */
00115 INTERRUPT_HANDLER(EXTI_PORTA_IRQHandler, 3)
00116 {
00117   /* In order to detect unexpected events during development,
00118      it is recommended to set a breakpoint on the following instruction.
00119   */
00120 }
00121 
00122 /**
00123   * @brief External Interrupt PORTB Interrupt routine.
00124   * @param  None
00125   * @retval None
00126   */
00127 INTERRUPT_HANDLER(EXTI_PORTB_IRQHandler, 4)
00128 {
00129   /* In order to detect unexpected events during development,
00130      it is recommended to set a breakpoint on the following instruction.
00131   */
00132 }
00133 
00134 /**
00135   * @brief External Interrupt PORTC Interrupt routine.
00136   * @param  None
00137   * @retval None
00138   */
00139 INTERRUPT_HANDLER(EXTI_PORTC_IRQHandler, 5)
00140 {
00141   /* In order to detect unexpected events during development,
00142      it is recommended to set a breakpoint on the following instruction.
00143   */
00144 }
00145 
00146 /**
00147   * @brief External Interrupt PORTD Interrupt routine.
00148   * @param  None
00149   * @retval None
00150   */
00151 INTERRUPT_HANDLER(EXTI_PORTD_IRQHandler, 6)
00152 {
00153   /* In order to detect unexpected events during development,
00154      it is recommended to set a breakpoint on the following instruction.
00155   */
00156 }
00157 
00158 /**
00159   * @brief External Interrupt PORTE Interrupt routine.
00160   * @param  None
00161   * @retval None
00162   */
00163 INTERRUPT_HANDLER(EXTI_PORTE_IRQHandler, 7)
00164 {
00165   /* In order to detect unexpected events during development,
00166      it is recommended to set a breakpoint on the following instruction.
00167   */
00168 }
00169 
00170 #if defined (STM8S903) || defined (STM8AF622x) 
00171 /**
00172   * @brief External Interrupt PORTF Interrupt routine.
00173   * @param  None
00174   * @retval None
00175   */
00176  INTERRUPT_HANDLER(EXTI_PORTF_IRQHandler, 8)
00177  {
00178   /* In order to detect unexpected events during development,
00179      it is recommended to set a breakpoint on the following instruction.
00180   */
00181  }
00182 #endif /* (STM8S903) || (STM8AF622x) */
00183 
00184 #if defined (STM8S208) || defined (STM8AF52Ax)
00185 /**
00186   * @brief CAN RX Interrupt routine.
00187   * @param  None
00188   * @retval None
00189   */
00190  INTERRUPT_HANDLER(CAN_RX_IRQHandler, 8)
00191  {
00192   /* In order to detect unexpected events during development,
00193      it is recommended to set a breakpoint on the following instruction.
00194   */
00195  }
00196 
00197 /**
00198   * @brief CAN TX Interrupt routine.
00199   * @param  None
00200   * @retval None
00201   */
00202  INTERRUPT_HANDLER(CAN_TX_IRQHandler, 9)
00203  {
00204   /* In order to detect unexpected events during development,
00205      it is recommended to set a breakpoint on the following instruction.
00206   */
00207  }
00208 #endif /* (STM8S208) || (STM8AF52Ax) */
00209 
00210 /**
00211   * @brief SPI Interrupt routine.
00212   * @param  None
00213   * @retval None
00214   */
00215 INTERRUPT_HANDLER(SPI_IRQHandler, 10)
00216 {
00217   /* In order to detect unexpected events during development,
00218      it is recommended to set a breakpoint on the following instruction.
00219   */
00220 }
00221 
00222 /**
00223   * @brief Timer1 Update/Overflow/Trigger/Break Interrupt routine.
00224   * @param  None
00225   * @retval None
00226   */
00227 INTERRUPT_HANDLER(TIM1_UPD_OVF_TRG_BRK_IRQHandler, 11)
00228 {
00229   /* In order to detect unexpected events during development,
00230      it is recommended to set a breakpoint on the following instruction.
00231   */
00232 }
00233 
00234 /**
00235   * @brief Timer1 Capture/Compare Interrupt routine.
00236   * @param  None
00237   * @retval None
00238   */
00239 INTERRUPT_HANDLER(TIM1_CAP_COM_IRQHandler, 12)
00240 {
00241   /* In order to detect unexpected events during development,
00242      it is recommended to set a breakpoint on the following instruction.
00243   */
00244 }
00245 
00246 #if defined (STM8S903) || defined (STM8AF622x)
00247 /**
00248   * @brief Timer5 Update/Overflow/Break/Trigger Interrupt routine.
00249   * @param  None
00250   * @retval None
00251   */
00252  INTERRUPT_HANDLER(TIM5_UPD_OVF_BRK_TRG_IRQHandler, 13)
00253  {
00254   /* In order to detect unexpected events during development,
00255      it is recommended to set a breakpoint on the following instruction.
00256   */
00257  }
00258  
00259 /**
00260   * @brief Timer5 Capture/Compare Interrupt routine.
00261   * @param  None
00262   * @retval None
00263   */
00264  INTERRUPT_HANDLER(TIM5_CAP_COM_IRQHandler, 14)
00265  {
00266   /* In order to detect unexpected events during development,
00267      it is recommended to set a breakpoint on the following instruction.
00268   */
00269  }
00270 
00271 #else /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8S103) || (STM8AF62Ax) || (STM8AF52Ax) || (STM8AF626x) */
00272 /**
00273   * @brief Timer2 Update/Overflow/Break Interrupt routine.
00274   * @param  None
00275   * @retval None
00276   */
00277  INTERRUPT_HANDLER(TIM2_UPD_OVF_BRK_IRQHandler, 13)
00278  {
00279   /* In order to detect unexpected events during development,
00280      it is recommended to set a breakpoint on the following instruction.
00281   */
00282  }
00283 
00284 /**
00285   * @brief Timer2 Capture/Compare Interrupt routine.
00286   * @param  None
00287   * @retval None
00288   */
00289  INTERRUPT_HANDLER(TIM2_CAP_COM_IRQHandler, 14)
00290  {
00291   /* In order to detect unexpected events during development,
00292      it is recommended to set a breakpoint on the following instruction.
00293   */
00294  }
00295 #endif /* (STM8S903) || (STM8AF622x) */
00296 
00297 #if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S105) || \
00298     defined(STM8S005) ||  defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8AF626x)
00299 /**
00300   * @brief Timer3 Update/Overflow/Break Interrupt routine.
00301   * @param  None
00302   * @retval None
00303   */
00304  INTERRUPT_HANDLER(TIM3_UPD_OVF_BRK_IRQHandler, 15)
00305  {
00306   /* In order to detect unexpected events during development,
00307      it is recommended to set a breakpoint on the following instruction.
00308   */
00309  }
00310 
00311 /**
00312   * @brief Timer3 Capture/Compare Interrupt routine.
00313   * @param  None
00314   * @retval None
00315   */
00316  INTERRUPT_HANDLER(TIM3_CAP_COM_IRQHandler, 16)
00317  {
00318   /* In order to detect unexpected events during development,
00319      it is recommended to set a breakpoint on the following instruction.
00320   */
00321  }
00322 #endif /* (STM8S208) || (STM8S207) || (STM8S105) || (STM8AF62Ax) || (STM8AF52Ax) || (STM8AF626x) */
00323 
00324 #if defined (STM8S208) || defined(STM8S207) || defined(STM8S007) || defined(STM8S103) || \
00325     defined(STM8S003) ||  defined (STM8AF62Ax) || defined (STM8AF52Ax) || defined (STM8S903)
00326 /**
00327   * @brief UART1 TX Interrupt routine.
00328   * @param  None
00329   * @retval None
00330   */
00331  INTERRUPT_HANDLER(UART1_TX_IRQHandler, 17)
00332  {
00333     /* In order to detect unexpected events during development,
00334        it is recommended to set a breakpoint on the following instruction.
00335     */
00336  }
00337 
00338 /**
00339   * @brief UART1 RX Interrupt routine.
00340   * @param  None
00341   * @retval None
00342   */
00343  INTERRUPT_HANDLER(UART1_RX_IRQHandler, 18)
00344  {
00345     /* In order to detect unexpected events during development,
00346        it is recommended to set a breakpoint on the following instruction.
00347     */
00348  }
00349 #endif /* (STM8S208) || (STM8S207) || (STM8S103) || (STM8S903) || (STM8AF62Ax) || (STM8AF52Ax) */
00350 
00351 #if defined(STM8AF622x)
00352 /**
00353   * @brief UART4 TX Interrupt routine.
00354   * @param  None
00355   * @retval None
00356   */
00357  INTERRUPT_HANDLER(UART4_TX_IRQHandler, 17)
00358  {
00359     /* In order to detect unexpected events during development,
00360        it is recommended to set a breakpoint on the following instruction.
00361     */
00362  }
00363 
00364 /**
00365   * @brief UART4 RX Interrupt routine.
00366   * @param  None
00367   * @retval None
00368   */
00369  INTERRUPT_HANDLER(UART4_RX_IRQHandler, 18)
00370  {
00371     /* In order to detect unexpected events during development,
00372        it is recommended to set a breakpoint on the following instruction.
00373     */
00374  }
00375 #endif /* (STM8AF622x) */
00376 
00377 /**
00378   * @brief I2C Interrupt routine.
00379   * @param  None
00380   * @retval None
00381   */
00382 INTERRUPT_HANDLER(I2C_IRQHandler, 19)
00383 {
00384   /* In order to detect unexpected events during development,
00385      it is recommended to set a breakpoint on the following instruction.
00386   */
00387 }
00388 
00389 #if defined(STM8S105) || defined(STM8S005) ||  defined (STM8AF626x)
00390 /**
00391   * @brief UART2 TX interrupt routine.
00392   * @param  None
00393   * @retval None
00394   */
00395  INTERRUPT_HANDLER(UART2_TX_IRQHandler, 20)
00396  {
00397     /* In order to detect unexpected events during development,
00398        it is recommended to set a breakpoint on the following instruction.
00399     */
00400  }
00401 
00402 /**
00403   * @brief UART2 RX interrupt routine.
00404   * @param  None
00405   * @retval None
00406   */
00407  INTERRUPT_HANDLER(UART2_RX_IRQHandler, 21)
00408  {
00409     /* In order to detect unexpected events during development,
00410        it is recommended to set a breakpoint on the following instruction.
00411     */
00412  }
00413 #endif /* (STM8S105) || (STM8AF626x) */
00414 
00415 #if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
00416 /**
00417   * @brief UART3 TX interrupt routine.
00418   * @param  None
00419   * @retval None
00420   */
00421  INTERRUPT_HANDLER(UART3_TX_IRQHandler, 20)
00422  {
00423     /* In order to detect unexpected events during development,
00424        it is recommended to set a breakpoint on the following instruction.
00425     */
00426  }
00427 
00428 /**
00429   * @brief UART3 RX interrupt routine.
00430   * @param  None
00431   * @retval None
00432   */
00433  INTERRUPT_HANDLER(UART3_RX_IRQHandler, 21)
00434  {
00435     /* In order to detect unexpected events during development,
00436        it is recommended to set a breakpoint on the following instruction.
00437     */
00438  }
00439 #endif /* (STM8S208) || (STM8S207) || (STM8AF52Ax) || (STM8AF62Ax) */
00440 
00441 #if defined(STM8S207) || defined(STM8S007) || defined(STM8S208) || defined (STM8AF52Ax) || defined (STM8AF62Ax)
00442 /**
00443   * @brief ADC2 interrupt routine.
00444   * @param  None
00445   * @retval None
00446   */
00447  INTERRUPT_HANDLER(ADC2_IRQHandler, 22)
00448  {
00449     /* In order to detect unexpected events during development,
00450        it is recommended to set a breakpoint on the following instruction.
00451     */
00452  }
00453 #else /* STM8S105 or STM8S103 or STM8S903 or STM8AF626x or STM8AF622x */
00454 /**
00455   * @brief ADC1 interrupt routine.
00456   * @par Parameters:
00457   * None
00458   * @retval 
00459   * None
00460   */
00461  INTERRUPT_HANDLER(ADC1_IRQHandler, 22)
00462  {
00463     /* In order to detect unexpected events during development,
00464        it is recommended to set a breakpoint on the following instruction.
00465     */
00466  }
00467 #endif /* (STM8S208) || (STM8S207) || (STM8AF52Ax) || (STM8AF62Ax) */
00468 
00469 #if defined (STM8S903) || defined (STM8AF622x)
00470 /**
00471   * @brief Timer6 Update/Overflow/Trigger Interrupt routine.
00472   * @param  None
00473   * @retval None
00474   */
00475 INTERRUPT_HANDLER(TIM6_UPD_OVF_TRG_IRQHandler, 23)
00476  {
00477   /* In order to detect unexpected events during development,
00478      it is recommended to set a breakpoint on the following instruction.
00479   */
00480  }
00481 #else /* STM8S208 or STM8S207 or STM8S105 or STM8S103 or STM8AF52Ax or STM8AF62Ax or STM8AF626x */
00482 /**
00483   * @brief Timer4 Update/Overflow Interrupt routine.
00484   * @param  None
00485   * @retval None
00486   */
00487  INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23)
00488  {
00489   /* In order to detect unexpected events during development,
00490      it is recommended to set a breakpoint on the following instruction.
00491   */
00492  }
00493 #endif /* (STM8S903) || (STM8AF622x)*/
00494 
00495 /**
00496   * @brief Eeprom EEC Interrupt routine.
00497   * @param  None
00498   * @retval None
00499   */
00500 INTERRUPT_HANDLER(EEPROM_EEC_IRQHandler, 24)
00501 {
00502   /* In order to detect unexpected events during development,
00503      it is recommended to set a breakpoint on the following instruction.
00504   */
00505 }
00506 
00507 /**
00508   * @}
00509   */
00510 
00511 
00512 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com