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