UART

Dependencies:   BSP_DISCO_L476VG LCD_DISCO_L476VG mbed

stm32l4xx_it.c

Committer:
codebreaker7
Date:
2016-10-05
Revision:
0:7b78e040f288

File content as of revision 0:7b78e040f288:

/**
  ******************************************************************************
  * @file    stm32l4xx_it.c
  * @author  Ac6
  * @version V1.0
  * @date    02-Feb-2015
  * @brief   Default Interrupt Service Routines.
  ******************************************************************************
*/

/* Includes ------------------------------------------------------------------*/
#include "stm32l4xx_hal.h"
#include "stm32l4xx.h"
#include "stm32l4xx_it.h"

extern UART_HandleTypeDef UartHandle;

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/******************************************************************************/
/*            	  	    Processor Exceptions Handlers                         */
/******************************************************************************/

/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(void)
{
	HAL_IncTick();
	HAL_SYSTICK_IRQHandler();
}

void USART1_IRQHandler(void) {
	HAL_UART_IRQHandler(&UartHandle);
}

void DMA1_Channel4_IRQHandler(void) {
	HAL_DMA_IRQHandler(UartHandle.hdmatx);
}

//void DMA1_Channel5_IRQHandler(void) {
//	HAL_DMA_IRQHandler(UartHandle.hdmarx);
//}