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