author | Florian Pose <fp@igh-essen.com> |
Thu, 11 May 2006 09:23:45 +0000 | |
changeset 229 | 2cc0a7146958 |
parent 227 | 413ae15d330e |
child 230 | 382bdb9138ec |
permissions | -rw-r--r-- |
220 | 1 |
/****************************************************************************** |
2 |
* |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
3 |
* RTAI sample for the IgH EtherCAT master. |
220 | 4 |
* |
5 |
* $Id$ |
|
6 |
* |
|
7 |
* Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH |
|
8 |
* |
|
9 |
* This file is part of the IgH EtherCAT Master. |
|
10 |
* |
|
11 |
* The IgH EtherCAT Master is free software; you can redistribute it |
|
12 |
* and/or modify it under the terms of the GNU General Public License |
|
13 |
* as published by the Free Software Foundation; version 2 of the License. |
|
14 |
* |
|
15 |
* The IgH EtherCAT Master is distributed in the hope that it will be |
|
16 |
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
* GNU General Public License for more details. |
|
19 |
* |
|
20 |
* You should have received a copy of the GNU General Public License |
|
21 |
* along with the IgH EtherCAT Master; if not, write to the Free Software |
|
22 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
23 |
* |
|
24 |
*****************************************************************************/ |
|
25 |
||
26 |
#include <linux/module.h> |
|
27 |
#include <linux/delay.h> |
|
28 |
#include <linux/timer.h> |
|
29 |
#include <linux/interrupt.h> |
|
30 |
||
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
31 |
#include "rtai.h" |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
32 |
#include "rtai_sched.h" |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
33 |
#include "rtai_sem.h" |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
34 |
|
223
daa5e5656b35
Applied new path information to example modules.
Florian Pose <fp@igh-essen.com>
parents:
222
diff
changeset
|
35 |
#include "../../include/ecrt.h" // EtherCAT realtime interface |
220 | 36 |
|
37 |
#define ASYNC |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
38 |
#define TIMERTICKS 1000000 |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
39 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
40 |
/*****************************************************************************/ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
41 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
42 |
// RTAI |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
43 |
RT_TASK task; |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
44 |
SEM master_sem; |
220 | 45 |
|
46 |
// EtherCAT |
|
47 |
ec_master_t *master = NULL; |
|
48 |
ec_domain_t *domain1 = NULL; |
|
49 |
||
50 |
// data fields |
|
51 |
//void *r_ssi_input, *r_ssi_status, *r_4102[3]; |
|
52 |
||
53 |
// channels |
|
54 |
uint32_t k_pos; |
|
55 |
uint8_t k_stat; |
|
56 |
||
57 |
ec_field_init_t domain1_fields[] = { |
|
58 |
{NULL, "3", "Beckhoff", "EL5001", "InputValue", 0}, |
|
59 |
{NULL, "2", "Beckhoff", "EL4132", "OutputValue", 0}, |
|
60 |
{} |
|
61 |
}; |
|
62 |
||
63 |
/*****************************************************************************/ |
|
64 |
||
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
65 |
void run(long data) |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
66 |
{ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
67 |
while (1) { |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
68 |
rt_sem_wait(&master_sem); |
220 | 69 |
|
70 |
#ifdef ASYNC |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
71 |
// receive |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
72 |
ecrt_master_async_receive(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
73 |
ecrt_domain_process(domain1); |
220 | 74 |
#else |
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
75 |
// send and receive |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
76 |
ecrt_domain_queue(domain1); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
77 |
ecrt_master_run(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
78 |
ecrt_master_sync_io(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
79 |
ecrt_domain_process(domain1); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
80 |
#endif |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
81 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
82 |
// process data |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
83 |
//k_pos = EC_READ_U32(r_ssi); |
220 | 84 |
|
85 |
#ifdef ASYNC |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
86 |
// send |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
87 |
ecrt_domain_queue(domain1); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
88 |
ecrt_master_run(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
89 |
ecrt_master_async_send(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
90 |
#endif |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
91 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
92 |
rt_sem_signal(&master_sem); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
93 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
94 |
rt_task_wait_period(); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
95 |
} |
220 | 96 |
} |
97 |
||
98 |
/*****************************************************************************/ |
|
99 |
||
100 |
int request_lock(void *data) |
|
101 |
{ |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
102 |
rt_sem_wait(&master_sem); |
227 | 103 |
return 0; // access allowed |
220 | 104 |
} |
105 |
||
106 |
/*****************************************************************************/ |
|
107 |
||
108 |
void release_lock(void *data) |
|
109 |
{ |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
110 |
rt_sem_signal(&master_sem); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
111 |
} |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
112 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
113 |
/*****************************************************************************/ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
114 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
115 |
int __init init_mod(void) |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
116 |
{ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
117 |
RTIME tick_period, requested_ticks, now; |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
118 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
119 |
printk(KERN_INFO "=== Starting EtherCAT RTAI sample module... ===\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
120 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
121 |
rt_sem_init(&master_sem, 1); |
220 | 122 |
|
123 |
if ((master = ecrt_request_master(0)) == NULL) { |
|
124 |
printk(KERN_ERR "Requesting master 0 failed!\n"); |
|
125 |
goto out_return; |
|
126 |
} |
|
127 |
||
128 |
ecrt_master_callbacks(master, request_lock, release_lock, NULL); |
|
129 |
||
130 |
printk(KERN_INFO "Registering domain...\n"); |
|
131 |
if (!(domain1 = ecrt_master_create_domain(master))) |
|
132 |
{ |
|
133 |
printk(KERN_ERR "Domain creation failed!\n"); |
|
134 |
goto out_release_master; |
|
135 |
} |
|
136 |
||
137 |
printk(KERN_INFO "Registering domain fields...\n"); |
|
138 |
if (ecrt_domain_register_field_list(domain1, domain1_fields)) { |
|
139 |
printk(KERN_ERR "Field registration failed!\n"); |
|
140 |
goto out_release_master; |
|
141 |
} |
|
142 |
||
143 |
printk(KERN_INFO "Activating master...\n"); |
|
144 |
if (ecrt_master_activate(master)) { |
|
145 |
printk(KERN_ERR "Failed to activate master!\n"); |
|
146 |
goto out_release_master; |
|
147 |
} |
|
148 |
||
149 |
#if 0 |
|
150 |
if (ecrt_master_fetch_sdo_lists(master)) { |
|
151 |
printk(KERN_ERR "Failed to fetch SDO lists!\n"); |
|
152 |
goto out_deactivate; |
|
153 |
} |
|
154 |
ecrt_master_print(master, 2); |
|
155 |
#else |
|
156 |
ecrt_master_print(master, 0); |
|
157 |
#endif |
|
158 |
||
159 |
#if 0 |
|
160 |
if (!(slave = ecrt_master_get_slave(master, "5"))) { |
|
161 |
printk(KERN_ERR "Failed to get slave 5!\n"); |
|
162 |
goto out_deactivate; |
|
163 |
} |
|
164 |
||
165 |
if (ecrt_slave_sdo_write_exp8(slave, 0x4061, 1, 0) || |
|
166 |
ecrt_slave_sdo_write_exp8(slave, 0x4061, 2, 1) || |
|
167 |
ecrt_slave_sdo_write_exp8(slave, 0x4061, 3, 1) || |
|
168 |
ecrt_slave_sdo_write_exp8(slave, 0x4066, 0, 0) || |
|
169 |
ecrt_slave_sdo_write_exp8(slave, 0x4067, 0, 4) || |
|
170 |
ecrt_slave_sdo_write_exp8(slave, 0x4068, 0, 0) || |
|
171 |
ecrt_slave_sdo_write_exp8(slave, 0x4069, 0, 25) || |
|
172 |
ecrt_slave_sdo_write_exp8(slave, 0x406A, 0, 25) || |
|
173 |
ecrt_slave_sdo_write_exp8(slave, 0x406B, 0, 50)) { |
|
174 |
printk(KERN_ERR "Failed to configure SSI slave!\n"); |
|
175 |
goto out_deactivate; |
|
176 |
} |
|
177 |
#endif |
|
178 |
||
179 |
#if 0 |
|
180 |
printk(KERN_INFO "Writing alias...\n"); |
|
181 |
if (ecrt_slave_sdo_write_exp16(slave, 0xBEEF)) { |
|
182 |
printk(KERN_ERR "Failed to write alias!\n"); |
|
183 |
goto out_deactivate; |
|
184 |
} |
|
185 |
#endif |
|
186 |
||
187 |
#ifdef ASYNC |
|
188 |
// send once and wait... |
|
189 |
ecrt_master_prepare_async_io(master); |
|
190 |
#endif |
|
191 |
||
227 | 192 |
#if 1 |
220 | 193 |
if (ecrt_master_start_eoe(master)) { |
194 |
printk(KERN_ERR "Failed to start EoE processing!\n"); |
|
195 |
goto out_deactivate; |
|
196 |
} |
|
197 |
#endif |
|
198 |
||
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
199 |
printk("Starting cyclic sample thread...\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
200 |
requested_ticks = nano2count(TIMERTICKS); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
201 |
tick_period = start_rt_timer(requested_ticks); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
202 |
printk(KERN_INFO "RT timer started with %i/%i ticks.\n", |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
203 |
(int) tick_period, (int) requested_ticks); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
204 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
205 |
if (rt_task_init(&task, run, 0, 2000, 0, 1, NULL)) { |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
206 |
printk(KERN_ERR "Failed to init RTAI task!\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
207 |
goto out_stop_timer; |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
208 |
} |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
209 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
210 |
now = rt_get_time(); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
211 |
if (rt_task_make_periodic(&task, now + tick_period, tick_period)) { |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
212 |
printk(KERN_ERR "Failed to run RTAI task!\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
213 |
goto out_stop_task; |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
214 |
} |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
215 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
216 |
printk(KERN_INFO "=== EtherCAT RTAI sample module started. ===\n"); |
220 | 217 |
return 0; |
218 |
||
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
219 |
out_stop_task: |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
220 |
rt_task_delete(&task); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
221 |
out_stop_timer: |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
222 |
stop_rt_timer(); |
220 | 223 |
out_deactivate: |
224 |
ecrt_master_deactivate(master); |
|
225 |
out_release_master: |
|
226 |
ecrt_release_master(master); |
|
227 |
out_return: |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
228 |
rt_sem_delete(&master_sem); |
220 | 229 |
return -1; |
230 |
} |
|
231 |
||
232 |
/*****************************************************************************/ |
|
233 |
||
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
234 |
void __exit cleanup_mod(void) |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
235 |
{ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
236 |
printk(KERN_INFO "=== Stopping EtherCAT RTAI sample module... ===\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
237 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
238 |
printk(KERN_INFO "Stopping RT task...\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
239 |
rt_task_delete(&task); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
240 |
stop_rt_timer(); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
241 |
printk(KERN_INFO "Deactivating EtherCAT master...\n"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
242 |
ecrt_master_deactivate(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
243 |
ecrt_release_master(master); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
244 |
rt_sem_delete(&master_sem); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
245 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
246 |
printk(KERN_INFO "=== EtherCAT RTAI sample module stopped. ===\n"); |
220 | 247 |
} |
248 |
||
249 |
/*****************************************************************************/ |
|
250 |
||
251 |
MODULE_LICENSE("GPL"); |
|
252 |
MODULE_AUTHOR ("Florian Pose <fp@igh-essen.com>"); |
|
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
253 |
MODULE_DESCRIPTION ("EtherCAT RTAI sample module"); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
254 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
255 |
module_init(init_mod); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
256 |
module_exit(cleanup_mod); |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
257 |
|
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
258 |
/*****************************************************************************/ |
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
223
diff
changeset
|
259 |