author | Edouard Tisserant |
Tue, 05 Mar 2013 16:12:19 +0900 | |
changeset 767 | 5313a3d85752 |
parent 710 | e7a45c77d6ec |
permissions | -rw-r--r-- |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
1 |
/* |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
2 |
This file is part of CanFestival, a library implementing CanOpen Stack. |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
3 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
4 |
Copyright (C): Edouard TISSERANT and Francis DUPIN |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
5 |
See COPYING file for copyrights details. |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
6 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
7 |
This library is free software; you can redistribute it and/or |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
8 |
modify it under the terms of the GNU Lesser General Public |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
9 |
License as published by the Free Software Foundation; either |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
10 |
version 2.1 of the License, or (at your option) any later version. |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
11 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
12 |
This library is distributed in the hope that it will be useful, |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
15 |
Lesser General Public License for more details. |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
16 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
17 |
You should have received a copy of the GNU Lesser General Public |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
18 |
License along with this library; if not, write to the Free Software |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
19 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
20 |
*/ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
21 |
|
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
22 |
#ifndef _CONFIG_H_ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
23 |
#define _CONFIG_H_ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
24 |
|
636
033fe6f1ec3c
ADDED: - dynamic memory allocation for sdo transfer using malloc and free
Christian Taedcke
parents:
590
diff
changeset
|
25 |
#define CO_ENABLE_LSS |
033fe6f1ec3c
ADDED: - dynamic memory allocation for sdo transfer using malloc and free
Christian Taedcke
parents:
590
diff
changeset
|
26 |
|
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
27 |
#define MAX_CAN_BUS_ID 1 |
710 | 28 |
#define SDO_DYNAMIC_BUFFER_ALLOCATION //New define, if SDO_MAX_LENGTH_TRANSFE is exceeded allocate data buffer dynamically |
636
033fe6f1ec3c
ADDED: - dynamic memory allocation for sdo transfer using malloc and free
Christian Taedcke
parents:
590
diff
changeset
|
29 |
#define SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE (1024 * 128) |
694
8dd1e58b3815
There is no English word "transfert". Fix all the typos.
JaFojtik
parents:
636
diff
changeset
|
30 |
#define SDO_MAX_LENGTH_TRANSFER 32 |
8dd1e58b3815
There is no English word "transfert". Fix all the typos.
JaFojtik
parents:
636
diff
changeset
|
31 |
#define SDO_MAX_SIMULTANEOUS_TRANSFERS 32 |
700 | 32 |
#define SDO_BLOCK_SIZE 16 |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
33 |
#define NMT_MAX_NODE_ID 128 |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
34 |
#define SDO_TIMEOUT_MS 3000 |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
35 |
#define MAX_NB_TIMER 32 |
590
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
36 |
/* CANOPEN_BIG_ENDIAN is not defined */ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
37 |
/* US_TO_TIMEVAL_FACTOR is not defined */ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
38 |
/* TIMEVAL is not defined */ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
39 |
/* TIMEVAL_MAX is not defined */ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
40 |
/* RTCAN_SOCKET is not defined */ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
41 |
#define EMCY_MAX_ERRORS 8 |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
42 |
#define LSS_TIMEOUT_MS 1000 |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
43 |
#define LSS_FS_TIMEOUT_MS 100 |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
44 |
|
694
8dd1e58b3815
There is no English word "transfert". Fix all the typos.
JaFojtik
parents:
636
diff
changeset
|
45 |
#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(repeat)\ |
636
033fe6f1ec3c
ADDED: - dynamic memory allocation for sdo transfer using malloc and free
Christian Taedcke
parents:
590
diff
changeset
|
46 |
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 |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
47 |
#define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\ |
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
48 |
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 |
590
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
49 |
#define REPEAT_EMCY_MAX_ERRORS_TIMES(repeat)\ |
aba1bf1defc6
update config.h for win32 (for user which not use configure script)
greg
parents:
200
diff
changeset
|
50 |
repeat repeat repeat repeat repeat repeat repeat repeat |
145
e747d2e26af0
Win32 Native support and dynamicaly loaded CAN drivers for Linux, Cygwin and Win32.
etisserant
parents:
diff
changeset
|
51 |
#endif /* _CONFIG_H_ */ |