JaFojtik@713: /* JaFojtik@713: This file is part of CanFestival, a library implementing CanOpen Stack. JaFojtik@713: JaFojtik@713: Copyright (C): Edouard TISSERANT and Francis DUPIN JaFojtik@713: Modified by: Jaroslav Fojtik JaFojtik@713: JaFojtik@713: See COPYING file for copyrights details. JaFojtik@713: JaFojtik@713: This library is free software; you can redistribute it and/or JaFojtik@713: modify it under the terms of the GNU Lesser General Public JaFojtik@713: License as published by the Free Software Foundation; either JaFojtik@713: version 2.1 of the License, or (at your option) any later version. JaFojtik@713: JaFojtik@713: This library is distributed in the hope that it will be useful, JaFojtik@713: but WITHOUT ANY WARRANTY; without even the implied warranty of JaFojtik@713: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU JaFojtik@713: Lesser General Public License for more details. JaFojtik@713: JaFojtik@713: You should have received a copy of the GNU Lesser General Public JaFojtik@713: License along with this library; if not, write to the Free Software JaFojtik@713: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JaFojtik@713: */ JaFojtik@713: JaFojtik@713: #ifndef __CANCFG_H__ JaFojtik@713: #define __CANCFG_H__ JaFojtik@713: JaFojtik@713: JaFojtik@713: #if defined(__CYGWIN__) JaFojtik@713: #include JaFojtik@713: #else JaFojtik@713: #include JaFojtik@713: #endif JaFojtik@713: JaFojtik@713: // Following part of the file is copied by configure script JaFojtik@713: // from choosen PcanLight header file JaFojtik@713: //------------------------------------------------------------------------------- JaFojtik@713: //------------------------------------------------------------------------------- JaFojtik@713: //------------------------------------------------------------------------------- JaFojtik@713: JaFojtik@713: #ifdef PCAN2_HEADER_ JaFojtik@713: #include "pcan_2usb.h" JaFojtik@713: #define CAN_Init(wBTR0BTR1,Type) CAN2_Init(wBTR0BTR1,Type) JaFojtik@713: #define CAN_Close() CAN2_Close() JaFojtik@713: #define CAN_Status() CAN2_Status() JaFojtik@713: #define CAN_Write(PCANMsg) CAN2_Write(PCANMsg) JaFojtik@713: #define CAN_Read(PCANMsg) CAN2_Read(PCANMsg) JaFojtik@713: #define CAN_VersionInfo(lpszTextBuff) CAN2_VersionInfo(lpszTextBuff) JaFojtik@713: #define CAN_ResetClient() CAN2_ResetClient() JaFojtik@713: #define CAN_MsgFilter(FromID,ToID,Type) CAN2_MsgFilter(FromID,ToID,Type) JaFojtik@713: #define CAN_ReadEx(pMsgBuff,pRcvTime) CAN2_ReadEx(pMsgBuff,pRcvTime) JaFojtik@713: #define CAN_SetRcvEvent(hEvent) CAN2_SetRcvEvent(hEvent) JaFojtik@713: #else JaFojtik@713: #include "pcan_usb.h" JaFojtik@713: #endif JaFojtik@713: JaFojtik@713: #endif