uart3.h 445 B

123456789101112131415161718192021
  1. #ifndef __UART3_H
  2. #define __UART3_H
  3. #include "includes.h"
  4. #include "interface.h"
  5. #include "queue.h"
  6. #include "stm32f4xx_usart.h"
  7. #include "string.h"
  8. #define UART3_REC_LEN 128
  9. #define UART3_TX_LEN 128
  10. #define UART3_MAX_MSG_NUM 10
  11. #define UART3_DMA DMA_Channel_4
  12. #define UART3_DMA_RXCH DMA1_Stream1
  13. #define UART3_DMA_TXCH DMA1_Stream3
  14. void uart3_init(void);
  15. void uart3_dma_send(const INT8U *buf, INT16U len);
  16. #endif // __UART3_H