⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fec__ext.c

📁 基于vxworks操作系统的电话语音平台系统
💻 C
字号:
/************************************************************************/
/*                                                              		*/
/*                                                              		*/
/* (C) Copyright Bangyan Information Technology Ltd, 2000/9.            */
/*  All right reserved                                          		*/
/*                                                              		*/
/*                                                              		*/
/* Description:                                                 		*/
/*     Driver Set - FEC Handle pecific routines.            			*/
/*                                                              		*/
/* Routines                                                     		*/
/*                                                                      */
/************************************************************************/
#include "PUB\PUB_INCL.H"
#include "DRVs\DRV860\PUB\NETCOMM.H"       /* global defines */
#include "DRVs\DRV860\PUB\D860_PUB.H"
#include "DRVs\DRV860\PUB\MPC860.H"       /* IMMR definitions and declarations */
#include "DRVs\DRV860\PUB\MASKS860.h"      /* Global masks header file */
#include "FEC.H"




extern VOID FecInit( VOID );
extern BOOL FecSendToBuf( UI buf_len, VOID *buffer );
extern VOID StartFec( VOID );


#ifdef _NUCLEUS_RTOS
extern STATUS SendEtherToTcpip(UC *buffer, SI length) ;
#endif

VOID FecRecvDataHdl(UI len, VOID *buf);
SI ethernet_tx(SI scc_num, VOID *buf, SI length);


BOOL DrvFecInitiate( VOID )
{
	FecInit();
	StartFec();
	
	return TRUE;
}


VOID FecRecvDataHdl(UI len, VOID *buf)
{
	#ifdef _NUCLEUS_RTOS
	SendEtherToTcpip((UC *)buf, len) ;
	#endif
}


SI ethernet_tx(SI scc_num, VOID *buf, SI length)
{
	FecSendToBuf(length, buf);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -