bdi
Wind
for Tornado™, BDI2000 (MPC8xx/MPC5xx)
User Manual
37
© Copyright 1997-2007 by ABATRON AG Switzerland
V 1.38
3.3.4 Tornado 1.01
Change the following source files.
tornado\target\src\config\usrWdb.c:
Add the following line to the list of header files:
#include
"drv/wdb/wdbUlipPktDrv.h"
#include
"drv/wdb/wdbNetromPktDrv.h"
#include
"wdbBdiPktDrv.h"
Add the following lines to the routine wdbCommIfInit:
}
#endif /* (WDB_COMM_TYPE == WDB_COMM_CUSTOM) */
#if (WDB_COMM_TYPE == WDB_COMM_BDI)
{
/* bdi packet driver - supports task or external agent */
static WDB_BDI_PKT_DEV
wdbBdiPktDev; /* BDI packet device */
wdbBdiPktDevInit (&wdbBdiPktDev, udpRcv);
udpCommIfInit (pCommIf, &wdbBdiPktDev.wdbDrvIf);
}
#endif /* (WDB_COMM_TYPE == WDB_COMM_BDI) */
/*
* Install the agents communication interface and RPC transport handle
tornado\target\config\all\configAll.h:
Add the following line to the list of communication paths:
#define
WDB_COMM_NETROM
4
/* netrom packet device - bimodal */
#define
WDB_COMM_CUSTOM
5
/* custom packet device - bimodal */
#define
WDB_COMM_BDI
6
/* bdi packet device - bimodal */
tornado\target\config\myTarget\Makefile:
Add the following lines to the VxWorks Makefile:
MACH_EXTRA
= wdbBdiPktDrv.o
tornado\target\config\myTarget\config.h:
Change this file for your need. Configure the WDB agent so that the BDI packet driver will be used.
The following lines show a possible WDB agent configuration:
/* agent mode */
#undef
WDB_MODE
#define
WDB_MODE WDB_MODE_BI
/* WDB_MODE_[BI|TASK|EXTERN] */
/* agent communication path */
#undef
WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_BDI