include/win32/config.h
changeset 145 e747d2e26af0
child 200 930be51ddc24
equal deleted inserted replaced
144:3ebf16150b2e 145:e747d2e26af0
       
     1 /*
       
     2 This file is part of CanFestival, a library implementing CanOpen Stack.
       
     3 
       
     4 Copyright (C): Edouard TISSERANT and Francis DUPIN
       
     5 See COPYING file for copyrights details.
       
     6 
       
     7 This library is free software; you can redistribute it and/or
       
     8 modify it under the terms of the GNU Lesser General Public
       
     9 License as published by the Free Software Foundation; either
       
    10 version 2.1 of the License, or (at your option) any later version.
       
    11 
       
    12 This library is distributed in the hope that it will be useful,
       
    13 but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    15 Lesser General Public License for more details.
       
    16 
       
    17 You should have received a copy of the GNU Lesser General Public
       
    18 License along with this library; if not, write to the Free Software
       
    19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    20 */
       
    21 
       
    22 #ifndef _CONFIG_H_
       
    23 #define _CONFIG_H_
       
    24 
       
    25 #define MAX_CAN_BUS_ID 1
       
    26 #define SDO_MAX_LENGTH_TRANSFERT 32
       
    27 #define SDO_MAX_SIMULTANEOUS_TRANSFERTS 4
       
    28 #define NMT_MAX_NODE_ID 128
       
    29 #define SDO_TIMEOUT_MS 3000
       
    30 #define MAX_NB_TIMER 32
       
    31 // CANOPEN_BIG_ENDIAN is not defined
       
    32 #define CANOPEN_LITTLE_ENDIAN 1
       
    33 
       
    34 #define US_TO_TIMEVAL_FACTOR 1
       
    35 
       
    36 #define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\
       
    37 repeat repeat repeat repeat
       
    38 #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\
       
    39 repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat
       
    40 
       
    41 #endif /* _CONFIG_H_ */