第一次提交

This commit is contained in:
2025-10-04 16:06:55 +08:00
commit 2acba0caf0
58 changed files with 11679 additions and 0 deletions

157
interface_uart.h Normal file
View File

@@ -0,0 +1,157 @@
#ifndef _INTERFACE_UART_H_
#define _INTERFACE_UART_H_
#include "interface_config.h"
#include <sdrv_uart.h>
#define ZERO_VALUE 1022//<2F><><EFBFBD><EFBFBD>ң<EFBFBD><D2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><30><CAB1><EFBFBD><EFBFBD>Ϊ1022
#define remote_speed un_remote_control_input.bit_data.speed//<2F>ٶ<EFBFBD>
#define remote_curvature un_remote_control_input.bit_data.curvature//ת<><D7AA>
#define remote_Reserve un_remote_control_input.bit_data.reserve1//<2F><><EFBFBD><EFBFBD>
#define emergency_stop un_remote_control_input.bit_data.switch_a//DF_SwA
#define remote_switch_b un_remote_control_input.bit_data.switch_b//DF_SwB
#define remote_switch_c un_remote_control_input.bit_data.switch_c//DF_SwC
#define remote_switch_d un_remote_control_input.bit_data.switch_d//DF_SwD
#define remote_enable un_remote_control_input.bit_data.enable//<2F>ֱ<EFBFBD>ʹ<EFBFBD><CAB9>״̬
typedef struct
{
uint16_t remote_count; //ң<>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD><EFBFBD>
uint8_t remote_state; //ң<><D2A3>״̬
}UartFaultInfo;
void uart_Initialize(void);
void callback(sdrv_uart_t *ctrl, sdrv_uart_callback_status_e status,
void *userData);
#endif /* _INTERFACE_H_ */