equal
deleted
inserted
replaced
32 ** |
32 ** |
33 ** |
33 ** |
34 */ |
34 */ |
35 |
35 |
36 |
36 |
37 #include "objacces.h" |
37 #include "data.h" |
38 #include "sdo.h" |
|
39 #include "dcf.h" |
|
40 #include "sysdep.h" |
38 #include "sysdep.h" |
41 |
39 |
42 extern UNS8 _writeNetworkDict (CO_Data* d, UNS8 nodeId, UNS16 index, |
40 extern UNS8 _writeNetworkDict (CO_Data* d, UNS8 nodeId, UNS16 index, |
43 UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize); |
41 UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize); |
44 |
42 |
159 { |
157 { |
160 /* We have finished with the dcf entry. Change the flag, decrement the request |
158 /* We have finished with the dcf entry. Change the flag, decrement the request |
161 * and execute the bootup callback. */ |
159 * and execute the bootup callback. */ |
162 d->dcf_odentry->pSubindex[nodeId].bAccessType&=~DCF_TO_SEND; |
160 d->dcf_odentry->pSubindex[nodeId].bAccessType&=~DCF_TO_SEND; |
163 d->dcf_request--; |
161 d->dcf_request--; |
164 (*d->post_SlaveBootup)(nodeId); |
162 (*d->post_SlaveBootup)(d, nodeId); |
165 } |
163 } |
166 } |
164 } |
167 |
165 |
168 /* Check the next element*/ |
166 /* Check the next element*/ |
169 //nodeId++; |
|
170 nodeId=(nodeId+1) % d->dcf_odentry->bSubCount; |
167 nodeId=(nodeId+1) % d->dcf_odentry->bSubCount; |
171 if(nodeId==d->dcf_odentry->bSubCount)nodeId=1; |
168 if(nodeId==d->dcf_odentry->bSubCount)nodeId=1; |
172 d->dcf_cursor = NULL; |
169 d->dcf_cursor = NULL; |
173 |
170 |
174 } |
171 } |
175 |
172 |
176 //DCF_finish: |
|
177 /* Switch Master to preOperational state */ |
|
178 |
|
179 //(*d->preOperational)(); |
|
180 } |
173 } |