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

STM8S/A

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

 

 

 

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