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