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.

111 lines
3.4 KiB

/******************************************************************************
(C), 2018-2099, Radkil
******************************************************************************
: drv_interface.h
: 稿
: radkil
: 202668
:
: drv_interface.c
:
1. : 202668
: radkil
:
******************************************************************************/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
/*----------------------------------------------*
* *
*----------------------------------------------*/
#ifndef __DRV_INTERFACE_H__
#define __DRV_INTERFACE_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/*==============================================*
* include header files *
*----------------------------------------------*/
#include "common.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__ */