/** ****************************************************************************** * File Name : dma.h * Description : This file contains all the function prototypes for * the dma.c file ****************************************************************************** * @attention * *

© Copyright (c) 2019 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __dma_H #define __dma_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "main.h" /* DMA memory to memory transfer handles -------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* USER CODE BEGIN Private defines */ #define USART1_DMA DMA1 #define USART2_DMA DMA1 #define USART1_DMA_CHANNEL LL_DMA_CHANNEL_6 #define USART2_DMA_CHANNEL LL_DMA_CHANNEL_5 /* USER CODE END Private defines */ void MX_DMA_Init(void); /* USER CODE BEGIN Prototypes */ void Usart_DMA_CONFIG(DMA_TypeDef *DMAx, uint32_t Channel, USART_TypeDef *USARTx, uint32_t MemoryAddress,uint32_t NbData); /* USER CODE END Prototypes */ #ifdef __cplusplus } #endif #endif /* __dma_H */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/