加入大疆C板例程bsp
This commit is contained in:
19
bsp/boards/bsp_uart.h
Normal file
19
bsp/boards/bsp_uart.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef BSP_UART_H
|
||||
#define BSP_UART_H
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "struct_typedef.h"
|
||||
#include "usart.h"
|
||||
|
||||
typedef UART_HandleTypeDef huart_t;
|
||||
#define UART1 huart6 //(3pin)与板上的标识相对应
|
||||
#define UART2 huart1 //(4pin)与板上的标识相对应
|
||||
|
||||
typedef enum __UartSendState {
|
||||
UART_SEND_FAIL = 0,
|
||||
UART_SEND_OK,
|
||||
} UartSendState_e;
|
||||
|
||||
extern UartSendState_e UartSendTxMessage(
|
||||
UART_HandleTypeDef * huart, uint8_t * pData, uint16_t Size, uint32_t Timeout);
|
||||
|
||||
#endif // BSP_UART_H
|
||||
Reference in New Issue
Block a user