![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
UART
Dependencies: BSP_DISCO_L476VG LCD_DISCO_L476VG mbed
stm32l4xx_it.c@0:7b78e040f288, 2016-10-05 (annotated)
- Committer:
- codebreaker7
- Date:
- Wed Oct 05 10:24:06 2016 +0000
- Revision:
- 0:7b78e040f288
UART
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
codebreaker7 | 0:7b78e040f288 | 1 | /** |
codebreaker7 | 0:7b78e040f288 | 2 | ****************************************************************************** |
codebreaker7 | 0:7b78e040f288 | 3 | * @file stm32l4xx_it.c |
codebreaker7 | 0:7b78e040f288 | 4 | * @author Ac6 |
codebreaker7 | 0:7b78e040f288 | 5 | * @version V1.0 |
codebreaker7 | 0:7b78e040f288 | 6 | * @date 02-Feb-2015 |
codebreaker7 | 0:7b78e040f288 | 7 | * @brief Default Interrupt Service Routines. |
codebreaker7 | 0:7b78e040f288 | 8 | ****************************************************************************** |
codebreaker7 | 0:7b78e040f288 | 9 | */ |
codebreaker7 | 0:7b78e040f288 | 10 | |
codebreaker7 | 0:7b78e040f288 | 11 | /* Includes ------------------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 12 | #include "stm32l4xx_hal.h" |
codebreaker7 | 0:7b78e040f288 | 13 | #include "stm32l4xx.h" |
codebreaker7 | 0:7b78e040f288 | 14 | #include "stm32l4xx_it.h" |
codebreaker7 | 0:7b78e040f288 | 15 | |
codebreaker7 | 0:7b78e040f288 | 16 | extern UART_HandleTypeDef UartHandle; |
codebreaker7 | 0:7b78e040f288 | 17 | |
codebreaker7 | 0:7b78e040f288 | 18 | /* Private typedef -----------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 19 | /* Private define ------------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 20 | /* Private macro -------------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 21 | /* Private variables ---------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 22 | /* Private function prototypes -----------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 23 | /* Private functions ---------------------------------------------------------*/ |
codebreaker7 | 0:7b78e040f288 | 24 | |
codebreaker7 | 0:7b78e040f288 | 25 | /******************************************************************************/ |
codebreaker7 | 0:7b78e040f288 | 26 | /* Processor Exceptions Handlers */ |
codebreaker7 | 0:7b78e040f288 | 27 | /******************************************************************************/ |
codebreaker7 | 0:7b78e040f288 | 28 | |
codebreaker7 | 0:7b78e040f288 | 29 | /** |
codebreaker7 | 0:7b78e040f288 | 30 | * @brief This function handles SysTick Handler. |
codebreaker7 | 0:7b78e040f288 | 31 | * @param None |
codebreaker7 | 0:7b78e040f288 | 32 | * @retval None |
codebreaker7 | 0:7b78e040f288 | 33 | */ |
codebreaker7 | 0:7b78e040f288 | 34 | void SysTick_Handler(void) |
codebreaker7 | 0:7b78e040f288 | 35 | { |
codebreaker7 | 0:7b78e040f288 | 36 | HAL_IncTick(); |
codebreaker7 | 0:7b78e040f288 | 37 | HAL_SYSTICK_IRQHandler(); |
codebreaker7 | 0:7b78e040f288 | 38 | } |
codebreaker7 | 0:7b78e040f288 | 39 | |
codebreaker7 | 0:7b78e040f288 | 40 | void USART1_IRQHandler(void) { |
codebreaker7 | 0:7b78e040f288 | 41 | HAL_UART_IRQHandler(&UartHandle); |
codebreaker7 | 0:7b78e040f288 | 42 | } |
codebreaker7 | 0:7b78e040f288 | 43 | |
codebreaker7 | 0:7b78e040f288 | 44 | void DMA1_Channel4_IRQHandler(void) { |
codebreaker7 | 0:7b78e040f288 | 45 | HAL_DMA_IRQHandler(UartHandle.hdmatx); |
codebreaker7 | 0:7b78e040f288 | 46 | } |
codebreaker7 | 0:7b78e040f288 | 47 | |
codebreaker7 | 0:7b78e040f288 | 48 | //void DMA1_Channel5_IRQHandler(void) { |
codebreaker7 | 0:7b78e040f288 | 49 | // HAL_DMA_IRQHandler(UartHandle.hdmarx); |
codebreaker7 | 0:7b78e040f288 | 50 | //} |
codebreaker7 | 0:7b78e040f288 | 51 |