my fork

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stm32xx_it.c Source File

stm32xx_it.c

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32xx_it.c 
00004   * @author  CL
00005   * @version V1.0.0
00006   * @date    04-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(c) 2014 STMicroelectronics</center></h2>
00014   *
00015   * Redistribution and use in source and binary forms, with or without modification,
00016   * are permitted provided that the following conditions are met:
00017   *   1. Redistributions of source code must retain the above copyright notice,
00018   *      this list of conditions and the following disclaimer.
00019   *   2. Redistributions in binary form must reproduce the above copyright notice,
00020   *      this list of conditions and the following disclaimer in the documentation
00021   *      and/or other materials provided with the distribution.
00022   *   3. Neither the name of STMicroelectronics nor the names of its contributors
00023   *      may be used to endorse or promote products derived from this software
00024   *      without specific prior written permission.
00025   *
00026   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00027   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00029   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00030   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00031   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00032   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00033   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00034   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00035   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036   *
00037   ******************************************************************************
00038   */
00039 
00040 /* Includes ------------------------------------------------------------------*/
00041 #include "stm32xx_it.h"
00042 #include "debug.h"
00043 
00044 /** @addtogroup STM32L0xx_HAL_Examples
00045   * @{
00046   */
00047 
00048 /** @addtogroup SPI_FullDuplex_ComIT
00049   * @{
00050   */
00051 
00052 /* Private typedef -----------------------------------------------------------*/
00053 /* Private define ------------------------------------------------------------*/
00054 /* Private macro -------------------------------------------------------------*/
00055 /* Private variables ---------------------------------------------------------*/
00056 volatile uint8_t button_event = 0;
00057 
00058 /* SPI handler declared in "main.c" file */
00059 extern SPI_HandleTypeDef SpiHandle;
00060 /* Private function prototypes -----------------------------------------------*/
00061 /* Private functions ---------------------------------------------------------*/
00062 
00063 /******************************************************************************/
00064 /*            Cortex-M0+ Processor Exceptions Handlers                         */
00065 /******************************************************************************/
00066 
00067 /**
00068   * @brief  NMI_Handler This function handles NMI exception.
00069   * @param  None
00070   * @retval None
00071   */
00072 void NMI_Handler(void)
00073 {
00074 }
00075 
00076 /**
00077   * @brief  HardFault_Handler This function handles Hard Fault exception.
00078   * @param  None
00079   * @retval None
00080   */
00081 void HardFault_Handler(void)
00082 {
00083   /* Go to infinite loop when Hard Fault exception occurs */
00084   while (1)
00085   {
00086   }
00087 }
00088 
00089 /**
00090   * @brief  SVC_Handler This function handles SVCall exception.
00091   * @param  None
00092   * @retval None
00093   */
00094 void SVC_Handler(void)
00095 {
00096 }
00097 
00098 /**
00099   * @brief  DebugMon_Handler This function handles Debug Monitor exception.
00100   * @param  None
00101   * @retval None
00102   */
00103 void DebugMon_Handler(void)
00104 {
00105 }
00106 
00107 /**
00108   * @brief  PendSV_Handler This function handles PendSVC exception.
00109   * @param  None
00110   * @retval None
00111   */
00112 void PendSV_Handler(void)
00113 {
00114 }
00115 
00116 /**
00117   * @brief  SysTick_Handler This function handles SysTick Handler.
00118   * @param  None
00119   * @retval None
00120   */
00121 void SysTick_Handler(void)
00122 {
00123   HAL_IncTick();
00124 }
00125 
00126 
00127 /******************************************************************************/
00128 /*                 STM32L0xx Peripherals Interrupt Handlers                   */
00129 /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
00130 /*  available peripheral interrupt handler's name please refer to the startup */
00131 /*  file (startup_stm32l0xx.s).                                               */
00132 /******************************************************************************/
00133 
00134 /**
00135   * @brief  BNRG_SPI_EXTI_IRQHandler This function handles External line
00136   *         interrupt request for BlueNRG.
00137   * @param  None
00138   * @retval None
00139   */
00140 void BNRG_SPI_EXTI_IRQHandler(void)
00141 {
00142   HAL_GPIO_EXTI_IRQHandler(BNRG_SPI_EXTI_PIN);
00143 }
00144 
00145 
00146 /**
00147   * @brief  EXTI4_15_IRQHandler This function handles External lines 4 to 15 interrupt request.
00148   * @param  None
00149   * @retval None
00150   */
00151 void PUSH_BUTTON_EXTI_IRQHandler(void)
00152 {
00153   HAL_GPIO_EXTI_IRQHandler(KEY_BUTTON_PIN);
00154   
00155   button_event = 1;
00156 }
00157 
00158 /******************************************************************************/
00159 /*                 STM32L0xx Peripherals Interrupt Handlers                   */
00160 /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
00161 /*  available peripheral interrupt handler's name please refer to the startup */
00162 /*  file (startup_stm32l0xx.s).                                               */
00163 /******************************************************************************/
00164 
00165 /**
00166   * @brief  This function handles PPP interrupt request.
00167   * @param  None
00168   * @retval None
00169   */
00170 /*void PPP_IRQHandler(void)
00171 {
00172 }*/
00173 
00174 
00175 /**
00176   * @}
00177   */ 
00178 
00179 /**
00180   * @}
00181   */
00182 
00183 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00184