1234567891011121314151617181920 |
- #ifndef __UART1_H
- #define __UART1_H
- #include "includes.h"
- #include "interface.h"
- #include "stm32f4xx_usart.h"
- #include "string.h"
- #define UART1_REC_LEN 128
- #define UART1_TX_LEN 128
- #define UART1_MAX_MSG_NUM 10
- #define UART1_DMA DMA_Channel_4
- #define UART1_DMA_RXCH DMA2_Stream5
- #define UART1_DMA_TXCH DMA2_Stream7
- void uart1_init(void);
- void uart1_dma_send(const INT8U *buf, INT16U len);
- #endif // __UART_H
|