-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecat_options.h
46 lines (37 loc) · 1.01 KB
/
ecat_options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __ECAT_OPTIONS_H__
#define __ECAT_OPTIONS_H__
#include "cc.h"
#define DYN_PDO_MAPPING 0
#define USE_EMU 1
#define USE_MBX 0
#define USE_FOE 0
#define USE_EOE 0
#if USE_MBX
#define MBXSIZE 128
#define MBXSIZEBOOT 128
#else
#define MBXSIZE 0
#define MBXSIZEBOOT 0
#endif
#define SM0_sma 0x1000
#define SM0_smc 0x64
#define SM0_act 1
#define SM1_sma 0x1200
#define SM1_smc 0x20
#define SM1_act 1
#define SM2_sma SM0_sma
#define SM2_smc SM0_smc
#define SM2_act SM0_act
#define SM3_sma SM1_sma
#define SM3_smc SM1_smc
#define SM3_act SM1_act
#define MAX_RXPDO_SIZE 128
#define MAX_TXPDO_SIZE 128
#if DYN_PDO_MAPPING
#define MAX_MAPPINGS_SM2 MAX_RXPDO_SIZE
#define MAX_MAPPINGS_SM3 MAX_TXPDO_SIZE
#else
#define MAX_MAPPINGS_SM2 0
#define MAX_MAPPINGS_SM3 0
#endif
#endif /* __ECAT_OPTIONS_H__ */