uart6.h 427 B

1234567891011121314151617181920
  1. #ifndef __UART6_H
  2. #define __UART6_H
  3. #include "interface.h"
  4. #include "queue.h"
  5. #include "stm32f4xx_usart.h"
  6. #include "string.h"
  7. #define UART6_REC_LEN 128
  8. #define UART6_TX_LEN 128
  9. #define UART6_MAX_MSG_NUM 10
  10. #define UART6_DMA DMA_Channel_5
  11. #define UART6_DMA_RXCH DMA1_Stream1
  12. #define UART6_DMA_TXCH DMA1_Stream3
  13. void uart6_init(void);
  14. void uart6_dma_send(const uint8_t *buf, uint16_t len);
  15. #endif // __UART3_H