fec__ext.c
来自「基于vxworks操作系统的电话语音平台系统」· C语言 代码 · 共 57 行
C
57 行
/************************************************************************/
/* */
/* */
/* (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 + =
减小字号Ctrl + -
显示快捷键?