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

STM8S/A

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

 

 

 

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