uart3.h 427 B

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