/**
  ******************************************************************************
  * @file    USART1_user.h
  * @author  SINOMCU-AE
  * @brief   Header file of USART1_user.c file.
  * 
  *          This file describes the uart macro definitions used:
  *    UART_BUFF_LEN   
  ******************************************************************************
  * @attention 
  *                           DISCLAIMER
  * The present firmware which is for guidance only aims at providing customers
  * with coding information regarding their products in order for them to save
  * time. As a result, SinoMCU shall not be held liable for any direct,indirect
  * or consequential damages with respect to any claims arising from the content 
  * of such firmware and/or the use made by customers of the coding information 
  * contained herein in connection with their products.
  *
  * <h2><center>&copy; Copyright (c) 2021 sinomcu All rights reserved.</center></h2>
  *
  ******************************************************************************
  */

#ifndef __DMA_CFG_H
#define __DMA_CFG_H

#include "stdio.h"
#include "ms32f0xx.h"
#include "GPIO_CFG.h"

#define UART_BUFF_LEN             10        // uart rx DMA buff length

void DMA1_ReceiveComplete_Callback(void);
void DMA1_TransferError_Callback(void);
void Send_buff_Uart(uint8_t *uart_buff,uint8_t buff_len);
void uart_dma_user(void);
void dma_uart_rx_init(void);

#endif /* __DMA_CFG_H */ 

/******************************** END OF FILE *********************************/
