Rev 2 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 6 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | /* USER CODE BEGIN 0 */ |
38 | /* USER CODE BEGIN 0 */ |
39 | 39 | ||
40 | /* USER CODE END 0 */ |
40 | /* USER CODE END 0 */ |
41 | 41 | ||
42 | /* External variables --------------------------------------------------------*/ |
42 | /* External variables --------------------------------------------------------*/ |
- | 43 | extern DMA_HandleTypeDef hdma_adc; |
|
- | 44 | extern TIM_HandleTypeDef htim2; |
|
- | 45 | extern UART_HandleTypeDef huart1; |
|
- | 46 | extern UART_HandleTypeDef huart2; |
|
43 | 47 | ||
44 | /******************************************************************************/ |
48 | /******************************************************************************/ |
45 | /* Cortex-M3 Processor Interruption and Exception Handlers */ |
49 | /* Cortex-M3 Processor Interruption and Exception Handlers */ |
46 | /******************************************************************************/ |
50 | /******************************************************************************/ |
47 | 51 | ||
Line 181... | Line 185... | ||
181 | /* Add here the Interrupt Handlers for the used peripherals. */ |
185 | /* Add here the Interrupt Handlers for the used peripherals. */ |
182 | /* For the available peripheral interrupt handler names, */ |
186 | /* For the available peripheral interrupt handler names, */ |
183 | /* please refer to the startup file (startup_stm32l1xx.s). */ |
187 | /* please refer to the startup file (startup_stm32l1xx.s). */ |
184 | /******************************************************************************/ |
188 | /******************************************************************************/ |
185 | 189 | ||
- | 190 | /** |
|
- | 191 | * @brief This function handles DMA1 channel1 global interrupt. |
|
- | 192 | */ |
|
- | 193 | void DMA1_Channel1_IRQHandler(void) |
|
- | 194 | { |
|
- | 195 | /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */ |
|
- | 196 | ||
- | 197 | /* USER CODE END DMA1_Channel1_IRQn 0 */ |
|
- | 198 | HAL_DMA_IRQHandler(&hdma_adc); |
|
- | 199 | /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */ |
|
- | 200 | ||
- | 201 | /* USER CODE END DMA1_Channel1_IRQn 1 */ |
|
- | 202 | } |
|
- | 203 | ||
- | 204 | /** |
|
- | 205 | * @brief This function handles TIM2 global interrupt. |
|
- | 206 | */ |
|
- | 207 | void TIM2_IRQHandler(void) |
|
- | 208 | { |
|
- | 209 | /* USER CODE BEGIN TIM2_IRQn 0 */ |
|
- | 210 | ||
- | 211 | /* USER CODE END TIM2_IRQn 0 */ |
|
- | 212 | HAL_TIM_IRQHandler(&htim2); |
|
- | 213 | /* USER CODE BEGIN TIM2_IRQn 1 */ |
|
- | 214 | ||
- | 215 | /* USER CODE END TIM2_IRQn 1 */ |
|
- | 216 | } |
|
- | 217 | ||
- | 218 | /** |
|
- | 219 | * @brief This function handles USART1 global interrupt. |
|
- | 220 | */ |
|
- | 221 | void USART1_IRQHandler(void) |
|
- | 222 | { |
|
- | 223 | /* USER CODE BEGIN USART1_IRQn 0 */ |
|
- | 224 | ||
- | 225 | /* USER CODE END USART1_IRQn 0 */ |
|
- | 226 | HAL_UART_IRQHandler(&huart1); |
|
- | 227 | /* USER CODE BEGIN USART1_IRQn 1 */ |
|
- | 228 | ||
- | 229 | /* USER CODE END USART1_IRQn 1 */ |
|
- | 230 | } |
|
- | 231 | ||
- | 232 | /** |
|
- | 233 | * @brief This function handles USART2 global interrupt. |
|
- | 234 | */ |
|
- | 235 | void USART2_IRQHandler(void) |
|
- | 236 | { |
|
- | 237 | /* USER CODE BEGIN USART2_IRQn 0 */ |
|
- | 238 | ||
- | 239 | /* USER CODE END USART2_IRQn 0 */ |
|
- | 240 | HAL_UART_IRQHandler(&huart2); |
|
- | 241 | /* USER CODE BEGIN USART2_IRQn 1 */ |
|
- | 242 | ||
- | 243 | /* USER CODE END USART2_IRQn 1 */ |
|
- | 244 | } |
|
- | 245 | ||
186 | /* USER CODE BEGIN 1 */ |
246 | /* USER CODE BEGIN 1 */ |
187 | 247 | ||
188 | /* USER CODE END 1 */ |
248 | /* USER CODE END 1 */ |
189 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
249 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |