init.c

来自「This library is Copyright (c) Raphael Zu」· C语言 代码 · 共 36 行

C
36
字号
/***************************************************************************
                          init.c  -  description
                             -------------------
    begin                : Fri May 17 2002
    copyright            : (C) 2002 by Raphael Zulliger
    email                : zulli@hsr.ch
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is Copyright (c) Raphael Zulliger <zulli@gmx.net>.       *
 *   It is licensed under the GNU Library General Public License (LGPL).   *
 *                                                                         *
 ***************************************************************************/

#include <init.h>
#include <canop.h>

BYTE bDeviceNodeId;
BYTE bStateMachineState;

BYTE initConnection( sInitParameter* initParameter )
{
	bDeviceNodeId = initParameter->bNodeID;

	// send this to the platform-specific function which sets the can-controller
	setupCanInterface( initParameter );	
	return 0;
}


void closeConnection( void )
{
    closeCanInterface( );
}

⌨️ 快捷键说明

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