equal
deleted
inserted
replaced
|
1 ------------------------------------------------------------------------------- |
|
2 |
|
3 $Id$ |
|
4 |
|
5 ------------------------------------------------------------------------------- |
|
6 |
|
7 This is a minimal example application for the use of the EtherCAT |
|
8 master realtime RTDM interface with an XENOMAI NATIVE thread. |
|
9 |
|
10 The application expects an XENOMAI installation. Configure the master sources |
|
11 specifying --enable-rtdm --with-xenomai-dir to have the right include paths. |
|
12 |
|
13 Most probably you'll have different EtherCAT slaves present. Try adjusting the |
|
14 section "process data" in main.c to your bus configuration. |
|
15 |
|
16 There are some features that can be disabled by commenting out the respective |
|
17 defines at the head of main.c. |
|
18 |
|
19 --- |
|
20 |
|
21 To build the example, call: |
|
22 |
|
23 make |
|
24 |
|
25 To run it, preload the EtherCAT RTDM module: |
|
26 |
|
27 modprobe ec_rtdm |
|
28 |
|
29 and call as root: |
|
30 |
|
31 ./ec_xenomai_example |
|
32 |
|
33 ...and watch the system logs for the outputs. |
|
34 |
|
35 ------------------------------------------------------------------------------- |