📄 prpccfg.c
字号:
/***********************************************************************//* *//* MODULE: prpccfg.c 1.3 *//* DATE: 17:57:18 - 97/12/05 *//* PURPOSE: pRPC+ configuration file *//* *//*---------------------------------------------------------------------*//* *//* Copyright 1991 - 1993, Integrated Systems, Inc. *//* ALL RIGHTS RESERVED *//* *//* Permission is hereby granted to licensees of Integrated Systems, *//* Inc. products to use or abstract this computer program for the *//* sole purpose of implementing a product based on Integrated *//* Systems, Inc. products. No other rights to reproduce, use, *//* or disseminate this computer program, whether in part or in *//* whole, are granted. *//* *//* Integrated Systems, Inc. makes no representation or warranties *//* with respect to the performance of this computer program, and *//* specifically disclaims any responsibility for any damages, *//* special or consequential, connected with the use of this program. *//* *//*---------------------------------------------------------------------*//* *//* This code in this module controls the configuration of the *//* pRPC+ componet. Many configurations are possible, based on *//* these inputs: *//* * Options selected in "sys_conf.h" *//* *//***********************************************************************/#if defined(__cplusplus)extern "C" {#endif#include "sys_conf.h"#if (SC_PRPC)#include <configs.h>#include "bsp.h"#include <bspfuncs.h>extern void prpc(void);/*---------------------------------------------------------------------*//* pRPC+ configuration table. The definitions for this is *//* contained in <configs.h>. *//*---------------------------------------------------------------------*/pRPC_CT PrpcCfg;extern pNA_SCT PnaSubCfg;/***********************************************************************//* PrpcSetup: Setup pNA+ componet *//* *//* INPUTS: FreeMemPtr pointer to free memory area that can be *//* used to allocate memory for this componet. *//* *//* NodeCfg pointer to the systems node configuration *//* table. This will not be used. *//* *//* RETURNS: The new FreeMemPtr is returned. *//* *//***********************************************************************/UCHAR *PrpcSetup(UCHAR *FreeMemPtr, NODE_CT *NodeCfg){/*---------------------------------------------------------------------*//* Build the pRPC configuration table *//*---------------------------------------------------------------------*/#if (SC_PREPC == NO) #error "pREP/C is required in order to use pRPC"#endif#if (NR_DATA && NR_DATASIZE) PrpcCfg.nr_data = (char *)NR_DATA; PrpcCfg.nr_datasize = NR_DATASIZE;#elif NR_DATASIZE PrpcCfg.nr_data = (char *)FreeMemPtr; PrpcCfg.nr_datasize = NR_DATASIZE; FreeMemPtr = FreeMemPtr + NR_DATASIZE;#endifPrpcCfg.nr_code = prpc;PnaSubCfg.nr_cfg = &PrpcCfg;return(FreeMemPtr);}#else static void stub(void){}#endif#if defined(__cplusplus)}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -