wdbpipe.c

来自「IXP425的BSP代码」· C语言 代码 · 共 60 行

C
60
字号
/* wdbPipe.c - WDB pipe communication initialization library *//* Copyright 1998 Wind River Systems, Inc. *//*modification history--------------------01a,18may98,dbt   written based on usrWdb.c ver 02t*//*DESCRIPTIONInitializes the pipe connection for the WDB agent (VxSim only).NOMANUAL*//******************************************************************************** wdbCommDevInit - initialize the pipe connection** This routine initializes the pipe connection used by the WDB agent.** RETURNS :* OK or ERROR if the pipe connection can not be initialized.** NOMANUAL*/STATUS wdbCommDevInit    (    WDB_COMM_IF *	pCommIf,    char ** 		ppWdbInBuf,    char **		ppWdbOutBuf    )    {    static WDB_PIPE_PKT_DEV	wdbPipePktDev;	/* Pipe packet device */    static uint_t		wdbInBuf [WDB_MTU/4];    static uint_t		wdbOutBuf [WDB_MTU/4];    /* update input & output buffer pointers */    *ppWdbInBuf = (char *) wdbInBuf;    *ppWdbOutBuf = (char *) wdbOutBuf;    /* update communication interface mtu */    wdbCommMtu = WDB_MTU;    /* pipe packet driver - supports task or external agent */    if (wdbPipePktDevInit(&wdbPipePktDev, udpRcv) == ERROR)	return (ERROR);    if (udpCommIfInit(pCommIf, &wdbPipePktDev.wdbDrvIf) == ERROR)	return (ERROR);    return (OK);    }

⌨️ 快捷键说明

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