Webserver+3d print
ftp_client_demo/src/stm32f7xx_it.c@0:8918a71cdbe9, 2017-02-04 (annotated)
- Committer:
- Sergunb
- Date:
- Sat Feb 04 18:15:49 2017 +0000
- Revision:
- 0:8918a71cdbe9
nothing else
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sergunb | 0:8918a71cdbe9 | 1 | /** |
Sergunb | 0:8918a71cdbe9 | 2 | ****************************************************************************** |
Sergunb | 0:8918a71cdbe9 | 3 | * @file Templates/stm32f7xx_it.c |
Sergunb | 0:8918a71cdbe9 | 4 | * @author MCD Application Team |
Sergunb | 0:8918a71cdbe9 | 5 | * @version V1.0.3 |
Sergunb | 0:8918a71cdbe9 | 6 | * @date 22-April-2016 |
Sergunb | 0:8918a71cdbe9 | 7 | * @brief Main Interrupt Service Routines. |
Sergunb | 0:8918a71cdbe9 | 8 | * This file provides template for all exceptions handler and |
Sergunb | 0:8918a71cdbe9 | 9 | * peripherals interrupt service routine. |
Sergunb | 0:8918a71cdbe9 | 10 | ****************************************************************************** |
Sergunb | 0:8918a71cdbe9 | 11 | * @attention |
Sergunb | 0:8918a71cdbe9 | 12 | * |
Sergunb | 0:8918a71cdbe9 | 13 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
Sergunb | 0:8918a71cdbe9 | 14 | * |
Sergunb | 0:8918a71cdbe9 | 15 | * Redistribution and use in source and binary forms, with or without modification, |
Sergunb | 0:8918a71cdbe9 | 16 | * are permitted provided that the following conditions are met: |
Sergunb | 0:8918a71cdbe9 | 17 | * 1. Redistributions of source code must retain the above copyright notice, |
Sergunb | 0:8918a71cdbe9 | 18 | * this list of conditions and the following disclaimer. |
Sergunb | 0:8918a71cdbe9 | 19 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Sergunb | 0:8918a71cdbe9 | 20 | * this list of conditions and the following disclaimer in the documentation |
Sergunb | 0:8918a71cdbe9 | 21 | * and/or other materials provided with the distribution. |
Sergunb | 0:8918a71cdbe9 | 22 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Sergunb | 0:8918a71cdbe9 | 23 | * may be used to endorse or promote products derived from this software |
Sergunb | 0:8918a71cdbe9 | 24 | * without specific prior written permission. |
Sergunb | 0:8918a71cdbe9 | 25 | * |
Sergunb | 0:8918a71cdbe9 | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Sergunb | 0:8918a71cdbe9 | 27 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Sergunb | 0:8918a71cdbe9 | 28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Sergunb | 0:8918a71cdbe9 | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Sergunb | 0:8918a71cdbe9 | 30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Sergunb | 0:8918a71cdbe9 | 31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Sergunb | 0:8918a71cdbe9 | 32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Sergunb | 0:8918a71cdbe9 | 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Sergunb | 0:8918a71cdbe9 | 34 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Sergunb | 0:8918a71cdbe9 | 35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Sergunb | 0:8918a71cdbe9 | 36 | * |
Sergunb | 0:8918a71cdbe9 | 37 | ****************************************************************************** |
Sergunb | 0:8918a71cdbe9 | 38 | */ |
Sergunb | 0:8918a71cdbe9 | 39 | |
Sergunb | 0:8918a71cdbe9 | 40 | /* Includes ------------------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 41 | #include "stm32f7xx_it.h" |
Sergunb | 0:8918a71cdbe9 | 42 | #include "os_port.h" |
Sergunb | 0:8918a71cdbe9 | 43 | |
Sergunb | 0:8918a71cdbe9 | 44 | /** @addtogroup STM32F7xx_HAL_Examples |
Sergunb | 0:8918a71cdbe9 | 45 | * @{ |
Sergunb | 0:8918a71cdbe9 | 46 | */ |
Sergunb | 0:8918a71cdbe9 | 47 | |
Sergunb | 0:8918a71cdbe9 | 48 | /** @addtogroup Templates |
Sergunb | 0:8918a71cdbe9 | 49 | * @{ |
Sergunb | 0:8918a71cdbe9 | 50 | */ |
Sergunb | 0:8918a71cdbe9 | 51 | |
Sergunb | 0:8918a71cdbe9 | 52 | /* Private typedef -----------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 53 | /* Private define ------------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 54 | /* Private macro -------------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 55 | /* Private variables ---------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 56 | /* Private function prototypes -----------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 57 | extern void HAL_IncTick(void); |
Sergunb | 0:8918a71cdbe9 | 58 | extern void xPortSysTickHandler(void); |
Sergunb | 0:8918a71cdbe9 | 59 | |
Sergunb | 0:8918a71cdbe9 | 60 | /* Private functions ---------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 61 | |
Sergunb | 0:8918a71cdbe9 | 62 | /******************************************************************************/ |
Sergunb | 0:8918a71cdbe9 | 63 | /* Cortex-M7 Processor Exceptions Handlers */ |
Sergunb | 0:8918a71cdbe9 | 64 | /******************************************************************************/ |
Sergunb | 0:8918a71cdbe9 | 65 | |
Sergunb | 0:8918a71cdbe9 | 66 | /** |
Sergunb | 0:8918a71cdbe9 | 67 | * @brief This function handles NMI exception. |
Sergunb | 0:8918a71cdbe9 | 68 | * @param None |
Sergunb | 0:8918a71cdbe9 | 69 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 70 | */ |
Sergunb | 0:8918a71cdbe9 | 71 | void NMI_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 72 | { |
Sergunb | 0:8918a71cdbe9 | 73 | } |
Sergunb | 0:8918a71cdbe9 | 74 | |
Sergunb | 0:8918a71cdbe9 | 75 | /** |
Sergunb | 0:8918a71cdbe9 | 76 | * @brief This function handles Hard Fault exception. |
Sergunb | 0:8918a71cdbe9 | 77 | * @param None |
Sergunb | 0:8918a71cdbe9 | 78 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 79 | */ |
Sergunb | 0:8918a71cdbe9 | 80 | void HardFault_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 81 | { |
Sergunb | 0:8918a71cdbe9 | 82 | /* Go to infinite loop when Hard Fault exception occurs */ |
Sergunb | 0:8918a71cdbe9 | 83 | while (1) |
Sergunb | 0:8918a71cdbe9 | 84 | { |
Sergunb | 0:8918a71cdbe9 | 85 | } |
Sergunb | 0:8918a71cdbe9 | 86 | } |
Sergunb | 0:8918a71cdbe9 | 87 | |
Sergunb | 0:8918a71cdbe9 | 88 | /** |
Sergunb | 0:8918a71cdbe9 | 89 | * @brief This function handles Memory Manage exception. |
Sergunb | 0:8918a71cdbe9 | 90 | * @param None |
Sergunb | 0:8918a71cdbe9 | 91 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 92 | */ |
Sergunb | 0:8918a71cdbe9 | 93 | void MemManage_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 94 | { |
Sergunb | 0:8918a71cdbe9 | 95 | /* Go to infinite loop when Memory Manage exception occurs */ |
Sergunb | 0:8918a71cdbe9 | 96 | while (1) |
Sergunb | 0:8918a71cdbe9 | 97 | { |
Sergunb | 0:8918a71cdbe9 | 98 | } |
Sergunb | 0:8918a71cdbe9 | 99 | } |
Sergunb | 0:8918a71cdbe9 | 100 | |
Sergunb | 0:8918a71cdbe9 | 101 | /** |
Sergunb | 0:8918a71cdbe9 | 102 | * @brief This function handles Bus Fault exception. |
Sergunb | 0:8918a71cdbe9 | 103 | * @param None |
Sergunb | 0:8918a71cdbe9 | 104 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 105 | */ |
Sergunb | 0:8918a71cdbe9 | 106 | void BusFault_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 107 | { |
Sergunb | 0:8918a71cdbe9 | 108 | /* Go to infinite loop when Bus Fault exception occurs */ |
Sergunb | 0:8918a71cdbe9 | 109 | while (1) |
Sergunb | 0:8918a71cdbe9 | 110 | { |
Sergunb | 0:8918a71cdbe9 | 111 | } |
Sergunb | 0:8918a71cdbe9 | 112 | } |
Sergunb | 0:8918a71cdbe9 | 113 | |
Sergunb | 0:8918a71cdbe9 | 114 | /** |
Sergunb | 0:8918a71cdbe9 | 115 | * @brief This function handles Usage Fault exception. |
Sergunb | 0:8918a71cdbe9 | 116 | * @param None |
Sergunb | 0:8918a71cdbe9 | 117 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 118 | */ |
Sergunb | 0:8918a71cdbe9 | 119 | void UsageFault_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 120 | { |
Sergunb | 0:8918a71cdbe9 | 121 | /* Go to infinite loop when Usage Fault exception occurs */ |
Sergunb | 0:8918a71cdbe9 | 122 | while (1) |
Sergunb | 0:8918a71cdbe9 | 123 | { |
Sergunb | 0:8918a71cdbe9 | 124 | } |
Sergunb | 0:8918a71cdbe9 | 125 | } |
Sergunb | 0:8918a71cdbe9 | 126 | |
Sergunb | 0:8918a71cdbe9 | 127 | /** |
Sergunb | 0:8918a71cdbe9 | 128 | * @brief This function handles SVCall exception. |
Sergunb | 0:8918a71cdbe9 | 129 | * @param None |
Sergunb | 0:8918a71cdbe9 | 130 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 131 | */ |
Sergunb | 0:8918a71cdbe9 | 132 | #if 0 |
Sergunb | 0:8918a71cdbe9 | 133 | void SVC_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 134 | { |
Sergunb | 0:8918a71cdbe9 | 135 | } |
Sergunb | 0:8918a71cdbe9 | 136 | #endif |
Sergunb | 0:8918a71cdbe9 | 137 | |
Sergunb | 0:8918a71cdbe9 | 138 | /** |
Sergunb | 0:8918a71cdbe9 | 139 | * @brief This function handles Debug Monitor exception. |
Sergunb | 0:8918a71cdbe9 | 140 | * @param None |
Sergunb | 0:8918a71cdbe9 | 141 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 142 | */ |
Sergunb | 0:8918a71cdbe9 | 143 | void DebugMon_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 144 | { |
Sergunb | 0:8918a71cdbe9 | 145 | } |
Sergunb | 0:8918a71cdbe9 | 146 | |
Sergunb | 0:8918a71cdbe9 | 147 | /** |
Sergunb | 0:8918a71cdbe9 | 148 | * @brief This function handles PendSVC exception. |
Sergunb | 0:8918a71cdbe9 | 149 | * @param None |
Sergunb | 0:8918a71cdbe9 | 150 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 151 | */ |
Sergunb | 0:8918a71cdbe9 | 152 | #if 0 |
Sergunb | 0:8918a71cdbe9 | 153 | void PendSV_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 154 | { |
Sergunb | 0:8918a71cdbe9 | 155 | } |
Sergunb | 0:8918a71cdbe9 | 156 | #endif |
Sergunb | 0:8918a71cdbe9 | 157 | |
Sergunb | 0:8918a71cdbe9 | 158 | /** |
Sergunb | 0:8918a71cdbe9 | 159 | * @brief This function handles SysTick Handler. |
Sergunb | 0:8918a71cdbe9 | 160 | * @param None |
Sergunb | 0:8918a71cdbe9 | 161 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 162 | */ |
Sergunb | 0:8918a71cdbe9 | 163 | void SysTick_Handler(void) |
Sergunb | 0:8918a71cdbe9 | 164 | { |
Sergunb | 0:8918a71cdbe9 | 165 | HAL_IncTick(); |
Sergunb | 0:8918a71cdbe9 | 166 | |
Sergunb | 0:8918a71cdbe9 | 167 | if(xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) |
Sergunb | 0:8918a71cdbe9 | 168 | { |
Sergunb | 0:8918a71cdbe9 | 169 | xPortSysTickHandler(); |
Sergunb | 0:8918a71cdbe9 | 170 | } |
Sergunb | 0:8918a71cdbe9 | 171 | } |
Sergunb | 0:8918a71cdbe9 | 172 | |
Sergunb | 0:8918a71cdbe9 | 173 | /******************************************************************************/ |
Sergunb | 0:8918a71cdbe9 | 174 | /* STM32F7xx Peripherals Interrupt Handlers */ |
Sergunb | 0:8918a71cdbe9 | 175 | /* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */ |
Sergunb | 0:8918a71cdbe9 | 176 | /* available peripheral interrupt handler's name please refer to the startup */ |
Sergunb | 0:8918a71cdbe9 | 177 | /* file (startup_stm32f7xx.s). */ |
Sergunb | 0:8918a71cdbe9 | 178 | /******************************************************************************/ |
Sergunb | 0:8918a71cdbe9 | 179 | |
Sergunb | 0:8918a71cdbe9 | 180 | /** |
Sergunb | 0:8918a71cdbe9 | 181 | * @brief This function handles PPP interrupt request. |
Sergunb | 0:8918a71cdbe9 | 182 | * @param None |
Sergunb | 0:8918a71cdbe9 | 183 | * @retval None |
Sergunb | 0:8918a71cdbe9 | 184 | */ |
Sergunb | 0:8918a71cdbe9 | 185 | /*void PPP_IRQHandler(void) |
Sergunb | 0:8918a71cdbe9 | 186 | { |
Sergunb | 0:8918a71cdbe9 | 187 | }*/ |
Sergunb | 0:8918a71cdbe9 | 188 | |
Sergunb | 0:8918a71cdbe9 | 189 | /** |
Sergunb | 0:8918a71cdbe9 | 190 | * @} |
Sergunb | 0:8918a71cdbe9 | 191 | */ |
Sergunb | 0:8918a71cdbe9 | 192 | |
Sergunb | 0:8918a71cdbe9 | 193 | |
Sergunb | 0:8918a71cdbe9 | 194 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
Sergunb | 0:8918a71cdbe9 | 195 |