- 云台(ROBOT_TYPE_GIMBAL)与底盘(ROBOT_TYPE_CHASSIS)完整固件源码 - 新增根级 .gitignore,排除 Keil MDK-ARM 构建产物(.o/.d/.crf/.axf/.lnp/.map/.htm/.sct/.dep/.iex/.lst 等) 与 *.uvguix.* / DebugConfig/(与机器绑定的 UI 布局) - core.autocrlf=false,避免固件源码在检出时被改动换行符
19 lines
497 B
C
19 lines
497 B
C
#ifndef BSP_UART_H
|
|
#define BSP_UART_H
|
|
#include "stm32f4xx_hal.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
|