STM32F0xx Standard Peripherals Firmware Library: stm32f0xx_it.c Source File

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/RTC/RTC_TimeStamp/stm32f0xx_it.c
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    RTC/RTC_TimeStamp/stm32f4xx_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>&copy; 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 RTC_TimeStamp
00038   * @{
00039   */
00040 
00041 /* Private typedef -----------------------------------------------------------*/
00042 /* Private define ------------------------------------------------------------*/
00043 /* Private macro -------------------------------------------------------------*/
00044 /* Private variables ---------------------------------------------------------*/
00045 extern __IO uint8_t Button_State;
00046 /* Private function prototypes -----------------------------------------------*/
00047 /* Private functions ---------------------------------------------------------*/
00048 
00049 /******************************************************************************/
00050 /*            Cortex-M4 Processor Exceptions Handlers                         */
00051 /******************************************************************************/
00052 
00053 /**
00054   * @brief   This function handles NMI exception.
00055   * @param  None
00056   * @retval None
00057   */
00058 void NMI_Handler(void)
00059 {
00060 }
00061 
00062 /**
00063   * @brief  This function handles Hard Fault exception.
00064   * @param  None
00065   * @retval None
00066   */
00067 void HardFault_Handler(void)
00068 {
00069   /* Go to infinite loop when Hard Fault exception occurs */
00070   while (1)
00071   {
00072   }
00073 }
00074 
00075 /**
00076   * @brief  This function handles Memory Manage exception.
00077   * @param  None
00078   * @retval None
00079   */
00080 void MemManage_Handler(void)
00081 {
00082   /* Go to infinite loop when Memory Manage exception occurs */
00083   while (1)
00084   {
00085   }
00086 }
00087 
00088 /**
00089   * @brief  This function handles Bus Fault exception.
00090   * @param  None
00091   * @retval None
00092   */
00093 void BusFault_Handler(void)
00094 {
00095   /* Go to infinite loop when Bus Fault exception occurs */
00096   while (1)
00097   {
00098   }
00099 }
00100 
00101 /**
00102   * @brief  This function handles Usage Fault exception.
00103   * @param  None
00104   * @retval None
00105   */
00106 void UsageFault_Handler(void)
00107 {
00108   /* Go to infinite loop when Usage Fault exception occurs */
00109   while (1)
00110   {
00111   }
00112 }
00113 
00114 /**
00115   * @brief  This function handles SVCall exception.
00116   * @param  None
00117   * @retval None
00118   */
00119 void SVC_Handler(void)
00120 {
00121 }
00122 
00123 /**
00124   * @brief  This function handles Debug Monitor exception.
00125   * @param  None
00126   * @retval None
00127   */
00128 void DebugMon_Handler(void)
00129 {
00130 }
00131 
00132 /**
00133   * @brief  This function handles PendSVC exception.
00134   * @param  None
00135   * @retval None
00136   */
00137 void PendSV_Handler(void)
00138 {
00139 }
00140 
00141 /**
00142   * @brief  This function handles SysTick Handler.
00143   * @param  None
00144   * @retval None
00145   */
00146 void SysTick_Handler(void)
00147 {
00148 }
00149 
00150 /******************************************************************************/
00151 /*                 STM32F4xx Peripherals Interrupt Handlers                   */
00152 /******************************************************************************/
00153  
00154 /**
00155   * @brief  This function handles External lines 15 to 10 interrupt request.
00156   * @param  None
00157   * @retval None
00158   */
00159 void EXTI4_15_IRQHandler(void)
00160 {
00161   /* TimeStamp Event detected */
00162   if(EXTI_GetITStatus(TAMPER_BUTTON_EXTI_LINE) != RESET)
00163   {
00164     Button_State = TAMPER_ON; 
00165     /* Clear the TAMPER Button EXTI line pending bit */
00166     EXTI_ClearITPendingBit(TAMPER_BUTTON_EXTI_LINE); 
00167   }
00168 }
00169 
00170 /**
00171   * @brief  This function handles External line 0 interrupt request.
00172   * @param  None
00173   * @retval None
00174   */
00175 void EXTI0_1_IRQHandler(void)
00176 {
00177     /* Clear the TimeStamp registers */
00178   if(EXTI_GetITStatus(SEL_BUTTON_EXTI_LINE) != RESET)
00179   {
00180     Button_State = SEL_ON; 
00181     /* Clear the Wakeup Button EXTI line pending bit */
00182     EXTI_ClearITPendingBit(SEL_BUTTON_EXTI_LINE);
00183     
00184   }
00185 }
00186 
00187 /******************************************************************************/
00188 /*                 STM32F4xx Peripherals Interrupt Handlers                   */
00189 /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
00190 /*  available peripheral interrupt handler's name please refer to the startup */
00191 /*  file (startup_stm32f40xx.s/startup_stm32f427x.s/startup_stm32f429x.s).    */
00192 /******************************************************************************/
00193 
00194 /**
00195   * @brief  This function handles PPP interrupt request.
00196   * @param  None
00197   * @retval None
00198   */
00199 /*void PPP_IRQHandler(void)
00200 {
00201 }*/
00202 
00203 
00204 /**
00205   * @}
00206   */
00207 
00208 /**
00209   * @}
00210   */
00211 
00212 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32