Sam Grove
/
canopen_masternode
CANfestival - an open source CANopen framework
Embed:
(wiki syntax)
Show/hide line numbers
config.h
00001 /* 00002 This file is part of CanFestival, a library implementing CanOpen Stack. 00003 00004 Copyright (C): Edouard TISSERANT and Francis DUPIN 00005 mbed port: sgrove 00006 00007 See COPYING file for copyrights details. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public 00011 License as published by the Free Software Foundation; either 00012 version 2.1 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 */ 00023 00024 #ifndef _CONFIG_H_ 00025 #define _CONFIG_H_ 00026 00027 #define CAN_BAUDRATE 125 00028 00029 // Needed defines by Canfestival lib 00030 #define MAX_CAN_BUS_ID 1 00031 #define SDO_MAX_LENGTH_TRANSFERT 32 00032 #define SDO_MAX_SIMULTANEOUS_TRANSFERTS 1 00033 #define NMT_MAX_NODE_ID 128 00034 #define SDO_TIMEOUT_MS 3000U 00035 #define MAX_NB_TIMER 8 00036 00037 // CANOPEN_BIG_ENDIAN is not defined 00038 #define CANOPEN_LITTLE_ENDIAN 1 00039 00040 #define US_TO_TIMEVAL_FACTOR 8 00041 00042 #define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\ 00043 repeat 00044 #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\ 00045 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 00046 00047 #define EMCY_MAX_ERRORS 8 00048 #define REPEAT_EMCY_MAX_ERRORS_TIMES(repeat)\ 00049 repeat repeat repeat repeat repeat repeat repeat repeat 00050 00051 00052 #endif /* _CONFIG_H_ */
Generated on Tue Jul 12 2022 17:11:51 by 1.7.2