changeset 2025 | 87f428326f9b |
parent 2022 | c2295d311402 |
child 2028 | 5132c497918c |
2023:f9f884cf3033 | 2025:87f428326f9b |
---|---|
98 void __cleanup_%(location)s(void) |
98 void __cleanup_%(location)s(void) |
99 { |
99 { |
100 if (rt_fd >= 0) { |
100 if (rt_fd >= 0) { |
101 rt_dev_close(rt_fd); |
101 rt_dev_close(rt_fd); |
102 } |
102 } |
103 ecrt_release_master(master); |
|
103 } |
104 } |
104 |
105 |
105 void __retrieve_%(location)s(void) |
106 void __retrieve_%(location)s(void) |
106 { |
107 { |
107 // receive ethercat |
108 // receive ethercat |