Sam Grove
/
canopen_slavenode
CANfestival - an open source CANopen framework
framework/include/mbed/config.h@6:bc64031ac849, 2012-09-26 (annotated)
- Committer:
- sam_grove
- Date:
- Wed Sep 26 05:43:05 2012 +0000
- Revision:
- 6:bc64031ac849
- Parent:
- 0:6219434a0cb5
Change a typecast in can_mbed.cpp from unit8_t * to char * to fit the CANMessage constructor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove |
0:6219434a0cb5 | 1 | /* |
sam_grove |
0:6219434a0cb5 | 2 | This file is part of CanFestival, a library implementing CanOpen Stack. |
sam_grove |
0:6219434a0cb5 | 3 | |
sam_grove |
0:6219434a0cb5 | 4 | Copyright (C): Edouard TISSERANT and Francis DUPIN |
sam_grove |
0:6219434a0cb5 | 5 | mbed port: sgrove |
sam_grove |
0:6219434a0cb5 | 6 | |
sam_grove |
0:6219434a0cb5 | 7 | See COPYING file for copyrights details. |
sam_grove |
0:6219434a0cb5 | 8 | |
sam_grove |
0:6219434a0cb5 | 9 | This library is free software; you can redistribute it and/or |
sam_grove |
0:6219434a0cb5 | 10 | modify it under the terms of the GNU Lesser General Public |
sam_grove |
0:6219434a0cb5 | 11 | License as published by the Free Software Foundation; either |
sam_grove |
0:6219434a0cb5 | 12 | version 2.1 of the License, or (at your option) any later version. |
sam_grove |
0:6219434a0cb5 | 13 | |
sam_grove |
0:6219434a0cb5 | 14 | This library is distributed in the hope that it will be useful, |
sam_grove |
0:6219434a0cb5 | 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
sam_grove |
0:6219434a0cb5 | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
sam_grove |
0:6219434a0cb5 | 17 | Lesser General Public License for more details. |
sam_grove |
0:6219434a0cb5 | 18 | |
sam_grove |
0:6219434a0cb5 | 19 | You should have received a copy of the GNU Lesser General Public |
sam_grove |
0:6219434a0cb5 | 20 | License along with this library; if not, write to the Free Software |
sam_grove |
0:6219434a0cb5 | 21 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
sam_grove |
0:6219434a0cb5 | 22 | */ |
sam_grove |
0:6219434a0cb5 | 23 | |
sam_grove |
0:6219434a0cb5 | 24 | #ifndef _CONFIG_H_ |
sam_grove |
0:6219434a0cb5 | 25 | #define _CONFIG_H_ |
sam_grove |
0:6219434a0cb5 | 26 | |
sam_grove |
0:6219434a0cb5 | 27 | #define CAN_BAUDRATE 125 |
sam_grove |
0:6219434a0cb5 | 28 | |
sam_grove |
0:6219434a0cb5 | 29 | // Needed defines by Canfestival lib |
sam_grove |
0:6219434a0cb5 | 30 | #define MAX_CAN_BUS_ID 1 |
sam_grove |
0:6219434a0cb5 | 31 | #define SDO_MAX_LENGTH_TRANSFERT 32 |
sam_grove |
0:6219434a0cb5 | 32 | #define SDO_MAX_SIMULTANEOUS_TRANSFERTS 1 |
sam_grove |
0:6219434a0cb5 | 33 | #define NMT_MAX_NODE_ID 128 |
sam_grove |
0:6219434a0cb5 | 34 | #define SDO_TIMEOUT_MS 3000U |
sam_grove |
0:6219434a0cb5 | 35 | #define MAX_NB_TIMER 8 |
sam_grove |
0:6219434a0cb5 | 36 | |
sam_grove |
0:6219434a0cb5 | 37 | // CANOPEN_BIG_ENDIAN is not defined |
sam_grove |
0:6219434a0cb5 | 38 | #define CANOPEN_LITTLE_ENDIAN 1 |
sam_grove |
0:6219434a0cb5 | 39 | |
sam_grove |
0:6219434a0cb5 | 40 | #define US_TO_TIMEVAL_FACTOR 8 |
sam_grove |
0:6219434a0cb5 | 41 | |
sam_grove |
0:6219434a0cb5 | 42 | #define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\ |
sam_grove |
0:6219434a0cb5 | 43 | repeat |
sam_grove |
0:6219434a0cb5 | 44 | #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\ |
sam_grove |
0:6219434a0cb5 | 45 | 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 |
sam_grove |
0:6219434a0cb5 | 46 | |
sam_grove |
0:6219434a0cb5 | 47 | #define EMCY_MAX_ERRORS 8 |
sam_grove |
0:6219434a0cb5 | 48 | #define REPEAT_EMCY_MAX_ERRORS_TIMES(repeat)\ |
sam_grove |
0:6219434a0cb5 | 49 | repeat repeat repeat repeat repeat repeat repeat repeat |
sam_grove |
0:6219434a0cb5 | 50 | |
sam_grove |
0:6219434a0cb5 | 51 | |
sam_grove |
0:6219434a0cb5 | 52 | #endif /* _CONFIG_H_ */ |