drivers/can_multi_peeakwin32/cancfg.h
author Edouard Tisserant
Mon, 23 Apr 2018 12:32:03 +0200
changeset 805 570e3a444023
parent 695 0271f08ba819
permissions -rw-r--r--
Workaround Alchemy task not beeing waken up when closing file descriptor it is waiting on, sequel of Xenomai3 all posix file ops
695
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     1
/*
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     2
This file is part of CanFestival, a library implementing CanOpen Stack. 
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     3
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     4
Copyright (C): Jaroslav Fojtik
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     5
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     6
See COPYING file for copyrights details.
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     7
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     8
This library is free software; you can redistribute it and/or
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
     9
modify it under the terms of the GNU Lesser General Public
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    10
License as published by the Free Software Foundation; either
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    11
version 2.1 of the License, or (at your option) any later version.
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    12
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    13
This library is distributed in the hope that it will be useful,
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    14
but WITHOUT ANY WARRANTY; without even the implied warranty of
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    16
Lesser General Public License for more details.
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    17
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    18
You should have received a copy of the GNU Lesser General Public
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    19
License along with this library; if not, write to the Free Software
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    21
*/
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    22
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    23
#ifndef __CANCFG_H__
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    24
#define __CANCFG_H__
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    25
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    26
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    27
#if defined(__CYGWIN__)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    28
#include <windef.h>
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    29
#else
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    30
#include <windows.h>
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    31
#endif
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    32
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    33
// Following part of the file is copied by configure script
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    34
// from choosen PcanLight header file
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    35
//-------------------------------------------------------------------------------
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    36
//-------------------------------------------------------------------------------
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    37
//-------------------------------------------------------------------------------
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    38
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    39
#ifdef PCAN2_HEADER_
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    40
 #include "pcan_2usb.h"
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    41
 #define CAN_Init(wBTR0BTR1,Type) CAN2_Init(wBTR0BTR1,Type)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    42
 #define CAN_Close()		  CAN2_Close()
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    43
 #define CAN_Status()		  CAN2_Status()
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    44
 #define CAN_Write(PCANMsg)	  CAN2_Write(PCANMsg)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    45
 #define CAN_Read(PCANMsg)	  CAN2_Read(PCANMsg)  
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    46
 #define CAN_VersionInfo(lpszTextBuff) CAN2_VersionInfo(lpszTextBuff)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    47
 #define CAN_ResetClient()       CAN2_ResetClient() 
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    48
 #define CAN_MsgFilter(FromID,ToID,Type) CAN2_MsgFilter(FromID,ToID,Type)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    49
 #define CAN_ReadEx(pMsgBuff,pRcvTime) CAN2_ReadEx(pMsgBuff,pRcvTime)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    50
 #define CAN_SetRcvEvent(hEvent) CAN2_SetRcvEvent(hEvent)
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    51
#else
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    52
 #include "pcan_usb.h"
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    53
#endif
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    54
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    55
0271f08ba819 Multiple instances CAN wirtual network for PEAK and Windows.
JaFojtik
parents:
diff changeset
    56
#endif