STM32F0xx Standard Peripherals Firmware Library
|
STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/stm32f0xx_it.c
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file COMP/COMP_AnalogWatchdog/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 /** @addtogroup COMP_AnalogWatchdog 00038 * @{ 00039 */ 00040 00041 /* Private typedef -----------------------------------------------------------*/ 00042 /* Private define ------------------------------------------------------------*/ 00043 /* Private macro -------------------------------------------------------------*/ 00044 /* Private variables ---------------------------------------------------------*/ 00045 /* Private function prototypes -----------------------------------------------*/ 00046 /* Private functions ---------------------------------------------------------*/ 00047 00048 /******************************************************************************/ 00049 /* Cortex-M0 Processor Exceptions Handlers */ 00050 /******************************************************************************/ 00051 00052 /** 00053 * @brief This function handles NMI exception. 00054 * @param None 00055 * @retval None 00056 */ 00057 void NMI_Handler(void) 00058 { 00059 } 00060 00061 /** 00062 * @brief This function handles Hard Fault exception. 00063 * @param None 00064 * @retval None 00065 */ 00066 void HardFault_Handler(void) 00067 { 00068 /* Go to infinite loop when Hard Fault exception occurs */ 00069 while (1) 00070 { 00071 } 00072 } 00073 00074 /** 00075 * @brief This function handles SVCall exception. 00076 * @param None 00077 * @retval None 00078 */ 00079 void SVC_Handler(void) 00080 { 00081 } 00082 00083 /** 00084 * @brief This function handles PendSVC exception. 00085 * @param None 00086 * @retval None 00087 */ 00088 void PendSV_Handler(void) 00089 { 00090 } 00091 00092 /** 00093 * @brief This function handles SysTick Handler. 00094 * @param None 00095 * @retval None 00096 */ 00097 void SysTick_Handler(void) 00098 { 00099 } 00100 00101 /******************************************************************************/ 00102 /* STM32F0xx Peripherals Interrupt Handlers */ 00103 /******************************************************************************/ 00104 /** 00105 * @brief This function handles COMP interrupt request. 00106 * @param None 00107 * @retval None 00108 */ 00109 void ADC1_COMP_IRQHandler(void) 00110 { 00111 if((EXTI_GetITStatus(EXTI_Line21) != RESET) || (EXTI_GetITStatus(EXTI_Line22) != RESET)) 00112 { 00113 /* Check input voltage level: within the thresholds, above the upper threshold 00114 or under the lower threshold */ 00115 CheckState(); 00116 00117 /* Clear EXTI21 pending bit */ 00118 EXTI_ClearITPendingBit(EXTI_Line21); 00119 00120 /* Clear EXTI22 pending bit */ 00121 EXTI_ClearITPendingBit(EXTI_Line22); 00122 } 00123 } 00124 00125 /******************************************************************************/ 00126 /* STM32F0xx Peripherals Interrupt Handlers */ 00127 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ 00128 /* available peripheral interrupt handler's name please refer to the startup */ 00129 /* file (startup_stm32f0xx.s). */ 00130 /******************************************************************************/ 00131 00132 /** 00133 * @brief This function handles PPP interrupt request. 00134 * @param None 00135 * @retval None 00136 */ 00137 /*void PPP_IRQHandler(void) 00138 { 00139 }*/ 00140 00141 /** 00142 * @} 00143 */ 00144 00145 /** 00146 * @} 00147 */ 00148 00149 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/