ble

Dependencies:   HC_SR04_Ultrasonic_Library Servo mbed

Fork of FIP_REV1 by Robotique FIP

Committer:
julientiron
Date:
Thu Jul 09 13:33:36 2015 +0000
Revision:
4:69a35a56ac48
Parent:
0:3d641e170a74
BLE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
julientiron 0:3d641e170a74 1 /**
julientiron 0:3d641e170a74 2 ******************************************************************************
julientiron 0:3d641e170a74 3 * @file stm32f4xx_it.c
julientiron 0:3d641e170a74 4 * @brief Main Interrupt Service Routines.
julientiron 0:3d641e170a74 5 * This file provides template for all exceptions handler and
julientiron 0:3d641e170a74 6 * peripherals interrupt service routine.
julientiron 0:3d641e170a74 7 ******************************************************************************
julientiron 0:3d641e170a74 8 * @attention
julientiron 0:3d641e170a74 9 *
julientiron 0:3d641e170a74 10 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
julientiron 0:3d641e170a74 11 *
julientiron 0:3d641e170a74 12 * Redistribution and use in source and binary forms, with or without modification,
julientiron 0:3d641e170a74 13 * are permitted provided that the following conditions are met:
julientiron 0:3d641e170a74 14 * 1. Redistributions of source code must retain the above copyright notice,
julientiron 0:3d641e170a74 15 * this list of conditions and the following disclaimer.
julientiron 0:3d641e170a74 16 * 2. Redistributions in binary form must reproduce the above copyright notice,
julientiron 0:3d641e170a74 17 * this list of conditions and the following disclaimer in the documentation
julientiron 0:3d641e170a74 18 * and/or other materials provided with the distribution.
julientiron 0:3d641e170a74 19 * 3. Neither the name of STMicroelectronics nor the names of its contributors
julientiron 0:3d641e170a74 20 * may be used to endorse or promote products derived from this software
julientiron 0:3d641e170a74 21 * without specific prior written permission.
julientiron 0:3d641e170a74 22 *
julientiron 0:3d641e170a74 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
julientiron 0:3d641e170a74 24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
julientiron 0:3d641e170a74 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
julientiron 0:3d641e170a74 26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
julientiron 0:3d641e170a74 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
julientiron 0:3d641e170a74 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
julientiron 0:3d641e170a74 29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
julientiron 0:3d641e170a74 30 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
julientiron 0:3d641e170a74 31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
julientiron 0:3d641e170a74 32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
julientiron 0:3d641e170a74 33 *
julientiron 0:3d641e170a74 34 ******************************************************************************
julientiron 0:3d641e170a74 35 */
julientiron 0:3d641e170a74 36
julientiron 0:3d641e170a74 37 /* Includes ------------------------------------------------------------------*/
julientiron 0:3d641e170a74 38 #include "stm32f4xx_it.h"
julientiron 0:3d641e170a74 39 #include "stm32f4xx_bluenrg_shield_bsp.h"
julientiron 0:3d641e170a74 40
julientiron 0:3d641e170a74 41 /** @addtogroup BlueNRG_Shield
julientiron 0:3d641e170a74 42 * @{
julientiron 0:3d641e170a74 43 */
julientiron 0:3d641e170a74 44
julientiron 0:3d641e170a74 45 /** @defgroup BlueNRG_Shield_IRQ_Handlers
julientiron 0:3d641e170a74 46 * @brief Interrupt handlers for BlueNRG Shield sample application on
julientiron 0:3d641e170a74 47 * STM32 Nucleo boards.
julientiron 0:3d641e170a74 48 * @{
julientiron 0:3d641e170a74 49 */
julientiron 0:3d641e170a74 50
julientiron 0:3d641e170a74 51 /* Private typedef -----------------------------------------------------------*/
julientiron 0:3d641e170a74 52 /* Private define ------------------------------------------------------------*/
julientiron 0:3d641e170a74 53 /* Private macro -------------------------------------------------------------*/
julientiron 0:3d641e170a74 54 /* Private variables ---------------------------------------------------------*/
julientiron 0:3d641e170a74 55 /* SPI handler declared in "main.c" file */
julientiron 0:3d641e170a74 56 extern SPI_HandleTypeDef SpiHandle;
julientiron 0:3d641e170a74 57 /* Private function prototypes -----------------------------------------------*/
julientiron 0:3d641e170a74 58 /* Private functions ---------------------------------------------------------*/
julientiron 0:3d641e170a74 59
julientiron 0:3d641e170a74 60 /******************************************************************************/
julientiron 0:3d641e170a74 61 /* Cortex-M0+ Processor Exceptions Handlers */
julientiron 0:3d641e170a74 62 /******************************************************************************/
julientiron 0:3d641e170a74 63
julientiron 0:3d641e170a74 64 /**
julientiron 0:3d641e170a74 65 * @brief This function handles NMI exception.
julientiron 0:3d641e170a74 66 * @param None
julientiron 0:3d641e170a74 67 * @retval None
julientiron 0:3d641e170a74 68 */
julientiron 0:3d641e170a74 69 void NMI_Handler(void)
julientiron 0:3d641e170a74 70 {
julientiron 0:3d641e170a74 71 }
julientiron 0:3d641e170a74 72
julientiron 0:3d641e170a74 73 /**
julientiron 0:3d641e170a74 74 * @brief This function handles Hard Fault exception.
julientiron 0:3d641e170a74 75 * @param None
julientiron 0:3d641e170a74 76 * @retval None
julientiron 0:3d641e170a74 77 */
julientiron 0:3d641e170a74 78 void HardFault_Handler(void)
julientiron 0:3d641e170a74 79 {
julientiron 0:3d641e170a74 80 /* Go to infinite loop when Hard Fault exception occurs */
julientiron 0:3d641e170a74 81 while (1)
julientiron 0:3d641e170a74 82 {
julientiron 0:3d641e170a74 83 }
julientiron 0:3d641e170a74 84 }
julientiron 0:3d641e170a74 85
julientiron 0:3d641e170a74 86 /**
julientiron 0:3d641e170a74 87 * @brief This function handles SVCall exception.
julientiron 0:3d641e170a74 88 * @param None
julientiron 0:3d641e170a74 89 * @retval None
julientiron 0:3d641e170a74 90 */
julientiron 0:3d641e170a74 91 void SVC_Handler(void)
julientiron 0:3d641e170a74 92 {
julientiron 0:3d641e170a74 93 }
julientiron 0:3d641e170a74 94
julientiron 0:3d641e170a74 95 /**
julientiron 0:3d641e170a74 96 * @brief This function handles Debug Monitor exception.
julientiron 0:3d641e170a74 97 * @param None
julientiron 0:3d641e170a74 98 * @retval None
julientiron 0:3d641e170a74 99 */
julientiron 0:3d641e170a74 100 void DebugMon_Handler(void)
julientiron 0:3d641e170a74 101 {
julientiron 0:3d641e170a74 102 }
julientiron 0:3d641e170a74 103
julientiron 0:3d641e170a74 104 /**
julientiron 0:3d641e170a74 105 * @brief This function handles PendSVC exception.
julientiron 0:3d641e170a74 106 * @param None
julientiron 0:3d641e170a74 107 * @retval None
julientiron 0:3d641e170a74 108 */
julientiron 0:3d641e170a74 109 void PendSV_Handler(void)
julientiron 0:3d641e170a74 110 {
julientiron 0:3d641e170a74 111 }
julientiron 0:3d641e170a74 112
julientiron 0:3d641e170a74 113 /**
julientiron 0:3d641e170a74 114 * @brief This function handles SysTick Handler.
julientiron 0:3d641e170a74 115 * @param None
julientiron 0:3d641e170a74 116 * @retval None
julientiron 0:3d641e170a74 117 */
julientiron 0:3d641e170a74 118 void SysTick_Handler(void)
julientiron 0:3d641e170a74 119 {
julientiron 0:3d641e170a74 120 HAL_IncTick();
julientiron 0:3d641e170a74 121 }
julientiron 0:3d641e170a74 122
julientiron 0:3d641e170a74 123
julientiron 0:3d641e170a74 124 /******************************************************************************/
julientiron 0:3d641e170a74 125 /* STM32F4xx Peripherals Interrupt Handlers */
julientiron 0:3d641e170a74 126 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
julientiron 0:3d641e170a74 127 /* available peripheral interrupt handler's name please refer to the startup */
julientiron 0:3d641e170a74 128 /* file (startup_stm32f4xx.s). */
julientiron 0:3d641e170a74 129 /******************************************************************************/
julientiron 0:3d641e170a74 130
julientiron 0:3d641e170a74 131 /**
julientiron 0:3d641e170a74 132 * @brief This function handles External lines 0 interrupt request.
julientiron 0:3d641e170a74 133 * @param None
julientiron 0:3d641e170a74 134 * @retval None
julientiron 0:3d641e170a74 135 */
julientiron 0:3d641e170a74 136 void EXTI0_IRQHandler(void)
julientiron 0:3d641e170a74 137 {
julientiron 0:3d641e170a74 138 HAL_GPIO_EXTI_IRQHandler(BNRG_SPI_EXTI_PIN);
julientiron 0:3d641e170a74 139 }
julientiron 0:3d641e170a74 140
julientiron 0:3d641e170a74 141
julientiron 0:3d641e170a74 142 /******************************************************************************/
julientiron 0:3d641e170a74 143 /* STM32F4xx Peripherals Interrupt Handlers */
julientiron 0:3d641e170a74 144 /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
julientiron 0:3d641e170a74 145 /* available peripheral interrupt handler's name please refer to the startup */
julientiron 0:3d641e170a74 146 /* file (startup_stm32f4xx.s). */
julientiron 0:3d641e170a74 147 /******************************************************************************/
julientiron 0:3d641e170a74 148
julientiron 0:3d641e170a74 149
julientiron 0:3d641e170a74 150 /**
julientiron 0:3d641e170a74 151 * @brief This function handles PPP interrupt request.
julientiron 0:3d641e170a74 152 * @param None
julientiron 0:3d641e170a74 153 * @retval None
julientiron 0:3d641e170a74 154 */
julientiron 0:3d641e170a74 155 void PPP_IRQHandler(void)
julientiron 0:3d641e170a74 156 {
julientiron 0:3d641e170a74 157 }
julientiron 0:3d641e170a74 158
julientiron 0:3d641e170a74 159
julientiron 0:3d641e170a74 160 /**
julientiron 0:3d641e170a74 161 * @}
julientiron 0:3d641e170a74 162 */
julientiron 0:3d641e170a74 163
julientiron 0:3d641e170a74 164 /**
julientiron 0:3d641e170a74 165 * @}
julientiron 0:3d641e170a74 166 */
julientiron 0:3d641e170a74 167
julientiron 0:3d641e170a74 168 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/