freeRTOS操作系统机器人实现
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

110 lines
3.4 KiB

/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : drv_interface.h
版 本 号 : 初稿
作 者 : radkil
生成日期 : 2026年6月8日
最近修改 :
功能描述 : drv_interface.c 的头文件
修改历史 :
1.日 期 : 2026年6月8日
作 者 : radkil
修改内容 : 创建文件
******************************************************************************/
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
#ifndef __DRV_INTERFACE_H__
#define __DRV_INTERFACE_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/*==============================================*
* include header files *
*----------------------------------------------*/
#include "bsp_config.h"
#include "main.h"
#include "bsp_uart.h"
#include "bsp_CAN.h"
#include "fdcan.h"
/*==============================================*
* constants or macros define *
*----------------------------------------------*/
/*==============================================*
* project-wide global variables *
*----------------------------------------------*/
extern TComCtrl *g_ptRS485_1;
extern TComCtrl *g_ptRS485_2;
extern TComCtrl *g_ptRS485_3;
extern TComCtrl *g_ptRS485_4;
extern TComCtrl *g_ptLTE_7S0;
extern TComCtrl *g_ptE28_SBUS;
extern TComCtrl *g_ptInterCall;
extern TComCtrl *g_ptFDCAN1;
extern TComCtrl *g_ptFDCAN2;
/*==============================================*
* routines' or functions' implementations *
*----------------------------------------------*/
extern int E28_SBUS_Send(char *_pBuffer, uint32_t _iSize);
extern int FDCAN1_Send(char *_pBuffer, uint32_t _iSize);
extern int FDCAN2_Send(char *_pBuffer, uint32_t _iSize);
extern int InterCall_Send(char *_pBuffer, uint32_t _iSize);
extern int LTE_7S0_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_1_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_2_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_3_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_4_Send(char *_pBuffer, uint32_t _iSize);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __DRV_INTERFACE_H__ */