STM32F0xx Standard Peripherals Firmware Library
|
STM32F0xx_StdPeriph_Examples/IWDG/IWDG_WindowMode/stm32f0xx_it.c
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file IWDG/IWDG_WindowMode/stm32f0xx_it.c 00004 * @author MCD Application Team 00005 * @version V1.4.0 00006 * @date 24-July-2014 00007 * @brief Main Interrupt Service Routines. 00008 * This file provides template for all exceptions handler and 00009 * peripherals interrupt service routine. 00010 ****************************************************************************** 00011 * @attention 00012 * 00013 * <h2><center>© 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 "stm32f0xx_it.h" 00032 00033 /** @addtogroup STM32F0xx_StdPeriph_Examples 00034 * @{ 00035 */ 00036 00037 /* Private typedef -----------------------------------------------------------*/ 00038 /* Private define ------------------------------------------------------------*/ 00039 /* Private macro -------------------------------------------------------------*/ 00040 /* Private variables ---------------------------------------------------------*/ 00041 extern __IO uint32_t TimingDelay; 00042 /* Private function prototypes -----------------------------------------------*/ 00043 /* Private functions ---------------------------------------------------------*/ 00044 00045 /******************************************************************************/ 00046 /* Cortex-M0 Processor Exceptions Handlers */ 00047 /******************************************************************************/ 00048 00049 /** 00050 * @brief This function handles NMI exception. 00051 * @param None 00052 * @retval None 00053 */ 00054 void NMI_Handler(void) 00055 { 00056 } 00057 00058 /** 00059 * @brief This function handles Hard Fault exception. 00060 * @param None 00061 * @retval None 00062 */ 00063 void HardFault_Handler(void) 00064 { 00065 /* Go to infinite loop when Hard Fault exception occurs */ 00066 while (1) 00067 { 00068 } 00069 } 00070 00071 /** 00072 * @brief This function handles SVCall exception. 00073 * @param None 00074 * @retval None 00075 */ 00076 void SVC_Handler(void) 00077 { 00078 } 00079 00080 /** 00081 * @brief This function handles PendSVC exception. 00082 * @param None 00083 * @retval None 00084 */ 00085 void PendSV_Handler(void) 00086 { 00087 } 00088 00089 /** 00090 * @brief This function handles SysTick Handler. 00091 * @param None 00092 * @retval None 00093 */ 00094 void SysTick_Handler(void) 00095 { 00096 TimingDelay_Decrement(); 00097 } 00098 00099 /******************************************************************************/ 00100 /* STM32F0xx Peripherals Interrupt Handlers */ 00101 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ 00102 /* available peripheral interrupt handler's name please refer to the startup */ 00103 /* file (startup_stm32f0xx.s). */ 00104 /******************************************************************************/ 00105 /** 00106 * @brief This function handles External line 4 to 15 interrupt request. 00107 * @param None 00108 * @retval None 00109 */ 00110 void EXTI4_15_IRQHandler(void) 00111 { 00112 if (EXTI_GetITStatus(TAMPER_BUTTON_EXTI_LINE) != RESET) 00113 { 00114 STM_EVAL_LEDOn(LED3); 00115 /* Clear the TAMPER Button EXTI Line Pending Bit */ 00116 EXTI_ClearITPendingBit(TAMPER_BUTTON_EXTI_LINE); 00117 00118 /* As the following address is invalid (not mapped), a Hardfault exception 00119 will be generated with an infinite loop and when the IWDG counter reaches 0 00120 the IWDG reset occurs */ 00121 *(__IO uint32_t *) 0x00040001 = 0xFF; 00122 00123 } 00124 } 00125 00126 /** 00127 * @brief This function handles PPP interrupt request. 00128 * @param None 00129 * @retval None 00130 */ 00131 /*void PPP_IRQHandler(void) 00132 { 00133 }*/ 00134 00135 /** 00136 * @} 00137 */ 00138 00139 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/