etisserant@145: /* etisserant@145: This file is part of CanFestival, a library implementing CanOpen Stack. etisserant@145: etisserant@145: Copyright (C): Edouard TISSERANT and Francis DUPIN etisserant@145: See COPYING file for copyrights details. etisserant@145: etisserant@145: This library is free software; you can redistribute it and/or etisserant@145: modify it under the terms of the GNU Lesser General Public etisserant@145: License as published by the Free Software Foundation; either etisserant@145: version 2.1 of the License, or (at your option) any later version. etisserant@145: etisserant@145: This library is distributed in the hope that it will be useful, etisserant@145: but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@145: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@145: Lesser General Public License for more details. etisserant@145: etisserant@145: You should have received a copy of the GNU Lesser General Public etisserant@145: License along with this library; if not, write to the Free Software etisserant@145: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@145: */ etisserant@145: etisserant@145: #ifndef _CONFIG_H_ etisserant@145: #define _CONFIG_H_ etisserant@145: Christian@636: #define CO_ENABLE_LSS Christian@636: etisserant@145: #define MAX_CAN_BUS_ID 1 Edouard@710: #define SDO_DYNAMIC_BUFFER_ALLOCATION //New define, if SDO_MAX_LENGTH_TRANSFE is exceeded allocate data buffer dynamically Christian@636: #define SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE (1024 * 128) JaFojtik@694: #define SDO_MAX_LENGTH_TRANSFER 32 JaFojtik@694: #define SDO_MAX_SIMULTANEOUS_TRANSFERS 32 hacking@700: #define SDO_BLOCK_SIZE 16 etisserant@145: #define NMT_MAX_NODE_ID 128 etisserant@145: #define SDO_TIMEOUT_MS 3000 etisserant@145: #define MAX_NB_TIMER 32 greg@590: /* CANOPEN_BIG_ENDIAN is not defined */ greg@590: /* US_TO_TIMEVAL_FACTOR is not defined */ greg@590: /* TIMEVAL is not defined */ greg@590: /* TIMEVAL_MAX is not defined */ greg@590: /* RTCAN_SOCKET is not defined */ greg@590: #define EMCY_MAX_ERRORS 8 greg@590: #define LSS_TIMEOUT_MS 1000 greg@590: #define LSS_FS_TIMEOUT_MS 100 etisserant@145: JaFojtik@694: #define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(repeat)\ Christian@636: 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 etisserant@145: #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\ etisserant@145: 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 greg@590: #define REPEAT_EMCY_MAX_ERRORS_TIMES(repeat)\ greg@590: repeat repeat repeat repeat repeat repeat repeat repeat etisserant@145: #endif /* _CONFIG_H_ */