This diff has been collapsed as it changes many lines, (593 lines changed) Show them Hide them | |||||
@@ -0,0 +1,593 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
|
2 | <?fileVersion 4.0.0?> | |||
|
3 | ||||
|
4 | <cproject> | |||
|
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | |||
|
6 | <cconfiguration id="cdt.managedbuild.config.gnu.exe.debug.1703483341"> | |||
|
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.debug.1703483341" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | |||
|
8 | <externalSettings/> | |||
|
9 | <extensions> | |||
|
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | |||
|
11 | <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
12 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
13 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
14 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
15 | </extensions> | |||
|
16 | </storageModule> | |||
|
17 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
18 | <configuration artifactName="ABS_Client_v2" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.debug.1703483341" name="Debug" parent="cdt.managedbuild.config.gnu.exe.debug"> | |||
|
19 | <folderInfo id="cdt.managedbuild.config.gnu.exe.debug.1703483341." name="/" resourcePath=""> | |||
|
20 | <toolChain id="cdt.managedbuild.toolchain.gnu.exe.debug.461094330" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.debug"> | |||
|
21 | <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.debug.1338070423" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.debug"/> | |||
|
22 | <builder buildPath="${workspace_loc:/ABS_Client_v2/Debug}" id="cdt.managedbuild.target.gnu.builder.exe.debug.2010332194" managedBuildOn="true" name="Gnu Make Builder.Debug" superClass="cdt.managedbuild.target.gnu.builder.exe.debug"/> | |||
|
23 | <tool id="cdt.managedbuild.tool.gnu.archiver.base.270759073" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/> | |||
|
24 | <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.1452952489" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug"> | |||
|
25 | <option id="gnu.cpp.compiler.exe.debug.option.optimization.level.1744624322" superClass="gnu.cpp.compiler.exe.debug.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/> | |||
|
26 | <option id="gnu.cpp.compiler.exe.debug.option.debugging.level.1934946142" superClass="gnu.cpp.compiler.exe.debug.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/> | |||
|
27 | </tool> | |||
|
28 | <tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.839338223" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug"> | |||
|
29 | <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.exe.debug.option.optimization.level.118299588" superClass="gnu.c.compiler.exe.debug.option.optimization.level" valueType="enumerated"/> | |||
|
30 | <option id="gnu.c.compiler.exe.debug.option.debugging.level.1229983808" superClass="gnu.c.compiler.exe.debug.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/> | |||
|
31 | <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1294162153" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> | |||
|
32 | </tool> | |||
|
33 | <tool id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.701943945" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug"> | |||
|
34 | <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.2002080432" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> | |||
|
35 | <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> | |||
|
36 | <additionalInput kind="additionalinput" paths="$(LIBS)"/> | |||
|
37 | </inputType> | |||
|
38 | </tool> | |||
|
39 | <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.230723790" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug"/> | |||
|
40 | <tool id="cdt.managedbuild.tool.gnu.assembler.exe.debug.1416698843" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug"> | |||
|
41 | <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1797179744" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> | |||
|
42 | </tool> | |||
|
43 | </toolChain> | |||
|
44 | </folderInfo> | |||
|
45 | </configuration> | |||
|
46 | </storageModule> | |||
|
47 | <storageModule moduleId="scannerConfiguration"> | |||
|
48 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | |||
|
49 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
50 | <buildOutputProvider> | |||
|
51 | <openAction enabled="true" filePath=""/> | |||
|
52 | <parser enabled="true"/> | |||
|
53 | </buildOutputProvider> | |||
|
54 | <scannerInfoProvider id="specsFile"> | |||
|
55 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
56 | <parser enabled="true"/> | |||
|
57 | </scannerInfoProvider> | |||
|
58 | </profile> | |||
|
59 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
60 | <buildOutputProvider> | |||
|
61 | <openAction enabled="true" filePath=""/> | |||
|
62 | <parser enabled="true"/> | |||
|
63 | </buildOutputProvider> | |||
|
64 | <scannerInfoProvider id="makefileGenerator"> | |||
|
65 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
66 | <parser enabled="true"/> | |||
|
67 | </scannerInfoProvider> | |||
|
68 | </profile> | |||
|
69 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
70 | <buildOutputProvider> | |||
|
71 | <openAction enabled="true" filePath=""/> | |||
|
72 | <parser enabled="true"/> | |||
|
73 | </buildOutputProvider> | |||
|
74 | <scannerInfoProvider id="specsFile"> | |||
|
75 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
76 | <parser enabled="true"/> | |||
|
77 | </scannerInfoProvider> | |||
|
78 | </profile> | |||
|
79 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
80 | <buildOutputProvider> | |||
|
81 | <openAction enabled="true" filePath=""/> | |||
|
82 | <parser enabled="true"/> | |||
|
83 | </buildOutputProvider> | |||
|
84 | <scannerInfoProvider id="specsFile"> | |||
|
85 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
86 | <parser enabled="true"/> | |||
|
87 | </scannerInfoProvider> | |||
|
88 | </profile> | |||
|
89 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
90 | <buildOutputProvider> | |||
|
91 | <openAction enabled="true" filePath=""/> | |||
|
92 | <parser enabled="true"/> | |||
|
93 | </buildOutputProvider> | |||
|
94 | <scannerInfoProvider id="specsFile"> | |||
|
95 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
96 | <parser enabled="true"/> | |||
|
97 | </scannerInfoProvider> | |||
|
98 | </profile> | |||
|
99 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
100 | <buildOutputProvider> | |||
|
101 | <openAction enabled="true" filePath=""/> | |||
|
102 | <parser enabled="true"/> | |||
|
103 | </buildOutputProvider> | |||
|
104 | <scannerInfoProvider id="specsFile"> | |||
|
105 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
106 | <parser enabled="true"/> | |||
|
107 | </scannerInfoProvider> | |||
|
108 | </profile> | |||
|
109 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
110 | <buildOutputProvider> | |||
|
111 | <openAction enabled="true" filePath=""/> | |||
|
112 | <parser enabled="true"/> | |||
|
113 | </buildOutputProvider> | |||
|
114 | <scannerInfoProvider id="specsFile"> | |||
|
115 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
116 | <parser enabled="true"/> | |||
|
117 | </scannerInfoProvider> | |||
|
118 | </profile> | |||
|
119 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
120 | <buildOutputProvider> | |||
|
121 | <openAction enabled="true" filePath=""/> | |||
|
122 | <parser enabled="true"/> | |||
|
123 | </buildOutputProvider> | |||
|
124 | <scannerInfoProvider id="specsFile"> | |||
|
125 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
126 | <parser enabled="true"/> | |||
|
127 | </scannerInfoProvider> | |||
|
128 | </profile> | |||
|
129 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.debug.1703483341;cdt.managedbuild.config.gnu.exe.debug.1703483341.;cdt.managedbuild.tool.gnu.c.compiler.exe.debug.839338223;cdt.managedbuild.tool.gnu.c.compiler.input.1294162153"> | |||
|
130 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
131 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
132 | <buildOutputProvider> | |||
|
133 | <openAction enabled="true" filePath=""/> | |||
|
134 | <parser enabled="true"/> | |||
|
135 | </buildOutputProvider> | |||
|
136 | <scannerInfoProvider id="specsFile"> | |||
|
137 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
138 | <parser enabled="true"/> | |||
|
139 | </scannerInfoProvider> | |||
|
140 | </profile> | |||
|
141 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
142 | <buildOutputProvider> | |||
|
143 | <openAction enabled="true" filePath=""/> | |||
|
144 | <parser enabled="true"/> | |||
|
145 | </buildOutputProvider> | |||
|
146 | <scannerInfoProvider id="makefileGenerator"> | |||
|
147 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
148 | <parser enabled="true"/> | |||
|
149 | </scannerInfoProvider> | |||
|
150 | </profile> | |||
|
151 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
152 | <buildOutputProvider> | |||
|
153 | <openAction enabled="true" filePath=""/> | |||
|
154 | <parser enabled="true"/> | |||
|
155 | </buildOutputProvider> | |||
|
156 | <scannerInfoProvider id="specsFile"> | |||
|
157 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
158 | <parser enabled="true"/> | |||
|
159 | </scannerInfoProvider> | |||
|
160 | </profile> | |||
|
161 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
162 | <buildOutputProvider> | |||
|
163 | <openAction enabled="true" filePath=""/> | |||
|
164 | <parser enabled="true"/> | |||
|
165 | </buildOutputProvider> | |||
|
166 | <scannerInfoProvider id="specsFile"> | |||
|
167 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
168 | <parser enabled="true"/> | |||
|
169 | </scannerInfoProvider> | |||
|
170 | </profile> | |||
|
171 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
172 | <buildOutputProvider> | |||
|
173 | <openAction enabled="true" filePath=""/> | |||
|
174 | <parser enabled="true"/> | |||
|
175 | </buildOutputProvider> | |||
|
176 | <scannerInfoProvider id="specsFile"> | |||
|
177 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
178 | <parser enabled="true"/> | |||
|
179 | </scannerInfoProvider> | |||
|
180 | </profile> | |||
|
181 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
182 | <buildOutputProvider> | |||
|
183 | <openAction enabled="true" filePath=""/> | |||
|
184 | <parser enabled="true"/> | |||
|
185 | </buildOutputProvider> | |||
|
186 | <scannerInfoProvider id="specsFile"> | |||
|
187 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
188 | <parser enabled="true"/> | |||
|
189 | </scannerInfoProvider> | |||
|
190 | </profile> | |||
|
191 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
192 | <buildOutputProvider> | |||
|
193 | <openAction enabled="true" filePath=""/> | |||
|
194 | <parser enabled="true"/> | |||
|
195 | </buildOutputProvider> | |||
|
196 | <scannerInfoProvider id="specsFile"> | |||
|
197 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
198 | <parser enabled="true"/> | |||
|
199 | </scannerInfoProvider> | |||
|
200 | </profile> | |||
|
201 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
202 | <buildOutputProvider> | |||
|
203 | <openAction enabled="true" filePath=""/> | |||
|
204 | <parser enabled="true"/> | |||
|
205 | </buildOutputProvider> | |||
|
206 | <scannerInfoProvider id="specsFile"> | |||
|
207 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
208 | <parser enabled="true"/> | |||
|
209 | </scannerInfoProvider> | |||
|
210 | </profile> | |||
|
211 | </scannerConfigBuildInfo> | |||
|
212 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.395184417;cdt.managedbuild.config.gnu.exe.release.395184417.;cdt.managedbuild.tool.gnu.c.compiler.exe.release.1056021130;cdt.managedbuild.tool.gnu.c.compiler.input.509163458"> | |||
|
213 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
214 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
215 | <buildOutputProvider> | |||
|
216 | <openAction enabled="true" filePath=""/> | |||
|
217 | <parser enabled="true"/> | |||
|
218 | </buildOutputProvider> | |||
|
219 | <scannerInfoProvider id="specsFile"> | |||
|
220 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
221 | <parser enabled="true"/> | |||
|
222 | </scannerInfoProvider> | |||
|
223 | </profile> | |||
|
224 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
225 | <buildOutputProvider> | |||
|
226 | <openAction enabled="true" filePath=""/> | |||
|
227 | <parser enabled="true"/> | |||
|
228 | </buildOutputProvider> | |||
|
229 | <scannerInfoProvider id="makefileGenerator"> | |||
|
230 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
231 | <parser enabled="true"/> | |||
|
232 | </scannerInfoProvider> | |||
|
233 | </profile> | |||
|
234 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
235 | <buildOutputProvider> | |||
|
236 | <openAction enabled="true" filePath=""/> | |||
|
237 | <parser enabled="true"/> | |||
|
238 | </buildOutputProvider> | |||
|
239 | <scannerInfoProvider id="specsFile"> | |||
|
240 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
241 | <parser enabled="true"/> | |||
|
242 | </scannerInfoProvider> | |||
|
243 | </profile> | |||
|
244 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
245 | <buildOutputProvider> | |||
|
246 | <openAction enabled="true" filePath=""/> | |||
|
247 | <parser enabled="true"/> | |||
|
248 | </buildOutputProvider> | |||
|
249 | <scannerInfoProvider id="specsFile"> | |||
|
250 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
251 | <parser enabled="true"/> | |||
|
252 | </scannerInfoProvider> | |||
|
253 | </profile> | |||
|
254 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
255 | <buildOutputProvider> | |||
|
256 | <openAction enabled="true" filePath=""/> | |||
|
257 | <parser enabled="true"/> | |||
|
258 | </buildOutputProvider> | |||
|
259 | <scannerInfoProvider id="specsFile"> | |||
|
260 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
261 | <parser enabled="true"/> | |||
|
262 | </scannerInfoProvider> | |||
|
263 | </profile> | |||
|
264 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
265 | <buildOutputProvider> | |||
|
266 | <openAction enabled="true" filePath=""/> | |||
|
267 | <parser enabled="true"/> | |||
|
268 | </buildOutputProvider> | |||
|
269 | <scannerInfoProvider id="specsFile"> | |||
|
270 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
271 | <parser enabled="true"/> | |||
|
272 | </scannerInfoProvider> | |||
|
273 | </profile> | |||
|
274 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
275 | <buildOutputProvider> | |||
|
276 | <openAction enabled="true" filePath=""/> | |||
|
277 | <parser enabled="true"/> | |||
|
278 | </buildOutputProvider> | |||
|
279 | <scannerInfoProvider id="specsFile"> | |||
|
280 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
281 | <parser enabled="true"/> | |||
|
282 | </scannerInfoProvider> | |||
|
283 | </profile> | |||
|
284 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
285 | <buildOutputProvider> | |||
|
286 | <openAction enabled="true" filePath=""/> | |||
|
287 | <parser enabled="true"/> | |||
|
288 | </buildOutputProvider> | |||
|
289 | <scannerInfoProvider id="specsFile"> | |||
|
290 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
291 | <parser enabled="true"/> | |||
|
292 | </scannerInfoProvider> | |||
|
293 | </profile> | |||
|
294 | </scannerConfigBuildInfo> | |||
|
295 | </storageModule> | |||
|
296 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | |||
|
297 | </cconfiguration> | |||
|
298 | <cconfiguration id="cdt.managedbuild.config.gnu.exe.release.395184417"> | |||
|
299 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.release.395184417" moduleId="org.eclipse.cdt.core.settings" name="Release"> | |||
|
300 | <externalSettings/> | |||
|
301 | <extensions> | |||
|
302 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | |||
|
303 | <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
304 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
305 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
306 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
307 | </extensions> | |||
|
308 | </storageModule> | |||
|
309 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
310 | <configuration artifactName="ABS_Client_v2" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.release.395184417" name="Release" parent="cdt.managedbuild.config.gnu.exe.release"> | |||
|
311 | <folderInfo id="cdt.managedbuild.config.gnu.exe.release.395184417." name="/" resourcePath=""> | |||
|
312 | <toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.673481109" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.release"> | |||
|
313 | <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.release.1256206601" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.release"/> | |||
|
314 | <builder buildPath="${workspace_loc:/ABS_Client_v2/Release}" id="cdt.managedbuild.target.gnu.builder.exe.release.1677876420" managedBuildOn="true" name="Gnu Make Builder.Release" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/> | |||
|
315 | <tool id="cdt.managedbuild.tool.gnu.archiver.base.280354723" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/> | |||
|
316 | <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.705310934" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release"> | |||
|
317 | <option id="gnu.cpp.compiler.exe.release.option.optimization.level.1549097866" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/> | |||
|
318 | <option id="gnu.cpp.compiler.exe.release.option.debugging.level.1235488994" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/> | |||
|
319 | </tool> | |||
|
320 | <tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.1056021130" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release"> | |||
|
321 | <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.501262132" superClass="gnu.c.compiler.exe.release.option.optimization.level" valueType="enumerated"/> | |||
|
322 | <option id="gnu.c.compiler.exe.release.option.debugging.level.272806353" superClass="gnu.c.compiler.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> | |||
|
323 | <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.509163458" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> | |||
|
324 | </tool> | |||
|
325 | <tool id="cdt.managedbuild.tool.gnu.c.linker.exe.release.2023920282" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"> | |||
|
326 | <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.127228361" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> | |||
|
327 | <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> | |||
|
328 | <additionalInput kind="additionalinput" paths="$(LIBS)"/> | |||
|
329 | </inputType> | |||
|
330 | </tool> | |||
|
331 | <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.738503158" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release"/> | |||
|
332 | <tool id="cdt.managedbuild.tool.gnu.assembler.exe.release.1834417036" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.release"> | |||
|
333 | <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1371086302" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> | |||
|
334 | </tool> | |||
|
335 | </toolChain> | |||
|
336 | </folderInfo> | |||
|
337 | </configuration> | |||
|
338 | </storageModule> | |||
|
339 | <storageModule moduleId="scannerConfiguration"> | |||
|
340 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | |||
|
341 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
342 | <buildOutputProvider> | |||
|
343 | <openAction enabled="true" filePath=""/> | |||
|
344 | <parser enabled="true"/> | |||
|
345 | </buildOutputProvider> | |||
|
346 | <scannerInfoProvider id="specsFile"> | |||
|
347 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
348 | <parser enabled="true"/> | |||
|
349 | </scannerInfoProvider> | |||
|
350 | </profile> | |||
|
351 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
352 | <buildOutputProvider> | |||
|
353 | <openAction enabled="true" filePath=""/> | |||
|
354 | <parser enabled="true"/> | |||
|
355 | </buildOutputProvider> | |||
|
356 | <scannerInfoProvider id="makefileGenerator"> | |||
|
357 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
358 | <parser enabled="true"/> | |||
|
359 | </scannerInfoProvider> | |||
|
360 | </profile> | |||
|
361 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
362 | <buildOutputProvider> | |||
|
363 | <openAction enabled="true" filePath=""/> | |||
|
364 | <parser enabled="true"/> | |||
|
365 | </buildOutputProvider> | |||
|
366 | <scannerInfoProvider id="specsFile"> | |||
|
367 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
368 | <parser enabled="true"/> | |||
|
369 | </scannerInfoProvider> | |||
|
370 | </profile> | |||
|
371 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
372 | <buildOutputProvider> | |||
|
373 | <openAction enabled="true" filePath=""/> | |||
|
374 | <parser enabled="true"/> | |||
|
375 | </buildOutputProvider> | |||
|
376 | <scannerInfoProvider id="specsFile"> | |||
|
377 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
378 | <parser enabled="true"/> | |||
|
379 | </scannerInfoProvider> | |||
|
380 | </profile> | |||
|
381 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
382 | <buildOutputProvider> | |||
|
383 | <openAction enabled="true" filePath=""/> | |||
|
384 | <parser enabled="true"/> | |||
|
385 | </buildOutputProvider> | |||
|
386 | <scannerInfoProvider id="specsFile"> | |||
|
387 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
388 | <parser enabled="true"/> | |||
|
389 | </scannerInfoProvider> | |||
|
390 | </profile> | |||
|
391 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
392 | <buildOutputProvider> | |||
|
393 | <openAction enabled="true" filePath=""/> | |||
|
394 | <parser enabled="true"/> | |||
|
395 | </buildOutputProvider> | |||
|
396 | <scannerInfoProvider id="specsFile"> | |||
|
397 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
398 | <parser enabled="true"/> | |||
|
399 | </scannerInfoProvider> | |||
|
400 | </profile> | |||
|
401 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
402 | <buildOutputProvider> | |||
|
403 | <openAction enabled="true" filePath=""/> | |||
|
404 | <parser enabled="true"/> | |||
|
405 | </buildOutputProvider> | |||
|
406 | <scannerInfoProvider id="specsFile"> | |||
|
407 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
408 | <parser enabled="true"/> | |||
|
409 | </scannerInfoProvider> | |||
|
410 | </profile> | |||
|
411 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
412 | <buildOutputProvider> | |||
|
413 | <openAction enabled="true" filePath=""/> | |||
|
414 | <parser enabled="true"/> | |||
|
415 | </buildOutputProvider> | |||
|
416 | <scannerInfoProvider id="specsFile"> | |||
|
417 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
418 | <parser enabled="true"/> | |||
|
419 | </scannerInfoProvider> | |||
|
420 | </profile> | |||
|
421 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.debug.1703483341;cdt.managedbuild.config.gnu.exe.debug.1703483341.;cdt.managedbuild.tool.gnu.c.compiler.exe.debug.839338223;cdt.managedbuild.tool.gnu.c.compiler.input.1294162153"> | |||
|
422 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
423 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
424 | <buildOutputProvider> | |||
|
425 | <openAction enabled="true" filePath=""/> | |||
|
426 | <parser enabled="true"/> | |||
|
427 | </buildOutputProvider> | |||
|
428 | <scannerInfoProvider id="specsFile"> | |||
|
429 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
430 | <parser enabled="true"/> | |||
|
431 | </scannerInfoProvider> | |||
|
432 | </profile> | |||
|
433 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
434 | <buildOutputProvider> | |||
|
435 | <openAction enabled="true" filePath=""/> | |||
|
436 | <parser enabled="true"/> | |||
|
437 | </buildOutputProvider> | |||
|
438 | <scannerInfoProvider id="makefileGenerator"> | |||
|
439 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
440 | <parser enabled="true"/> | |||
|
441 | </scannerInfoProvider> | |||
|
442 | </profile> | |||
|
443 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
444 | <buildOutputProvider> | |||
|
445 | <openAction enabled="true" filePath=""/> | |||
|
446 | <parser enabled="true"/> | |||
|
447 | </buildOutputProvider> | |||
|
448 | <scannerInfoProvider id="specsFile"> | |||
|
449 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
450 | <parser enabled="true"/> | |||
|
451 | </scannerInfoProvider> | |||
|
452 | </profile> | |||
|
453 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
454 | <buildOutputProvider> | |||
|
455 | <openAction enabled="true" filePath=""/> | |||
|
456 | <parser enabled="true"/> | |||
|
457 | </buildOutputProvider> | |||
|
458 | <scannerInfoProvider id="specsFile"> | |||
|
459 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
460 | <parser enabled="true"/> | |||
|
461 | </scannerInfoProvider> | |||
|
462 | </profile> | |||
|
463 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
464 | <buildOutputProvider> | |||
|
465 | <openAction enabled="true" filePath=""/> | |||
|
466 | <parser enabled="true"/> | |||
|
467 | </buildOutputProvider> | |||
|
468 | <scannerInfoProvider id="specsFile"> | |||
|
469 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
470 | <parser enabled="true"/> | |||
|
471 | </scannerInfoProvider> | |||
|
472 | </profile> | |||
|
473 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
474 | <buildOutputProvider> | |||
|
475 | <openAction enabled="true" filePath=""/> | |||
|
476 | <parser enabled="true"/> | |||
|
477 | </buildOutputProvider> | |||
|
478 | <scannerInfoProvider id="specsFile"> | |||
|
479 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
480 | <parser enabled="true"/> | |||
|
481 | </scannerInfoProvider> | |||
|
482 | </profile> | |||
|
483 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
484 | <buildOutputProvider> | |||
|
485 | <openAction enabled="true" filePath=""/> | |||
|
486 | <parser enabled="true"/> | |||
|
487 | </buildOutputProvider> | |||
|
488 | <scannerInfoProvider id="specsFile"> | |||
|
489 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
490 | <parser enabled="true"/> | |||
|
491 | </scannerInfoProvider> | |||
|
492 | </profile> | |||
|
493 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
494 | <buildOutputProvider> | |||
|
495 | <openAction enabled="true" filePath=""/> | |||
|
496 | <parser enabled="true"/> | |||
|
497 | </buildOutputProvider> | |||
|
498 | <scannerInfoProvider id="specsFile"> | |||
|
499 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
500 | <parser enabled="true"/> | |||
|
501 | </scannerInfoProvider> | |||
|
502 | </profile> | |||
|
503 | </scannerConfigBuildInfo> | |||
|
504 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.395184417;cdt.managedbuild.config.gnu.exe.release.395184417.;cdt.managedbuild.tool.gnu.c.compiler.exe.release.1056021130;cdt.managedbuild.tool.gnu.c.compiler.input.509163458"> | |||
|
505 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
506 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
507 | <buildOutputProvider> | |||
|
508 | <openAction enabled="true" filePath=""/> | |||
|
509 | <parser enabled="true"/> | |||
|
510 | </buildOutputProvider> | |||
|
511 | <scannerInfoProvider id="specsFile"> | |||
|
512 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
513 | <parser enabled="true"/> | |||
|
514 | </scannerInfoProvider> | |||
|
515 | </profile> | |||
|
516 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
517 | <buildOutputProvider> | |||
|
518 | <openAction enabled="true" filePath=""/> | |||
|
519 | <parser enabled="true"/> | |||
|
520 | </buildOutputProvider> | |||
|
521 | <scannerInfoProvider id="makefileGenerator"> | |||
|
522 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
523 | <parser enabled="true"/> | |||
|
524 | </scannerInfoProvider> | |||
|
525 | </profile> | |||
|
526 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
527 | <buildOutputProvider> | |||
|
528 | <openAction enabled="true" filePath=""/> | |||
|
529 | <parser enabled="true"/> | |||
|
530 | </buildOutputProvider> | |||
|
531 | <scannerInfoProvider id="specsFile"> | |||
|
532 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
533 | <parser enabled="true"/> | |||
|
534 | </scannerInfoProvider> | |||
|
535 | </profile> | |||
|
536 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
537 | <buildOutputProvider> | |||
|
538 | <openAction enabled="true" filePath=""/> | |||
|
539 | <parser enabled="true"/> | |||
|
540 | </buildOutputProvider> | |||
|
541 | <scannerInfoProvider id="specsFile"> | |||
|
542 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
543 | <parser enabled="true"/> | |||
|
544 | </scannerInfoProvider> | |||
|
545 | </profile> | |||
|
546 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
547 | <buildOutputProvider> | |||
|
548 | <openAction enabled="true" filePath=""/> | |||
|
549 | <parser enabled="true"/> | |||
|
550 | </buildOutputProvider> | |||
|
551 | <scannerInfoProvider id="specsFile"> | |||
|
552 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
553 | <parser enabled="true"/> | |||
|
554 | </scannerInfoProvider> | |||
|
555 | </profile> | |||
|
556 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
557 | <buildOutputProvider> | |||
|
558 | <openAction enabled="true" filePath=""/> | |||
|
559 | <parser enabled="true"/> | |||
|
560 | </buildOutputProvider> | |||
|
561 | <scannerInfoProvider id="specsFile"> | |||
|
562 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
563 | <parser enabled="true"/> | |||
|
564 | </scannerInfoProvider> | |||
|
565 | </profile> | |||
|
566 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
567 | <buildOutputProvider> | |||
|
568 | <openAction enabled="true" filePath=""/> | |||
|
569 | <parser enabled="true"/> | |||
|
570 | </buildOutputProvider> | |||
|
571 | <scannerInfoProvider id="specsFile"> | |||
|
572 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
573 | <parser enabled="true"/> | |||
|
574 | </scannerInfoProvider> | |||
|
575 | </profile> | |||
|
576 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
577 | <buildOutputProvider> | |||
|
578 | <openAction enabled="true" filePath=""/> | |||
|
579 | <parser enabled="true"/> | |||
|
580 | </buildOutputProvider> | |||
|
581 | <scannerInfoProvider id="specsFile"> | |||
|
582 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
583 | <parser enabled="true"/> | |||
|
584 | </scannerInfoProvider> | |||
|
585 | </profile> | |||
|
586 | </scannerConfigBuildInfo> | |||
|
587 | </storageModule> | |||
|
588 | </cconfiguration> | |||
|
589 | </storageModule> | |||
|
590 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
591 | <project id="ABS_Client_v2.cdt.managedbuild.target.gnu.exe.642307523" name="Executable" projectType="cdt.managedbuild.target.gnu.exe"/> | |||
|
592 | </storageModule> | |||
|
593 | </cproject> |
@@ -0,0 +1,81 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <projectDescription> | |||
|
3 | <name>ABS_Client_v2</name> | |||
|
4 | <comment></comment> | |||
|
5 | <projects> | |||
|
6 | </projects> | |||
|
7 | <buildSpec> | |||
|
8 | <buildCommand> | |||
|
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | |||
|
10 | <triggers>clean,full,incremental,</triggers> | |||
|
11 | <arguments> | |||
|
12 | <dictionary> | |||
|
13 | <key>?name?</key> | |||
|
14 | <value></value> | |||
|
15 | </dictionary> | |||
|
16 | <dictionary> | |||
|
17 | <key>org.eclipse.cdt.make.core.append_environment</key> | |||
|
18 | <value>true</value> | |||
|
19 | </dictionary> | |||
|
20 | <dictionary> | |||
|
21 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | |||
|
22 | <value>all</value> | |||
|
23 | </dictionary> | |||
|
24 | <dictionary> | |||
|
25 | <key>org.eclipse.cdt.make.core.buildArguments</key> | |||
|
26 | <value></value> | |||
|
27 | </dictionary> | |||
|
28 | <dictionary> | |||
|
29 | <key>org.eclipse.cdt.make.core.buildCommand</key> | |||
|
30 | <value>make</value> | |||
|
31 | </dictionary> | |||
|
32 | <dictionary> | |||
|
33 | <key>org.eclipse.cdt.make.core.buildLocation</key> | |||
|
34 | <value>${workspace_loc:/ABS_Client_v2/Debug}</value> | |||
|
35 | </dictionary> | |||
|
36 | <dictionary> | |||
|
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | |||
|
38 | <value>clean</value> | |||
|
39 | </dictionary> | |||
|
40 | <dictionary> | |||
|
41 | <key>org.eclipse.cdt.make.core.contents</key> | |||
|
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | |||
|
43 | </dictionary> | |||
|
44 | <dictionary> | |||
|
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | |||
|
46 | <value>false</value> | |||
|
47 | </dictionary> | |||
|
48 | <dictionary> | |||
|
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | |||
|
50 | <value>true</value> | |||
|
51 | </dictionary> | |||
|
52 | <dictionary> | |||
|
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | |||
|
54 | <value>true</value> | |||
|
55 | </dictionary> | |||
|
56 | <dictionary> | |||
|
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | |||
|
58 | <value>all</value> | |||
|
59 | </dictionary> | |||
|
60 | <dictionary> | |||
|
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | |||
|
62 | <value>true</value> | |||
|
63 | </dictionary> | |||
|
64 | <dictionary> | |||
|
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | |||
|
66 | <value>true</value> | |||
|
67 | </dictionary> | |||
|
68 | </arguments> | |||
|
69 | </buildCommand> | |||
|
70 | <buildCommand> | |||
|
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | |||
|
72 | <arguments> | |||
|
73 | </arguments> | |||
|
74 | </buildCommand> | |||
|
75 | </buildSpec> | |||
|
76 | <natures> | |||
|
77 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | |||
|
78 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | |||
|
79 | <nature>org.eclipse.cdt.core.cnature</nature> | |||
|
80 | </natures> | |||
|
81 | </projectDescription> |
@@ -0,0 +1,283 | |||||
|
1 | /* | |||
|
2 | * ABS_Client.c | |||
|
3 | * | |||
|
4 | * Fecha de creacion : Set, 2012 | |||
|
5 | * Ultima modificacion : Oct 2012 | |||
|
6 | * Autor : Christiane Dietrich. | |||
|
7 | */ | |||
|
8 | //#include <python2.6/Python.h> | |||
|
9 | #include <python2.5/Python.h> | |||
|
10 | ||||
|
11 | #include <stdio.h> | |||
|
12 | #include <stdlib.h> | |||
|
13 | #include <string.h> | |||
|
14 | #include <unistd.h> | |||
|
15 | #include <errno.h> | |||
|
16 | #include <sys/types.h> | |||
|
17 | #include <sys/socket.h> | |||
|
18 | #include <netinet/in.h> | |||
|
19 | #include <arpa/inet.h> | |||
|
20 | #include <netdb.h> | |||
|
21 | ||||
|
22 | #include "./Librerias/Mensajes.h" | |||
|
23 | ||||
|
24 | #define PUERTO_SERVIDOR 7000 | |||
|
25 | //#define DIR_SERVIDOR "192.168.1.30" | |||
|
26 | ||||
|
27 | /* Servidor */ | |||
|
28 | #define TAM_BUFFER 10000 | |||
|
29 | /* Servidor */ | |||
|
30 | ||||
|
31 | ||||
|
32 | int ABS_Client(char *header, char *addrClient, char *addrServer ,char *opcion, char *valor_help){ | |||
|
33 | ||||
|
34 | int conexion_clienteFD; | |||
|
35 | struct sockaddr_in inf_servidor; | |||
|
36 | ||||
|
37 | int broadcast= 1; | |||
|
38 | int resultado; | |||
|
39 | int numbytes_enviados; | |||
|
40 | ||||
|
41 | long lSize=0; | |||
|
42 | size_t size_of_filecontent=0; | |||
|
43 | ||||
|
44 | char *head= NULL; | |||
|
45 | char *tx= NULL; | |||
|
46 | char *rx= NULL; | |||
|
47 | char *comando= NULL; | |||
|
48 | char *data= NULL; | |||
|
49 | char *helper= ":"; | |||
|
50 | char *tx_buff= NULL; | |||
|
51 | unsigned int indicator = 1; | |||
|
52 | ||||
|
53 | head = (char*) malloc (sizeof(char)*(strlen(header)+1)); | |||
|
54 | if (head == NULL) { | |||
|
55 | printf("Memory error"); | |||
|
56 | return -1; | |||
|
57 | } | |||
|
58 | strcpy (head, header); | |||
|
59 | ||||
|
60 | tx = (char*) malloc (sizeof(char)*(strlen(addrClient)+1)); | |||
|
61 | if (tx == NULL) { | |||
|
62 | printf("Memory error"); | |||
|
63 | return -1; | |||
|
64 | } | |||
|
65 | strcpy (tx, addrClient); | |||
|
66 | ||||
|
67 | rx = (char*) malloc (sizeof(char)*(strlen(addrServer)+1)); | |||
|
68 | if (rx == NULL) { | |||
|
69 | printf("Memory error"); | |||
|
70 | return -1; | |||
|
71 | } | |||
|
72 | strcpy (rx, addrServer); | |||
|
73 | ||||
|
74 | /* determine comand */ | |||
|
75 | if(strcmp(opcion,"-f") == 0){ | |||
|
76 | comando= "SNDF"; | |||
|
77 | FILE * file_to_send= NULL; | |||
|
78 | file_to_send = fopen(valor_help, "r"); | |||
|
79 | if (!file_to_send){ | |||
|
80 | printf("The file provided for the Control Modules couldn't be opened!!!\n"); | |||
|
81 | return -1; | |||
|
82 | } | |||
|
83 | else{ | |||
|
84 | // obtain file size: | |||
|
85 | fseek (file_to_send, 0 , SEEK_END); | |||
|
86 | lSize = ftell (file_to_send); | |||
|
87 | rewind (file_to_send); | |||
|
88 | ||||
|
89 | // allocate memory to contain the whole file: | |||
|
90 | data = (char*) malloc (sizeof(char)*(lSize+1)); | |||
|
91 | if (data == NULL) { | |||
|
92 | printf("Memory error"); | |||
|
93 | return -1; | |||
|
94 | } | |||
|
95 | ||||
|
96 | // copy the file into the data: | |||
|
97 | size_of_filecontent = fread (data,1,lSize,file_to_send); | |||
|
98 | ||||
|
99 | if (size_of_filecontent != lSize) { | |||
|
100 | printf ("Reading error"); | |||
|
101 | return -1; | |||
|
102 | } | |||
|
103 | ||||
|
104 | /* the whole file is now loaded in the memory data. */ | |||
|
105 | // terminate | |||
|
106 | fclose (file_to_send); | |||
|
107 | } | |||
|
108 | }else if (strcmp(opcion,"-c") == 0){ // Se reconoce el comando que se esta enviando | |||
|
109 | comando= "CHGB"; | |||
|
110 | data = (char*) malloc (sizeof(char)*(strlen(valor_help)+1)); | |||
|
111 | //data = (char *) malloc(strlen(valor)+1); | |||
|
112 | if (data == NULL) { | |||
|
113 | printf("Memory error"); | |||
|
114 | return -1; | |||
|
115 | } | |||
|
116 | strcpy (data, valor_help); | |||
|
117 | }else if(strcmp(opcion,"-a") == 0){ | |||
|
118 | comando= "ANST"; | |||
|
119 | data = (char*) malloc (sizeof(char)*(strlen(valor_help)+1)); | |||
|
120 | //data = (char *) malloc(strlen(valor)+1); | |||
|
121 | if (data == NULL) { | |||
|
122 | printf("Memory error"); | |||
|
123 | return -1; | |||
|
124 | } | |||
|
125 | strcpy (data, valor_help); | |||
|
126 | }else { | |||
|
127 | ERROR("OPCION INCORRECTA: {-c|-a|-f}"); | |||
|
128 | return -1; | |||
|
129 | } | |||
|
130 | ||||
|
131 | //complete tx frame | |||
|
132 | tx_buff= (char *) malloc(strlen(head)+1+strlen(tx)+1+strlen(rx)+1+strlen(comando)+1+strlen(data)+1); | |||
|
133 | // Se arma el buffer a ser enviado. | |||
|
134 | strcpy(tx_buff,head); | |||
|
135 | strcat(tx_buff,helper); | |||
|
136 | strcat(tx_buff,tx); | |||
|
137 | strcat(tx_buff,helper); | |||
|
138 | strcat(tx_buff,rx); | |||
|
139 | strcat(tx_buff,helper); | |||
|
140 | strcat(tx_buff,comando); | |||
|
141 | strcat(tx_buff,helper); | |||
|
142 | strcat(tx_buff,data); | |||
|
143 | strcat(tx_buff,helper); | |||
|
144 | ||||
|
145 | ||||
|
146 | /* Se establece el socket UDP */ | |||
|
147 | conexion_clienteFD= socket(AF_INET,SOCK_DGRAM,0); | |||
|
148 | if (conexion_clienteFD == -1){ | |||
|
149 | ERROR("No se pudo establecer el socket: socket()"); | |||
|
150 | return -1; | |||
|
151 | } | |||
|
152 | ||||
|
153 | /* Se establece el Broadcast con la funcion setsockpt() */ | |||
|
154 | resultado= setsockopt(conexion_clienteFD, SOL_SOCKET, SO_BROADCAST, &broadcast, sizeof(broadcast)); | |||
|
155 | if (resultado == -1){ | |||
|
156 | ERROR("No se pudo establecer la opcion de Broadcast: setsockopt()"); | |||
|
157 | return -1; | |||
|
158 | } | |||
|
159 | ||||
|
160 | /* Se configura la estructura que contiene la informacion sobre el servidor: inf_servidor */ | |||
|
161 | inf_servidor.sin_family= AF_INET; | |||
|
162 | inf_servidor.sin_port= htons(PUERTO_SERVIDOR); | |||
|
163 | inf_servidor.sin_addr.s_addr= inet_addr(addrServer); | |||
|
164 | memset(inf_servidor.sin_zero, '\0', sizeof(inf_servidor.sin_zero)); | |||
|
165 | ||||
|
166 | /* Se procede a enviar el buffer */ | |||
|
167 | numbytes_enviados= sendto(conexion_clienteFD,tx_buff,strlen(tx_buff),0,(struct sockaddr *)&inf_servidor,sizeof(inf_servidor)); | |||
|
168 | ||||
|
169 | printf ("Frame was sent to Central Control Module with %s IP number\n",addrServer); | |||
|
170 | ||||
|
171 | if(numbytes_enviados == -1){ | |||
|
172 | ERROR("Error de envio de datos: sendto()"); | |||
|
173 | return -1; | |||
|
174 | } | |||
|
175 | ||||
|
176 | ||||
|
177 | free (head); | |||
|
178 | free (tx); | |||
|
179 | free (rx); | |||
|
180 | free (data); | |||
|
181 | free(tx_buff); | |||
|
182 | close(conexion_clienteFD); | |||
|
183 | ///* | |||
|
184 | // servidor | |||
|
185 | int conexion_servidorFd; | |||
|
186 | struct sockaddr_in inf_servidor2; | |||
|
187 | struct sockaddr_storage inf_cliente; | |||
|
188 | int resultado2; | |||
|
189 | int numbytes_recibidos; | |||
|
190 | ||||
|
191 | char *headR; | |||
|
192 | char *txR; | |||
|
193 | char *rxR; | |||
|
194 | char *comandoR; | |||
|
195 | char *valorR; | |||
|
196 | FILE *file_to_wr; | |||
|
197 | char *rx_buff = (char *) malloc(TAM_BUFFER); | |||
|
198 | ||||
|
199 | // size_t addr_len; | |||
|
200 | socklen_t addr_len; | |||
|
201 | ||||
|
202 | memset(&inf_servidor2, 0, sizeof(inf_servidor2)); | |||
|
203 | inf_servidor2.sin_family= AF_INET; | |||
|
204 | inf_servidor2.sin_port= htons(PUERTO_SERVIDOR); | |||
|
205 | inf_servidor2.sin_addr.s_addr= INADDR_ANY; | |||
|
206 | ||||
|
207 | // Se establece el socket | |||
|
208 | conexion_servidorFd = socket(AF_INET,SOCK_DGRAM,0); | |||
|
209 | if (conexion_servidorFd == -1){ | |||
|
210 | ERROR_FATAL("No se establecio correctamente el socket: socket() point1"); | |||
|
211 | } | |||
|
212 | ||||
|
213 | // Se asocia el socket a un puerto y una IP | |||
|
214 | resultado2 = bind(conexion_servidorFd,(struct sockaddr *)&inf_servidor2,sizeof(inf_servidor2)); | |||
|
215 | if (resultado2== -1){ | |||
|
216 | ERROR_FATAL("No se establecio correctamente el socket: bind() point2"); | |||
|
217 | } | |||
|
218 | ||||
|
219 | while(indicator == 1){ | |||
|
220 | LOG_SERVIDOR("Waiting for the client...\n"); | |||
|
221 | ||||
|
222 | // Se espera hasta que un cliente se conecte | |||
|
223 | addr_len = sizeof(inf_cliente); | |||
|
224 | numbytes_recibidos = recvfrom(conexion_servidorFd, rx_buff, TAM_BUFFER-1, 0, (struct sockaddr *)&inf_cliente, &addr_len); | |||
|
225 | ||||
|
226 | if (numbytes_recibidos == -1){ | |||
|
227 | ERROR_FATAL("Error en la recepcion de datos: recvfrom()"); | |||
|
228 | } | |||
|
229 | ||||
|
230 | // Se procede a procesar los datos recibidos | |||
|
231 | rx_buff[numbytes_recibidos]= '\0'; | |||
|
232 | ||||
|
233 | // create a response-file | |||
|
234 | headR = strtok(rx_buff, ":"); | |||
|
235 | txR = strtok(NULL, ":"); | |||
|
236 | rxR = strtok(NULL, ":"); | |||
|
237 | comandoR = strtok(NULL, ":"); | |||
|
238 | valorR = strtok(NULL, ":"); | |||
|
239 | ||||
|
240 | ||||
|
241 | if ((headR == NULL) || (txR == NULL) || (rxR == NULL) || (comandoR == NULL) || (valorR == NULL)){ | |||
|
242 | ERROR("procesarPeticionClient: formato de mensaje incorrecto"); | |||
|
243 | }else{ | |||
|
244 | ||||
|
245 | if(strcmp(comandoR,"SNDF") == 0){ | |||
|
246 | file_to_wr = fopen("report.abs", "w+"); | |||
|
247 | if (!file_to_wr){ | |||
|
248 | printf("The file, in which the received data should be written, couldn't be opened!!!\n"); | |||
|
249 | }else{ | |||
|
250 | fprintf(file_to_wr, "%s", valorR); | |||
|
251 | } | |||
|
252 | fclose(file_to_wr); | |||
|
253 | printf("File content was successfully written in\"report.abs\"\n"); | |||
|
254 | }else if(strcmp(comandoR,"CHGB") == 0){ | |||
|
255 | file_to_wr = fopen("report.ver", "w+"); | |||
|
256 | if (!file_to_wr){ | |||
|
257 | printf("The file, in which the received data should be written, couldn't be opened!!!\n"); | |||
|
258 | }else{ | |||
|
259 | fprintf(file_to_wr, "%s", valorR); | |||
|
260 | } | |||
|
261 | fclose(file_to_wr); | |||
|
262 | printf("File content was successfully written in \"report.ver\"\n"); | |||
|
263 | }else if(strcmp(comandoR,"ANST") == 0){ | |||
|
264 | file_to_wr = fopen("report.net", "w+"); | |||
|
265 | if (!file_to_wr){ | |||
|
266 | printf("The file, in which the received data should be written, couldn't be opened!!!\n"); | |||
|
267 | }else{ | |||
|
268 | fprintf(file_to_wr, "%s", valorR); | |||
|
269 | } | |||
|
270 | fclose(file_to_wr); | |||
|
271 | printf("File content was successfully written in \"report.net\"\n"); | |||
|
272 | }else{ | |||
|
273 | ERROR("procesa_peticion_client: respuesta no reconocido"); | |||
|
274 | } | |||
|
275 | } | |||
|
276 | indicator = 0; | |||
|
277 | // servidor | |||
|
278 | } | |||
|
279 | free (rx_buff); | |||
|
280 | //*/ | |||
|
281 | return 0; | |||
|
282 | } | |||
|
283 |
@@ -0,0 +1,27 | |||||
|
1 | /* | |||
|
2 | * ABS_Client_Test.c | |||
|
3 | * | |||
|
4 | * Created on: Set, 2012 | |||
|
5 | * Author: Christiane Dietrich. | |||
|
6 | */ | |||
|
7 | #include <stdio.h> | |||
|
8 | #include <stdlib.h> | |||
|
9 | ||||
|
10 | #include <string.h> | |||
|
11 | #include <unistd.h> | |||
|
12 | ||||
|
13 | #include "./Librerias/Mensajes.h" | |||
|
14 | #include "./Librerias/Funciones_ControlER.h" | |||
|
15 | ||||
|
16 | int main(int argc, char *argv[]){ | |||
|
17 | ||||
|
18 | char *header = argv[1]; | |||
|
19 | char *tx = argv[2]; | |||
|
20 | char *rx = argv[3]; | |||
|
21 | char *cmd = argv[4]; | |||
|
22 | char *val = argv[5]; | |||
|
23 | ||||
|
24 | ABS_Client(header, tx, rx, cmd, val); | |||
|
25 | ||||
|
26 | return 0; | |||
|
27 | } |
@@ -0,0 +1,13 | |||||
|
1 | /* | |||
|
2 | * Funciones_ControlERs.h | |||
|
3 | * | |||
|
4 | * Created on: Jan 14, 2010 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef FUNCIONES_CONTROLERS_H_ | |||
|
9 | #define FUNCIONES_CONTROLERS_H_ | |||
|
10 | ||||
|
11 | int ABS_Client(char *header, char *addrClient, char *addrServer ,char *opcion, char *valor_help); | |||
|
12 | ||||
|
13 | #endif /* FUNCIONES_CONTROLERS_H_ */ |
@@ -0,0 +1,17 | |||||
|
1 | /* | |||
|
2 | * Mensajes.h | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef MENSAJES_H_ | |||
|
9 | #define MENSAJES_H_ | |||
|
10 | ||||
|
11 | void LOG_SERVIDOR(char *mensaje); | |||
|
12 | void LOG_CLIENTE(char *mensaje); | |||
|
13 | void ERROR_FATAL(char *mensaje); | |||
|
14 | void ERROR(char *mensaje); | |||
|
15 | ||||
|
16 | ||||
|
17 | #endif /* MENSAJES_H_ */ |
@@ -0,0 +1,39 | |||||
|
1 | /* | |||
|
2 | * Mensajes.c | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: Jose Francisco Quenta | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #include <stdio.h> | |||
|
9 | #include <stdlib.h> | |||
|
10 | ||||
|
11 | /* | |||
|
12 | * Imprime mensajes del servidor | |||
|
13 | */ | |||
|
14 | void LOG_SERVIDOR(char *mensaje){ | |||
|
15 | printf("SERVER MODE: %s\n",mensaje); | |||
|
16 | } | |||
|
17 | ||||
|
18 | /* | |||
|
19 | * Imprime mensajes del cliente | |||
|
20 | */ | |||
|
21 | void LOG_CLIENTE(char *mensaje){ | |||
|
22 | printf("CLIENTE: %s\n",mensaje); | |||
|
23 | } | |||
|
24 | ||||
|
25 | /* | |||
|
26 | * Error no fatal, permite la continuación del programa | |||
|
27 | */ | |||
|
28 | void ERROR(char *mensaje){ | |||
|
29 | fprintf(stderr, "ERROR. %s\n", mensaje); | |||
|
30 | } | |||
|
31 | ||||
|
32 | /* | |||
|
33 | * Error fatal, aborta la ejecución del programa con código de salida de error | |||
|
34 | */ | |||
|
35 | void ERROR_FATAL(char *mensaje){ | |||
|
36 | fprintf(stderr, "ERROR FATAL. %s\n", mensaje); | |||
|
37 | exit(EXIT_FAILURE); | |||
|
38 | } | |||
|
39 |
@@ -0,0 +1,15 | |||||
|
1 | experimento.abs | |||
|
2 | ------ | |||
|
3 | 000000 | |||
|
4 | 001001 | |||
|
5 | 010010 | |||
|
6 | 011011 | |||
|
7 | 100100 | |||
|
8 | 101101 | |||
|
9 | 110110 | |||
|
10 | 111111 | |||
|
11 | 000000 | |||
|
12 | 001001 | |||
|
13 | 010010 | |||
|
14 | 011011 | |||
|
15 | ------ |
@@ -0,0 +1,231 | |||||
|
1 | title ='MST-ISR 2009 (NS-Up)' | |||
|
2 | ||||
|
3 | #Experiments = 12 | |||
|
4 | ||||
|
5 | 1 = | |||
|
6 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
7 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
8 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
9 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
10 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
11 | [0.5,0.5,0.5,1.0,1.0,1.0,1.0,1.0],$ | |||
|
12 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
13 | [0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0]] | |||
|
14 | ||||
|
15 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
16 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
17 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
18 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
19 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
20 | [0.5,0.5,0.5,1.0,1.0,1.0,1.0,1.0],$ | |||
|
21 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
22 | [0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0]] | |||
|
23 | ||||
|
24 | 2 = | |||
|
25 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
26 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
27 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
28 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
29 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
30 | [0.5,0.5,0.5,1.0,2.0,2.0,2.0,2.0],$ | |||
|
31 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
32 | [0.5,0.5,0.5,0.5,2.0,2.0,2.0,2.0]] | |||
|
33 | ||||
|
34 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
35 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
36 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
37 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
38 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
39 | [0.5,0.5,0.5,1.0,2.0,2.0,2.0,2.0],$ | |||
|
40 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
41 | [0.5,0.5,0.5,0.5,2.0,2.0,2.0,2.0]] | |||
|
42 | ||||
|
43 | 3 = | |||
|
44 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
45 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
46 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
47 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
48 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
49 | [0.5,0.5,0.5,1.0,3.0,3.0,3.0,3.0],$ | |||
|
50 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
51 | [0.5,0.5,0.5,0.5,3.0,3.0,3.0,3.0]] | |||
|
52 | ||||
|
53 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
54 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
55 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
56 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
57 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
58 | [0.5,0.5,0.5,1.0,3.0,3.0,3.0,3.0],$ | |||
|
59 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
60 | [0.5,0.5,0.5,0.5,3.0,3.0,3.0,3.0]] | |||
|
61 | ||||
|
62 | 4 = | |||
|
63 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
64 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
65 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
66 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
67 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
68 | [0.5,0.5,0.5,1.0,0.0,0.0,0.0,0.0],$ | |||
|
69 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
70 | [0.5,0.5,0.5,0.5,0.0,0.0,0.0,0.0]] | |||
|
71 | ||||
|
72 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
73 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
74 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
75 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
76 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
77 | [0.5,0.5,0.5,1.0,0.0,0.0,0.0,0.0],$ | |||
|
78 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
79 | [0.5,0.5,0.5,0.5,0.0,0.0,0.0,0.0]] | |||
|
80 | ||||
|
81 | 5 = | |||
|
82 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
83 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
84 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
85 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
86 | [1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5],$ | |||
|
87 | [0.5,0.5,0.5,1.0,0.5,0.5,0.5,0.5],$ | |||
|
88 | [1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5],$ | |||
|
89 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]] | |||
|
90 | ||||
|
91 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
92 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
93 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
94 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
95 | [1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5],$ | |||
|
96 | [0.5,0.5,0.5,1.0,0.5,0.5,0.5,0.5],$ | |||
|
97 | [1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5],$ | |||
|
98 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5]] | |||
|
99 | ||||
|
100 | 6= | |||
|
101 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
102 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
103 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
104 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
105 | [1.0,1.0,1.0,1.0,1.5,1.5,1.5,1.5],$ | |||
|
106 | [0.5,0.5,0.5,1.0,1.5,1.5,1.5,1.5],$ | |||
|
107 | [1.0,1.0,1.0,1.0,1.5,1.5,1.5,1.5],$ | |||
|
108 | [0.5,0.5,0.5,0.5,1.5,1.5,1.5,1.5]] | |||
|
109 | ||||
|
110 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
111 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
112 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
113 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
114 | [1.0,1.0,1.0,1.0,1.5,1.5,1.5,1.5],$ | |||
|
115 | [0.5,0.5,0.5,1.0,1.5,1.5,1.5,1.5],$ | |||
|
116 | [1.0,1.0,1.0,1.0,1.5,1.5,1.5,1.5],$ | |||
|
117 | [0.5,0.5,0.5,0.5,1.5,1.5,1.5,1.5]] | |||
|
118 | ||||
|
119 | 7 = | |||
|
120 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
121 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
122 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
123 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
124 | [1.0,1.0,1.0,1.0,2.5,2.5,2.5,2.5],$ | |||
|
125 | [0.5,0.5,0.5,1.0,2.5,2.5,2.5,2.5],$ | |||
|
126 | [1.0,1.0,1.0,1.0,2.5,2.5,2.5,2.5],$ | |||
|
127 | [0.5,0.5,0.5,0.5,2.5,2.5,2.5,2.5]] | |||
|
128 | ||||
|
129 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
130 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
131 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
132 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
133 | [1.0,1.0,1.0,1.0,2.5,2.5,2.5,2.5],$ | |||
|
134 | [0.5,0.5,0.5,1.0,2.5,2.5,2.5,2.5],$ | |||
|
135 | [1.0,1.0,1.0,1.0,2.5,2.5,2.5,2.5],$ | |||
|
136 | [0.5,0.5,0.5,0.5,2.5,2.5,2.5,2.5]] | |||
|
137 | 8 = | |||
|
No newline at end of file | ||||
|
138 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
139 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
140 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
141 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
142 | [1.0,1.0,1.0,1.0,3.5,3.5,3.5,3.5],$ | |||
|
143 | [0.5,0.5,0.5,1.0,3.5,3.5,3.5,3.5],$ | |||
|
144 | [1.0,1.0,1.0,1.0,3.5,3.5,3.5,3.5],$ | |||
|
145 | [0.5,0.5,0.5,0.5,3.5,3.5,3.5,3.5]] | |||
|
146 | ||||
|
147 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
148 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
149 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
150 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
151 | [1.0,1.0,1.0,1.0,3.5,3.5,3.5,3.5],$ | |||
|
152 | [0.5,0.5,0.5,1.0,3.5,3.5,3.5,3.5],$ | |||
|
153 | [1.0,1.0,1.0,1.0,3.5,3.5,3.5,3.5],$ | |||
|
154 | [0.5,0.5,0.5,0.5,3.5,3.5,3.5,3.5]] | |||
|
155 | ||||
|
156 | 9 = | |||
|
157 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
158 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
159 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
160 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
161 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
162 | [0.5,0.5,0.5,1.0,1.0,1.0,1.0,1.0],$ | |||
|
163 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
164 | [0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0]] | |||
|
165 | ||||
|
166 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
167 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
168 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
169 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
170 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
171 | [0.5,0.5,0.5,1.0,1.0,1.0,1.0,1.0],$ | |||
|
172 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
173 | [0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0]] | |||
|
174 | ||||
|
175 | 10 = | |||
|
176 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
177 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
178 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
179 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
180 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
181 | [0.5,0.5,0.5,1.0,2.0,2.0,2.0,2.0],$ | |||
|
182 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
183 | [0.5,0.5,0.5,0.5,2.0,2.0,2.0,2.0]] | |||
|
184 | ||||
|
185 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
186 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
187 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
188 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
189 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
190 | [0.5,0.5,0.5,1.0,2.0,2.0,2.0,2.0],$ | |||
|
191 | [1.0,1.0,1.0,1.0,2.0,2.0,2.0,2.0],$ | |||
|
192 | [0.5,0.5,0.5,0.5,2.0,2.0,2.0,2.0]] | |||
|
193 | ||||
|
194 | 11 = | |||
|
195 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
196 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
197 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
198 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
199 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
200 | [0.5,0.5,0.5,1.0,3.0,3.0,3.0,3.0],$ | |||
|
201 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
202 | [0.5,0.5,0.5,0.5,3.0,3.0,3.0,3.0]] | |||
|
203 | ||||
|
204 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
205 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
206 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
207 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
208 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
209 | [0.5,0.5,0.5,1.0,3.0,3.0,3.0,3.0],$ | |||
|
210 | [1.0,1.0,1.0,1.0,3.0,3.0,3.0,3.0],$ | |||
|
211 | [0.5,0.5,0.5,0.5,3.0,3.0,3.0,3.0]] | |||
|
212 | ||||
|
213 | 12 = | |||
|
214 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
215 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
216 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
217 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
218 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
219 | [0.5,0.5,0.5,1.0,0.0,0.0,0.0,0.0],$ | |||
|
220 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
221 | [0.5,0.5,0.5,0.5,0.0,0.0,0.0,0.0]] | |||
|
222 | ||||
|
223 | [[0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
224 | [1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],$ | |||
|
225 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
226 | [0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5],$ | |||
|
227 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
228 | [0.5,0.5,0.5,1.0,0.0,0.0,0.0,0.0],$ | |||
|
229 | [1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],$ | |||
|
230 | [0.5,0.5,0.5,0.5,0.0,0.0,0.0,0.0]] | |||
|
231 |
@@ -0,0 +1,219 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
|
2 | <?fileVersion 4.0.0?> | |||
|
3 | ||||
|
4 | <cproject> | |||
|
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | |||
|
6 | <cconfiguration id="cdt.managedbuild.config.gnu.exe.release.1568263498"> | |||
|
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.release.1568263498" moduleId="org.eclipse.cdt.core.settings" name="Release"> | |||
|
8 | <externalSettings/> | |||
|
9 | <extensions> | |||
|
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | |||
|
11 | <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
12 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
13 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
14 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
15 | </extensions> | |||
|
16 | </storageModule> | |||
|
17 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
18 | <configuration artifactName="Control_Module" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.release.1568263498" name="Release" parent="cdt.managedbuild.config.gnu.exe.release"> | |||
|
19 | <folderInfo id="cdt.managedbuild.config.gnu.exe.release.1568263498." name="/" resourcePath=""> | |||
|
20 | <toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.785297601" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.release"> | |||
|
21 | <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.release.1008424557" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.release"/> | |||
|
22 | <builder buildPath="${workspace_loc:/Control_Module/Release}" id="cdt.managedbuild.target.gnu.builder.exe.release.365458410" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/> | |||
|
23 | <tool id="cdt.managedbuild.tool.gnu.archiver.base.1343949145" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/> | |||
|
24 | <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.57926565" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release"> | |||
|
25 | <option id="gnu.cpp.compiler.exe.release.option.optimization.level.35312113" name="Optimization Level" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/> | |||
|
26 | <option id="gnu.cpp.compiler.exe.release.option.debugging.level.936269591" name="Debug Level" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/> | |||
|
27 | </tool> | |||
|
28 | <tool command="arm-unknown-linux-gnu-gcc" id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.1796829929" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release"> | |||
|
29 | <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.499243164" name="Optimization Level" superClass="gnu.c.compiler.exe.release.option.optimization.level" valueType="enumerated"/> | |||
|
30 | <option id="gnu.c.compiler.exe.release.option.debugging.level.1960011250" name="Debug Level" superClass="gnu.c.compiler.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> | |||
|
31 | <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1347535566" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> | |||
|
32 | </tool> | |||
|
33 | <tool command="arm-unknown-linux-gnu-gcc" id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1288648685" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"> | |||
|
34 | <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.2046701530" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> | |||
|
35 | <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> | |||
|
36 | <additionalInput kind="additionalinput" paths="$(LIBS)"/> | |||
|
37 | </inputType> | |||
|
38 | </tool> | |||
|
39 | <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.1068281678" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release"/> | |||
|
40 | <tool id="cdt.managedbuild.tool.gnu.assembler.exe.release.796779267" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.release"> | |||
|
41 | <inputType id="cdt.managedbuild.tool.gnu.assembler.input.690094510" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> | |||
|
42 | </tool> | |||
|
43 | </toolChain> | |||
|
44 | </folderInfo> | |||
|
45 | </configuration> | |||
|
46 | </storageModule> | |||
|
47 | <storageModule moduleId="scannerConfiguration"> | |||
|
48 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | |||
|
49 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
50 | <buildOutputProvider> | |||
|
51 | <openAction enabled="true" filePath=""/> | |||
|
52 | <parser enabled="true"/> | |||
|
53 | </buildOutputProvider> | |||
|
54 | <scannerInfoProvider id="specsFile"> | |||
|
55 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
56 | <parser enabled="true"/> | |||
|
57 | </scannerInfoProvider> | |||
|
58 | </profile> | |||
|
59 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
60 | <buildOutputProvider> | |||
|
61 | <openAction enabled="true" filePath=""/> | |||
|
62 | <parser enabled="true"/> | |||
|
63 | </buildOutputProvider> | |||
|
64 | <scannerInfoProvider id="makefileGenerator"> | |||
|
65 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
66 | <parser enabled="true"/> | |||
|
67 | </scannerInfoProvider> | |||
|
68 | </profile> | |||
|
69 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
70 | <buildOutputProvider> | |||
|
71 | <openAction enabled="true" filePath=""/> | |||
|
72 | <parser enabled="true"/> | |||
|
73 | </buildOutputProvider> | |||
|
74 | <scannerInfoProvider id="specsFile"> | |||
|
75 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
76 | <parser enabled="true"/> | |||
|
77 | </scannerInfoProvider> | |||
|
78 | </profile> | |||
|
79 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
80 | <buildOutputProvider> | |||
|
81 | <openAction enabled="true" filePath=""/> | |||
|
82 | <parser enabled="true"/> | |||
|
83 | </buildOutputProvider> | |||
|
84 | <scannerInfoProvider id="specsFile"> | |||
|
85 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
86 | <parser enabled="true"/> | |||
|
87 | </scannerInfoProvider> | |||
|
88 | </profile> | |||
|
89 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
90 | <buildOutputProvider> | |||
|
91 | <openAction enabled="true" filePath=""/> | |||
|
92 | <parser enabled="true"/> | |||
|
93 | </buildOutputProvider> | |||
|
94 | <scannerInfoProvider id="specsFile"> | |||
|
95 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
96 | <parser enabled="true"/> | |||
|
97 | </scannerInfoProvider> | |||
|
98 | </profile> | |||
|
99 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
100 | <buildOutputProvider> | |||
|
101 | <openAction enabled="true" filePath=""/> | |||
|
102 | <parser enabled="true"/> | |||
|
103 | </buildOutputProvider> | |||
|
104 | <scannerInfoProvider id="specsFile"> | |||
|
105 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
106 | <parser enabled="true"/> | |||
|
107 | </scannerInfoProvider> | |||
|
108 | </profile> | |||
|
109 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
110 | <buildOutputProvider> | |||
|
111 | <openAction enabled="true" filePath=""/> | |||
|
112 | <parser enabled="true"/> | |||
|
113 | </buildOutputProvider> | |||
|
114 | <scannerInfoProvider id="specsFile"> | |||
|
115 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
116 | <parser enabled="true"/> | |||
|
117 | </scannerInfoProvider> | |||
|
118 | </profile> | |||
|
119 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
120 | <buildOutputProvider> | |||
|
121 | <openAction enabled="true" filePath=""/> | |||
|
122 | <parser enabled="true"/> | |||
|
123 | </buildOutputProvider> | |||
|
124 | <scannerInfoProvider id="specsFile"> | |||
|
125 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
126 | <parser enabled="true"/> | |||
|
127 | </scannerInfoProvider> | |||
|
128 | </profile> | |||
|
129 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.1568263498;cdt.managedbuild.config.gnu.exe.release.1568263498.;cdt.managedbuild.tool.gnu.c.compiler.exe.release.1796829929;cdt.managedbuild.tool.gnu.c.compiler.input.1347535566"> | |||
|
130 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
131 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
132 | <buildOutputProvider> | |||
|
133 | <openAction enabled="true" filePath=""/> | |||
|
134 | <parser enabled="true"/> | |||
|
135 | </buildOutputProvider> | |||
|
136 | <scannerInfoProvider id="specsFile"> | |||
|
137 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
138 | <parser enabled="true"/> | |||
|
139 | </scannerInfoProvider> | |||
|
140 | </profile> | |||
|
141 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
142 | <buildOutputProvider> | |||
|
143 | <openAction enabled="true" filePath=""/> | |||
|
144 | <parser enabled="true"/> | |||
|
145 | </buildOutputProvider> | |||
|
146 | <scannerInfoProvider id="makefileGenerator"> | |||
|
147 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
148 | <parser enabled="true"/> | |||
|
149 | </scannerInfoProvider> | |||
|
150 | </profile> | |||
|
151 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
152 | <buildOutputProvider> | |||
|
153 | <openAction enabled="true" filePath=""/> | |||
|
154 | <parser enabled="true"/> | |||
|
155 | </buildOutputProvider> | |||
|
156 | <scannerInfoProvider id="specsFile"> | |||
|
157 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
158 | <parser enabled="true"/> | |||
|
159 | </scannerInfoProvider> | |||
|
160 | </profile> | |||
|
161 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
162 | <buildOutputProvider> | |||
|
163 | <openAction enabled="true" filePath=""/> | |||
|
164 | <parser enabled="true"/> | |||
|
165 | </buildOutputProvider> | |||
|
166 | <scannerInfoProvider id="specsFile"> | |||
|
167 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
168 | <parser enabled="true"/> | |||
|
169 | </scannerInfoProvider> | |||
|
170 | </profile> | |||
|
171 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
172 | <buildOutputProvider> | |||
|
173 | <openAction enabled="true" filePath=""/> | |||
|
174 | <parser enabled="true"/> | |||
|
175 | </buildOutputProvider> | |||
|
176 | <scannerInfoProvider id="specsFile"> | |||
|
177 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
178 | <parser enabled="true"/> | |||
|
179 | </scannerInfoProvider> | |||
|
180 | </profile> | |||
|
181 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
182 | <buildOutputProvider> | |||
|
183 | <openAction enabled="true" filePath=""/> | |||
|
184 | <parser enabled="true"/> | |||
|
185 | </buildOutputProvider> | |||
|
186 | <scannerInfoProvider id="specsFile"> | |||
|
187 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
188 | <parser enabled="true"/> | |||
|
189 | </scannerInfoProvider> | |||
|
190 | </profile> | |||
|
191 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
192 | <buildOutputProvider> | |||
|
193 | <openAction enabled="true" filePath=""/> | |||
|
194 | <parser enabled="true"/> | |||
|
195 | </buildOutputProvider> | |||
|
196 | <scannerInfoProvider id="specsFile"> | |||
|
197 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
198 | <parser enabled="true"/> | |||
|
199 | </scannerInfoProvider> | |||
|
200 | </profile> | |||
|
201 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
202 | <buildOutputProvider> | |||
|
203 | <openAction enabled="true" filePath=""/> | |||
|
204 | <parser enabled="true"/> | |||
|
205 | </buildOutputProvider> | |||
|
206 | <scannerInfoProvider id="specsFile"> | |||
|
207 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
208 | <parser enabled="true"/> | |||
|
209 | </scannerInfoProvider> | |||
|
210 | </profile> | |||
|
211 | </scannerConfigBuildInfo> | |||
|
212 | </storageModule> | |||
|
213 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | |||
|
214 | </cconfiguration> | |||
|
215 | </storageModule> | |||
|
216 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
217 | <project id="Control_Module.cdt.managedbuild.target.gnu.exe.1941602615" name="Executable" projectType="cdt.managedbuild.target.gnu.exe"/> | |||
|
218 | </storageModule> | |||
|
219 | </cproject> |
@@ -0,0 +1,81 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <projectDescription> | |||
|
3 | <name>Control_Module</name> | |||
|
4 | <comment></comment> | |||
|
5 | <projects> | |||
|
6 | </projects> | |||
|
7 | <buildSpec> | |||
|
8 | <buildCommand> | |||
|
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | |||
|
10 | <triggers>clean,full,incremental,</triggers> | |||
|
11 | <arguments> | |||
|
12 | <dictionary> | |||
|
13 | <key>?name?</key> | |||
|
14 | <value></value> | |||
|
15 | </dictionary> | |||
|
16 | <dictionary> | |||
|
17 | <key>org.eclipse.cdt.make.core.append_environment</key> | |||
|
18 | <value>true</value> | |||
|
19 | </dictionary> | |||
|
20 | <dictionary> | |||
|
21 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | |||
|
22 | <value>all</value> | |||
|
23 | </dictionary> | |||
|
24 | <dictionary> | |||
|
25 | <key>org.eclipse.cdt.make.core.buildArguments</key> | |||
|
26 | <value></value> | |||
|
27 | </dictionary> | |||
|
28 | <dictionary> | |||
|
29 | <key>org.eclipse.cdt.make.core.buildCommand</key> | |||
|
30 | <value>make</value> | |||
|
31 | </dictionary> | |||
|
32 | <dictionary> | |||
|
33 | <key>org.eclipse.cdt.make.core.buildLocation</key> | |||
|
34 | <value>${workspace_loc:/Control_Module/Release}</value> | |||
|
35 | </dictionary> | |||
|
36 | <dictionary> | |||
|
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | |||
|
38 | <value>clean</value> | |||
|
39 | </dictionary> | |||
|
40 | <dictionary> | |||
|
41 | <key>org.eclipse.cdt.make.core.contents</key> | |||
|
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | |||
|
43 | </dictionary> | |||
|
44 | <dictionary> | |||
|
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | |||
|
46 | <value>false</value> | |||
|
47 | </dictionary> | |||
|
48 | <dictionary> | |||
|
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | |||
|
50 | <value>true</value> | |||
|
51 | </dictionary> | |||
|
52 | <dictionary> | |||
|
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | |||
|
54 | <value>true</value> | |||
|
55 | </dictionary> | |||
|
56 | <dictionary> | |||
|
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | |||
|
58 | <value>all</value> | |||
|
59 | </dictionary> | |||
|
60 | <dictionary> | |||
|
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | |||
|
62 | <value>true</value> | |||
|
63 | </dictionary> | |||
|
64 | <dictionary> | |||
|
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | |||
|
66 | <value>true</value> | |||
|
67 | </dictionary> | |||
|
68 | </arguments> | |||
|
69 | </buildCommand> | |||
|
70 | <buildCommand> | |||
|
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | |||
|
72 | <arguments> | |||
|
73 | </arguments> | |||
|
74 | </buildCommand> | |||
|
75 | </buildSpec> | |||
|
76 | <natures> | |||
|
77 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | |||
|
78 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | |||
|
79 | <nature>org.eclipse.cdt.core.cnature</nature> | |||
|
80 | </natures> | |||
|
81 | </projectDescription> |
@@ -0,0 +1,102 | |||||
|
1 | /* | |||
|
2 | * This programmer uses AT91' GPIO lines | |||
|
3 | * | |||
|
4 | * 2006 by Carlos Camargo | |||
|
5 | * 2007.May.10 Andres Calderon | |||
|
6 | * 2009.Aug.26 Jose Francisco Quenta | |||
|
7 | */ | |||
|
8 | ||||
|
9 | #include <stdint.h> | |||
|
10 | #include <stdlib.h> | |||
|
11 | #include <stdio.h> | |||
|
12 | #include <unistd.h> | |||
|
13 | ||||
|
14 | ||||
|
15 | #include <sys/types.h> | |||
|
16 | #include <sys/stat.h> | |||
|
17 | #include <sys/mman.h> | |||
|
18 | #include <fcntl.h> | |||
|
19 | ||||
|
20 | #include "./Librerias/AT91gpio_Funciones.h" | |||
|
21 | ||||
|
22 | void pio_out(AT91S_PIO * pio, int mask, unsigned long val, int opcion) | |||
|
23 | { | |||
|
24 | if (opcion == 1) | |||
|
25 | pio->PIO_SODR = mask & val; | |||
|
26 | else | |||
|
27 | pio->PIO_CODR = mask & val; | |||
|
28 | } | |||
|
29 | ||||
|
30 | ||||
|
31 | int pio_in(AT91S_PIO * pio, int mask) | |||
|
32 | { | |||
|
33 | return (pio->PIO_PDSR & mask); | |||
|
34 | } | |||
|
35 | ||||
|
36 | ||||
|
37 | AT91S_PIO *pio_map(unsigned int piobase) | |||
|
38 | { | |||
|
39 | int fd; | |||
|
40 | void *base; | |||
|
41 | ||||
|
42 | AT91S_PIO *pio; | |||
|
43 | ||||
|
44 | off_t addr = piobase; | |||
|
45 | ||||
|
46 | if ((fd = open("/dev/mem", O_RDWR | O_SYNC)) == -1) { | |||
|
47 | fprintf(stderr, "Cannot open /dev/mem.\n"); | |||
|
48 | exit(EXIT_FAILURE); | |||
|
49 | } | |||
|
50 | ||||
|
51 | fprintf(stderr, "/dev/mem opened.\n"); | |||
|
52 | ||||
|
53 | base = mmap(0, MAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, addr & ~MAP_MASK); | |||
|
54 | ||||
|
55 | if (base == (void *) -1) { | |||
|
56 | fprintf(stderr, "Cannot open /dev/mem.\n"); | |||
|
57 | exit(EXIT_FAILURE); | |||
|
58 | } | |||
|
59 | ||||
|
60 | fprintf(stderr, "Memory mapped at address %p.\n", base); | |||
|
61 | ||||
|
62 | pio = base + (addr & MAP_MASK); | |||
|
63 | ||||
|
64 | return pio; | |||
|
65 | } | |||
|
66 | ||||
|
67 | ||||
|
68 | void pio_enable(AT91S_PIO * pio, int mask) | |||
|
69 | { | |||
|
70 | pio->PIO_PER = mask; /* Enable PIO */ | |||
|
71 | } | |||
|
72 | ||||
|
73 | void pio_output_enable(AT91S_PIO * pio, int mask) | |||
|
74 | { | |||
|
75 | pio->PIO_OER = mask; /* Set TDI, TMS and TCK as outputs */ | |||
|
76 | } | |||
|
77 | ||||
|
78 | void pio_input_enable(AT91S_PIO * pio, int mask) | |||
|
79 | { | |||
|
80 | pio->PIO_ODR = mask; /* Set TDO as input */ | |||
|
81 | pio->PIO_IFER = mask; /* Enable Input Filter */ | |||
|
82 | } | |||
|
83 | ||||
|
84 | void pio_disable_irq(AT91S_PIO * pio, int mask) | |||
|
85 | { | |||
|
86 | pio->PIO_IDR = mask; /* Disable pin interrupts */ | |||
|
87 | } | |||
|
88 | ||||
|
89 | void pio_disable_multiple_driver(AT91S_PIO * pio, int mask) | |||
|
90 | { | |||
|
91 | pio->PIO_MDDR = mask; /* Disable Multiple Diver */ | |||
|
92 | } | |||
|
93 | ||||
|
94 | void pio_disable_pull_ups(AT91S_PIO * pio, int mask) | |||
|
95 | { | |||
|
96 | pio->PIO_PUDR = mask; /* Disable Pull-Ups */ | |||
|
97 | } | |||
|
98 | ||||
|
99 | void pio_synchronous_data_output(AT91S_PIO * pio, int mask) | |||
|
100 | { | |||
|
101 | pio->PIO_OWDR = mask; /* Synchronous Data Output Write in PIO_ */ | |||
|
102 | } |
@@ -0,0 +1,131 | |||||
|
1 | /* | |||
|
2 | * This programmer uses AT91' GPIO lines | |||
|
3 | * | |||
|
4 | * 2006 by Carlos Camargo | |||
|
5 | * 2007.May.10 Andres Calderon | |||
|
6 | * 2009.Aug.26 Jose Francisco Quenta | |||
|
7 | */ | |||
|
8 | ||||
|
9 | #ifndef ECB_AT91_H | |||
|
10 | #define ECB_AT91_H | |||
|
11 | ||||
|
12 | ||||
|
13 | #define MAP_SIZE 4096Ul | |||
|
14 | #define MAP_MASK (MAP_SIZE - 1) | |||
|
15 | ||||
|
16 | #define PIOA_BASE 0xFFFFF400 | |||
|
17 | #define PIOB_BASE 0xFFFFF600 | |||
|
18 | #define PIOC_BASE 0xFFFFF800 | |||
|
19 | #define PIOD_BASE 0xFFFFFA00 | |||
|
20 | ||||
|
21 | #define PB0 (1 << 0) | |||
|
22 | #define PB1 (1 << 1) | |||
|
23 | #define PB2 (1 << 2) | |||
|
24 | #define PB3 (1 << 3) | |||
|
25 | #define PB8 (1 << 8) | |||
|
26 | #define PB9 (1 << 9) | |||
|
27 | #define PB10 (1 << 10) | |||
|
28 | #define PB11 (1 << 11) | |||
|
29 | #define PB16 (1 << 16) | |||
|
30 | #define PB17 (1 << 17) | |||
|
31 | #define PB18 (1 << 18) | |||
|
32 | #define PB19 (1 << 19) | |||
|
33 | #define PB20 (1 << 20) | |||
|
34 | #define PB21 (1 << 21) | |||
|
35 | #define PB22 (1 << 22) | |||
|
36 | #define PB23 (1 << 23) | |||
|
37 | #define PB24 (1 << 24) | |||
|
38 | #define PB25 (1 << 25) | |||
|
39 | #define PB30 (1 << 30) | |||
|
40 | #define PB31 (1 << 31) | |||
|
41 | ||||
|
42 | #define PC0 (1 << 0) | |||
|
43 | #define PC1 (1 << 1) | |||
|
44 | #define PC4 (1 << 4) | |||
|
45 | #define PC5 (1 << 5) | |||
|
46 | #define PC6 (1 << 6) | |||
|
47 | #define PC7 (1 << 7) | |||
|
48 | #define PC8 (1 << 8) | |||
|
49 | #define PC9 (1 << 9) | |||
|
50 | #define PC10 (1 << 10) | |||
|
51 | #define PC11 (1 << 11) | |||
|
52 | #define PC16 (1 << 16) | |||
|
53 | #define PC17 (1 << 17) | |||
|
54 | #define PC18 (1 << 18) | |||
|
55 | #define PC19 (1 << 19) | |||
|
56 | #define PC20 (1 << 20) | |||
|
57 | #define PC21 (1 << 21) | |||
|
58 | #define PC22 (1 << 22) | |||
|
59 | #define PC23 (1 << 23) | |||
|
60 | #define PC24 (1 << 24) | |||
|
61 | #define PC25 (1 << 25) | |||
|
62 | #define PC26 (1 << 26) | |||
|
63 | #define PC27 (1 << 27) | |||
|
64 | #define PC28 (1 << 28) | |||
|
65 | #define PC29 (1 << 29) | |||
|
66 | #define PC30 (1 << 30) | |||
|
67 | #define PC31 (1 << 31) | |||
|
68 | ||||
|
69 | ||||
|
70 | typedef volatile unsigned int AT91_REG; | |||
|
71 | /* Hardware register definition */ | |||
|
72 | ||||
|
73 | typedef struct _AT91S_PIO { | |||
|
74 | AT91_REG PIO_PER; /* PIO Enable Register */ | |||
|
75 | AT91_REG PIO_PDR; /* PIO Disable Register */ | |||
|
76 | AT91_REG PIO_PSR; /* PIO Status Register */ | |||
|
77 | AT91_REG Reserved0[1]; | |||
|
78 | AT91_REG PIO_OER; /* Output Enable Register */ | |||
|
79 | AT91_REG PIO_ODR; /* Output Disable Registerr */ | |||
|
80 | AT91_REG PIO_OSR; /* Output Status Register */ | |||
|
81 | AT91_REG Reserved1[1]; | |||
|
82 | AT91_REG PIO_IFER; /* Input Filter Enable Register */ | |||
|
83 | AT91_REG PIO_IFDR; /* Input Filter Disable Register */ | |||
|
84 | AT91_REG PIO_IFSR; /* Input Filter Status Register */ | |||
|
85 | AT91_REG Reserved2[1]; | |||
|
86 | AT91_REG PIO_SODR; /* Set Output Data Register */ | |||
|
87 | AT91_REG PIO_CODR; /* Clear Output Data Register */ | |||
|
88 | AT91_REG PIO_ODSR; /* Output Data Status Register */ | |||
|
89 | AT91_REG PIO_PDSR; /* Pin Data Status Register */ | |||
|
90 | AT91_REG PIO_IER; /* Interrupt Enable Register */ | |||
|
91 | AT91_REG PIO_IDR; /* Interrupt Disable Register */ | |||
|
92 | AT91_REG PIO_IMR; /* Interrupt Mask Register */ | |||
|
93 | AT91_REG PIO_ISR; /* Interrupt Status Register */ | |||
|
94 | AT91_REG PIO_MDER; /* Multi-driver Enable Register */ | |||
|
95 | AT91_REG PIO_MDDR; /* Multi-driver Disable Register */ | |||
|
96 | AT91_REG PIO_MDSR; /* Multi-driver Status Register */ | |||
|
97 | AT91_REG Reserved3[1]; | |||
|
98 | AT91_REG PIO_PUDR; /* Pull-up Disable Register */ | |||
|
99 | AT91_REG PIO_PUER; /* Pull-up Enable Register */ | |||
|
100 | AT91_REG PIO_PUSR; /* Pad Pull-up Status Register */ | |||
|
101 | AT91_REG Reserved4[1]; | |||
|
102 | AT91_REG PIO_ASR; /* Select A Register */ | |||
|
103 | AT91_REG PIO_BSR; /* Select B Register */ | |||
|
104 | AT91_REG PIO_ABSR; /* AB Select Status Register */ | |||
|
105 | AT91_REG Reserved5[9]; | |||
|
106 | AT91_REG PIO_OWER; /* Output Write Enable Register */ | |||
|
107 | AT91_REG PIO_OWDR; /* Output Write Disable Register */ | |||
|
108 | AT91_REG PIO_OWSR; /* Output Write Status Register */ | |||
|
109 | } AT91S_PIO, *AT91PS_PIO; | |||
|
110 | ||||
|
111 | void pio_out(AT91S_PIO * pio, int mask, unsigned long val, int opcion); | |||
|
112 | ||||
|
113 | int pio_in(AT91S_PIO * pio, int mask); | |||
|
114 | ||||
|
115 | AT91S_PIO *pio_map(unsigned int piobase); | |||
|
116 | ||||
|
117 | void pio_enable(AT91S_PIO * pio, int mask); | |||
|
118 | ||||
|
119 | void pio_output_enable(AT91S_PIO * pio, int mask); | |||
|
120 | ||||
|
121 | void pio_input_enable(AT91S_PIO * pio, int mask); | |||
|
122 | ||||
|
123 | void pio_disable_irq(AT91S_PIO * pio, int mask); | |||
|
124 | ||||
|
125 | void pio_disable_multiple_driver(AT91S_PIO * pio, int mask); | |||
|
126 | ||||
|
127 | void pio_disable_pull_ups(AT91S_PIO * pio, int mask); | |||
|
128 | ||||
|
129 | void pio_synchronous_data_output(AT91S_PIO * pio, int mask); | |||
|
130 | ||||
|
131 | #endif |
@@ -0,0 +1,19 | |||||
|
1 | /* | |||
|
2 | * Funciones_ControlERs.h | |||
|
3 | * | |||
|
4 | * Created on: Jan 14, 2010 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef FUNCIONES_CONTROLERS_H_ | |||
|
9 | #define FUNCIONES_CONTROLERS_H_ | |||
|
10 | ||||
|
11 | int estado_ERemota(char dir_red[],int dir_inicio,int dir_fin); | |||
|
12 | ||||
|
13 | int envia_experimento(char valor[], int base); | |||
|
14 | ||||
|
15 | int trae_monitoreo(char valor[], int base); | |||
|
16 | ||||
|
17 | int ClienteUDP(char *opcion, char *valor); | |||
|
18 | ||||
|
19 | #endif /* FUNCIONES_CONTROLERS_H_ */ |
@@ -0,0 +1,17 | |||||
|
1 | /* | |||
|
2 | * Mensajes.h | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef MENSAJES_H_ | |||
|
9 | #define MENSAJES_H_ | |||
|
10 | ||||
|
11 | void LOG_SERVIDOR(char *mensaje); | |||
|
12 | void LOG_CLIENTE(char *mensaje); | |||
|
13 | void ERROR_FATAL(char *mensaje); | |||
|
14 | void ERROR(char *mensaje); | |||
|
15 | ||||
|
16 | ||||
|
17 | #endif /* MENSAJES_H_ */ |
@@ -0,0 +1,39 | |||||
|
1 | /* | |||
|
2 | * Mensajes.c | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: Jose Francisco Quenta | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #include <stdio.h> | |||
|
9 | #include <stdlib.h> | |||
|
10 | ||||
|
11 | /* | |||
|
12 | * Imprime mensajes del servidor | |||
|
13 | */ | |||
|
14 | void LOG_SERVIDOR(char *mensaje){ | |||
|
15 | printf("SERVIDOR: %s\n",mensaje); | |||
|
16 | } | |||
|
17 | ||||
|
18 | /* | |||
|
19 | * Imprime mensajes del cliente | |||
|
20 | */ | |||
|
21 | void LOG_CLIENTE(char *mensaje){ | |||
|
22 | printf("CLIENTE: %s\n",mensaje); | |||
|
23 | } | |||
|
24 | ||||
|
25 | /* | |||
|
26 | * Error no fatal, permite la continuación del programa | |||
|
27 | */ | |||
|
28 | void ERROR(char *mensaje){ | |||
|
29 | fprintf(stderr, "ERROR. %s\n", mensaje); | |||
|
30 | } | |||
|
31 | ||||
|
32 | /* | |||
|
33 | * Error fatal, aborta la ejecución del programa con código de salida de error | |||
|
34 | */ | |||
|
35 | void ERROR_FATAL(char *mensaje){ | |||
|
36 | fprintf(stderr, "ERROR FATAL. %s\n", mensaje); | |||
|
37 | exit(EXIT_FAILURE); | |||
|
38 | } | |||
|
39 |
@@ -0,0 +1,322 | |||||
|
1 | /* | |||
|
2 | * Servidor.c | |||
|
3 | * | |||
|
4 | * Created on: Nov 3, 2009 | |||
|
5 | * Author: Jose Francisco Quenta | |||
|
6 | * | |||
|
7 | * Se implementa: | |||
|
8 | * -Carga en memoria los apuntes contenidos en un archivo de experimentos: apunte0 -> GPIO | |||
|
9 | * -Cambio de apunte. | |||
|
10 | * -Lectura del estado actual del apunte y grabado del mismo en un archivo | |||
|
11 | */ | |||
|
12 | ||||
|
13 | #include <stdio.h> | |||
|
14 | #include <stdlib.h> | |||
|
15 | #include <string.h> | |||
|
16 | #include <unistd.h> | |||
|
17 | #include <errno.h> | |||
|
18 | ||||
|
19 | #include <sys/types.h> | |||
|
20 | #include <sys/socket.h> | |||
|
21 | #include <netinet/in.h> | |||
|
22 | #include <arpa/inet.h> | |||
|
23 | #include <netdb.h> | |||
|
24 | ||||
|
25 | #include "./Librerias/AT91gpio_Funciones.h" | |||
|
26 | #include "./Librerias/Mensajes.h" | |||
|
27 | ||||
|
28 | #define PUERTO_SERVIDOR 5500 | |||
|
29 | #define TAM_BUFFER 100 | |||
|
30 | ||||
|
31 | #define maskc_out PC30+PC28+PC26+PC24+PC22+PC20 //MSB-UP-LSB MSB-DOWN-LSB //APUNTE | |||
|
32 | ||||
|
33 | #define maskb_in PB16+PB18+PB20+PB30+PB24+PB22 //MSB-UP-LSB MSB-DOWN-LSB //VERIFICACION | |||
|
34 | ||||
|
35 | #define bit_up_2 0x00010000 //Mascara de cada bit a revisar: bit_up_2 es MSB | |||
|
36 | #define bit_up_1 0x00040000 | |||
|
37 | #define bit_up_0 0x00100000 | |||
|
38 | #define bit_dow_2 0x40000000 | |||
|
39 | #define bit_dow_1 0x01000000 | |||
|
40 | #define bit_dow_0 0x00400000 | |||
|
41 | ||||
|
42 | #define MyID 11 | |||
|
43 | ||||
|
44 | char *buff_experimento= NULL; | |||
|
45 | ||||
|
46 | AT91S_PIO *pioc; | |||
|
47 | AT91S_PIO *piob; | |||
|
48 | ||||
|
49 | /* | |||
|
50 | * Zona de declaracion de cabeceras. | |||
|
51 | */ | |||
|
52 | void inicializa_gpio(); | |||
|
53 | int procesa_peticion(char *buff_peticion); | |||
|
54 | int cambia_apuntamiento(char *puntero_char); | |||
|
55 | int carga_experimento(char *nombre_archivo); | |||
|
56 | int chequeo_sistema(char *numero_muestras); | |||
|
57 | ||||
|
58 | /* | |||
|
59 | * | |||
|
60 | */ | |||
|
61 | int main(){ | |||
|
62 | ||||
|
63 | int conexion_servidorFd; | |||
|
64 | struct sockaddr_in inf_servidor; | |||
|
65 | struct sockaddr_storage inf_cliente; | |||
|
66 | int resultado; | |||
|
67 | int numbytes_recibidos; | |||
|
68 | int rpta; | |||
|
69 | ||||
|
70 | char *buff_peticion = (char *) malloc(TAM_BUFFER); | |||
|
71 | ||||
|
72 | size_t addr_len; | |||
|
73 | ||||
|
74 | memset(&inf_servidor, 0, sizeof(inf_servidor)); | |||
|
75 | inf_servidor.sin_family= AF_INET; | |||
|
76 | inf_servidor.sin_port= htons(PUERTO_SERVIDOR); | |||
|
77 | inf_servidor.sin_addr.s_addr= INADDR_ANY; | |||
|
78 | ||||
|
79 | /* Se establece el socket */ | |||
|
80 | conexion_servidorFd = socket(AF_INET,SOCK_DGRAM,0); | |||
|
81 | if (conexion_servidorFd == -1){ | |||
|
82 | ERROR_FATAL("No se establecio correctamente el socket: socket()"); | |||
|
83 | } | |||
|
84 | ||||
|
85 | /* Se asocia el socket a un puerto y una IP */ | |||
|
86 | resultado = bind(conexion_servidorFd,(struct sockaddr *)&inf_servidor,sizeof(inf_servidor)); | |||
|
87 | if (resultado== -1){ | |||
|
88 | ERROR_FATAL("No se establecio correctamente el socket: bind()"); | |||
|
89 | } | |||
|
90 | ||||
|
91 | /* Inicializamos el puerto GPIO del sistema embebido GSBC-9260S */ | |||
|
92 | inicializa_gpio(); | |||
|
93 | ||||
|
94 | while(1){ | |||
|
95 | LOG_SERVIDOR("Esperando solicitud de cliente...\n"); | |||
|
96 | ||||
|
97 | /* Se espera hasta que un cliente se conecte */ | |||
|
98 | addr_len = sizeof(inf_cliente); | |||
|
99 | numbytes_recibidos = recvfrom(conexion_servidorFd, buff_peticion, TAM_BUFFER-1, 0, (struct sockaddr *)&inf_cliente, &addr_len); | |||
|
100 | if (numbytes_recibidos == -1){ | |||
|
101 | ERROR_FATAL("Error en la recepcion de datos: recvfrom()"); | |||
|
102 | } | |||
|
103 | ||||
|
104 | /* Se procede a procesar los datos recibidos */ | |||
|
105 | buff_peticion[numbytes_recibidos]= '\0'; | |||
|
106 | ||||
|
107 | /* procesamiento de la peticion */ | |||
|
108 | rpta = procesa_peticion(buff_peticion); | |||
|
109 | ||||
|
110 | //Respuesta del modulo de control | |||
|
111 | // | |||
|
112 | ||||
|
113 | ||||
|
114 | } | |||
|
115 | } | |||
|
116 | ||||
|
117 | /* | |||
|
118 | * Esta funcion incializa el puerto GPIO | |||
|
119 | */ | |||
|
120 | void inicializa_gpio(){ | |||
|
121 | ||||
|
122 | // Configuracion de los pines de APUNTE | |||
|
123 | pioc = pio_map(PIOC_BASE); | |||
|
124 | pio_enable(pioc, maskc_out); | |||
|
125 | pio_disable_irq(pioc, maskc_out); | |||
|
126 | pio_disable_multiple_driver(pioc, maskc_out); | |||
|
127 | pio_disable_pull_ups(pioc, maskc_out); | |||
|
128 | pio_synchronous_data_output(pioc, maskc_out); | |||
|
129 | pio_output_enable(pioc, maskc_out); | |||
|
130 | ||||
|
131 | // Configuracion de los pines de VERIFICACION | |||
|
132 | piob = pio_map(PIOB_BASE); | |||
|
133 | pio_enable(piob, maskb_in); | |||
|
134 | pio_disable_irq(piob, maskb_in); | |||
|
135 | pio_disable_multiple_driver(piob, maskb_in); | |||
|
136 | pio_disable_pull_ups(piob, maskb_in); | |||
|
137 | pio_input_enable(piob, maskb_in); | |||
|
138 | ||||
|
139 | } | |||
|
140 | ||||
|
141 | /* | |||
|
142 | * Esta funcion procesa el mensaje de peticion y genera respuesta | |||
|
143 | */ | |||
|
144 | int procesa_peticion(char *buff_peticion){ | |||
|
145 | int rpta; | |||
|
146 | // char *header = strtok(buff_peticion, ":"); | |||
|
147 | // char *ipSource = strtok(buff_peticion, ":"); | |||
|
148 | // char *ipDestino = strtok(buff_peticion, ":"); | |||
|
149 | char *comando = strtok(buff_peticion, ":"); | |||
|
150 | char *valor = strtok(NULL, ":"); | |||
|
151 | ||||
|
152 | if ((comando == NULL) || (valor == NULL)){ | |||
|
153 | ERROR("procesarPeticion: formato de mensaje incorrecto"); | |||
|
154 | } | |||
|
155 | else{ | |||
|
156 | if(strcmp(comando,"CARGA") == 0) | |||
|
157 | rpta = carga_experimento(valor); | |||
|
158 | else if(strcmp(comando,"CAMBIA") == 0) | |||
|
159 | rpta = cambia_apuntamiento(valor); | |||
|
160 | else if(strcmp(comando,"CHEQUEO") == 0) | |||
|
161 | rpta = chequeo_sistema(valor); | |||
|
162 | else | |||
|
163 | ERROR("procesa_peticion: comando no reconocido"); | |||
|
164 | } | |||
|
165 | ||||
|
166 | return rpta; | |||
|
167 | } | |||
|
168 | ||||
|
169 | ||||
|
170 | /* | |||
|
171 | * Esta funcion carga un archivo en un buffer que esta ubicado en memoria, luego | |||
|
172 | * este buffer es usado en la funcion "cambia_apuntamiento" para obtener el dato | |||
|
173 | * que sera usado en el cambio de apuntamiento. | |||
|
174 | */ | |||
|
175 | int carga_experimento(char *nombre_archivo){ | |||
|
176 | ||||
|
177 | FILE *Archivo_Fd; | |||
|
178 | ||||
|
179 | char *cadena = (char *) malloc(25); | |||
|
180 | ||||
|
181 | int longitud_cadena; | |||
|
182 | int num_bytes= 0; | |||
|
183 | int num_filas= 0; | |||
|
184 | ||||
|
185 | char ruta_archivo[50]; // Se crea la ruta para abrir el archivo | |||
|
186 | strcpy(ruta_archivo,"/mnt/sd/archivos/"); | |||
|
187 | strcat(ruta_archivo,nombre_archivo); | |||
|
188 | ||||
|
189 | Archivo_Fd = fopen(ruta_archivo,"r"); // Se procede a abrir el archivo, segun la ruta especificada | |||
|
190 | if(!Archivo_Fd){ | |||
|
191 | ERROR("carga_archivo: No se pudo abrir el archivo!!! --> fopen()\n"); | |||
|
192 | return -1; | |||
|
193 | }else{ | |||
|
194 | ||||
|
195 | while(!feof(Archivo_Fd)){ // Se procede a calcular la longitud del archivo para separar memoria | |||
|
196 | fgets(cadena,20,Archivo_Fd); | |||
|
197 | longitud_cadena= strlen(cadena); | |||
|
198 | cadena[longitud_cadena-1] = '\0'; | |||
|
199 | num_bytes = num_bytes + longitud_cadena; | |||
|
200 | num_filas++; | |||
|
201 | } | |||
|
202 | ||||
|
203 | rewind(Archivo_Fd); // Se reinicia el puntero del archivo | |||
|
204 | ||||
|
205 | char *buffer_temporal = (char *) malloc(num_bytes+1); // Se separa espacio de memoria segun | |||
|
206 | // la longitud del archivo | |||
|
207 | fread(buffer_temporal, sizeof(char), num_bytes, Archivo_Fd); | |||
|
208 | ||||
|
209 | char *puntero= strstr(buffer_temporal,".abs"); // Se procede a eliminar la cabecera del archivo | |||
|
210 | puntero= puntero + 12; | |||
|
211 | ||||
|
212 | buff_experimento = (char *) malloc(7*(num_filas-3)); // num_bytes_fila*(num_filas-3); | |||
|
213 | strncpy(buff_experimento,puntero,7*(num_filas-3)); // Se carga en memoria la informacion del archivo | |||
|
214 | ||||
|
215 | fclose(Archivo_Fd); | |||
|
216 | ||||
|
217 | cambia_apuntamiento("0"); // Se apunta a la direccion 0 | |||
|
218 | ||||
|
219 | return 1; | |||
|
220 | } | |||
|
221 | } | |||
|
222 | ||||
|
223 | /* | |||
|
224 | * Esta funcion recibe un numero en formato char, el dato se transforma a su equivalente en | |||
|
225 | * un numero entero, que sera usado para sacar un dato del buffer "buff_experimento", esta | |||
|
226 | * dato es el valor que se enviara al sistema de conmutacion RF para el cambio de apunte a | |||
|
227 | * traves del puerto GPIO. | |||
|
228 | */ | |||
|
229 | int cambia_apuntamiento(char *puntero_char){ | |||
|
230 | ||||
|
231 | /*MSB-UP-LSB MSB-DOWN-LSB*/ | |||
|
232 | int desplazamiento[6]={30,28,26,24,22,20}; // Defino los dezplazamientos que se aplicara | |||
|
233 | // al dato que ingresa para formar el número | |||
|
234 | // entero que se le pasara al puerto GPIO | |||
|
235 | // Estos números son los pines del puerto GPIO | |||
|
236 | // que se estan usando para el control | |||
|
237 | ||||
|
238 | int puntero= atoi(puntero_char); // Se convierte a entero la direccion del puntero | |||
|
239 | ||||
|
240 | int base= 7*puntero; // base= cantidad_bytes del dato x puntero | |||
|
241 | // cantidad de bytes es el numero de bytes que | |||
|
242 | printf("%i\n",puntero); // contiene cada dato, para este caso es 7 | |||
|
243 | // porque es 6 bits de datos + 1 bit del cambio | |||
|
244 | // de linea. | |||
|
245 | char valor_char; | |||
|
246 | unsigned long valor; | |||
|
247 | unsigned long acumulado_ceros=0; | |||
|
248 | unsigned long acumulado_unos=0; | |||
|
249 | ||||
|
250 | int offset; // Defino offset para el desplazamiento a traves | |||
|
251 | for(offset=0;offset<6;offset++){ // de cada dato que se obtiene del "buff_experimento" | |||
|
252 | ||||
|
253 | valor_char= buff_experimento[base+offset]; // Obtengo el dato | |||
|
254 | ||||
|
255 | if (valor_char == '0'){ // Obtengo el número acumulado segun sea un cero o un uno | |||
|
256 | valor= 0; | |||
|
257 | acumulado_ceros= acumulado_ceros + (1 << desplazamiento[offset]); | |||
|
258 | }else{ | |||
|
259 | valor= 1; | |||
|
260 | acumulado_unos= acumulado_unos + (1 << desplazamiento[offset]); | |||
|
261 | } | |||
|
262 | ||||
|
263 | } | |||
|
264 | ||||
|
265 | pio_out(pioc, maskc_out, acumulado_unos, 1); | |||
|
266 | pio_out(pioc, maskc_out, acumulado_ceros, 0); | |||
|
267 | ||||
|
268 | return 1; | |||
|
269 | ||||
|
270 | } | |||
|
271 | ||||
|
272 | /* | |||
|
273 | * Esta funcion lee "n" veces el estado del APUNTE actual y lo guarda en el | |||
|
274 | * archivo Verificacion. | |||
|
275 | */ | |||
|
276 | ||||
|
277 | int chequeo_sistema(char *numero_muestras){ | |||
|
278 | ||||
|
279 | char valor[7]; | |||
|
280 | int i,cnt; | |||
|
281 | unsigned int entradac= 0; | |||
|
282 | FILE *fd; | |||
|
283 | fd=fopen("/mnt/sd/archivos/Verificacion","w"); | |||
|
284 | fprintf(fd,"%s\n","Verificacion"); | |||
|
285 | fprintf(fd,"%s\n","------------"); | |||
|
286 | cnt=0; | |||
|
287 | do | |||
|
288 | { | |||
|
289 | //Inicializando arreglo | |||
|
290 | for(i=0;i<6;i++) | |||
|
291 | valor[i]='0'; | |||
|
292 | ||||
|
293 | valor[6]='\0'; | |||
|
294 | ||||
|
295 | //Lectura de puerto | |||
|
296 | entradac= pio_in(piob,maskb_in); | |||
|
297 | ||||
|
298 | //Dandole formato al dato | |||
|
299 | if (!(entradac & bit_up_2)) | |||
|
300 | valor[0] = '1'; | |||
|
301 | if (!(entradac & bit_up_1)) | |||
|
302 | valor[1] = '1'; | |||
|
303 | if (!(entradac & bit_up_0)) | |||
|
304 | valor[2] = '1'; | |||
|
305 | if (!(entradac & bit_dow_2)) | |||
|
306 | valor[3] = '1'; | |||
|
307 | if (!(entradac & bit_dow_1)) | |||
|
308 | valor[4] = '1'; | |||
|
309 | if (!(entradac & bit_dow_0)) | |||
|
310 | valor[5] = '1'; | |||
|
311 | ||||
|
312 | //Escribiendo en archivo | |||
|
313 | fprintf(fd,"%s\n",valor); | |||
|
314 | cnt=cnt+1; | |||
|
315 | usleep(1*1000*1000); | |||
|
316 | ||||
|
317 | }while(cnt < atoi(numero_muestras)); | |||
|
318 | ||||
|
319 | fclose(fd); | |||
|
320 | ||||
|
321 | return 1; | |||
|
322 | } |
@@ -0,0 +1,219 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
|
2 | <?fileVersion 4.0.0?> | |||
|
3 | ||||
|
4 | <cproject> | |||
|
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | |||
|
6 | <cconfiguration id="cdt.managedbuild.config.gnu.exe.release.967225482"> | |||
|
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.exe.release.967225482" moduleId="org.eclipse.cdt.core.settings" name="Release"> | |||
|
8 | <externalSettings/> | |||
|
9 | <extensions> | |||
|
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | |||
|
11 | <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
12 | <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
13 | <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
14 | <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | |||
|
15 | </extensions> | |||
|
16 | </storageModule> | |||
|
17 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
18 | <configuration artifactName="Control_Module_Test" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.exe.release.967225482" name="Release" parent="cdt.managedbuild.config.gnu.exe.release"> | |||
|
19 | <folderInfo id="cdt.managedbuild.config.gnu.exe.release.967225482." name="/" resourcePath=""> | |||
|
20 | <toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.1704877847" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.exe.release"> | |||
|
21 | <targetPlatform id="cdt.managedbuild.target.gnu.platform.exe.release.136927403" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.exe.release"/> | |||
|
22 | <builder buildPath="${workspace_loc:/Control_Module_Test/Release}" id="cdt.managedbuild.target.gnu.builder.exe.release.1213459204" managedBuildOn="true" name="Gnu Make Builder.Release" superClass="cdt.managedbuild.target.gnu.builder.exe.release"/> | |||
|
23 | <tool id="cdt.managedbuild.tool.gnu.archiver.base.714912864" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/> | |||
|
24 | <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.60046747" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release"> | |||
|
25 | <option id="gnu.cpp.compiler.exe.release.option.optimization.level.1613576554" superClass="gnu.cpp.compiler.exe.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/> | |||
|
26 | <option id="gnu.cpp.compiler.exe.release.option.debugging.level.671664230" superClass="gnu.cpp.compiler.exe.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/> | |||
|
27 | </tool> | |||
|
28 | <tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.1261706953" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release"> | |||
|
29 | <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.exe.release.option.optimization.level.1418007451" superClass="gnu.c.compiler.exe.release.option.optimization.level" valueType="enumerated"/> | |||
|
30 | <option id="gnu.c.compiler.exe.release.option.debugging.level.1736576157" superClass="gnu.c.compiler.exe.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> | |||
|
31 | <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.39907267" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> | |||
|
32 | </tool> | |||
|
33 | <tool id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1836769995" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"> | |||
|
34 | <inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1152282245" superClass="cdt.managedbuild.tool.gnu.c.linker.input"> | |||
|
35 | <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> | |||
|
36 | <additionalInput kind="additionalinput" paths="$(LIBS)"/> | |||
|
37 | </inputType> | |||
|
38 | </tool> | |||
|
39 | <tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.1991972445" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release"/> | |||
|
40 | <tool id="cdt.managedbuild.tool.gnu.assembler.exe.release.1322086822" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.release"> | |||
|
41 | <inputType id="cdt.managedbuild.tool.gnu.assembler.input.913298525" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> | |||
|
42 | </tool> | |||
|
43 | </toolChain> | |||
|
44 | </folderInfo> | |||
|
45 | </configuration> | |||
|
46 | </storageModule> | |||
|
47 | <storageModule moduleId="scannerConfiguration"> | |||
|
48 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/> | |||
|
49 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
50 | <buildOutputProvider> | |||
|
51 | <openAction enabled="true" filePath=""/> | |||
|
52 | <parser enabled="true"/> | |||
|
53 | </buildOutputProvider> | |||
|
54 | <scannerInfoProvider id="specsFile"> | |||
|
55 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
56 | <parser enabled="true"/> | |||
|
57 | </scannerInfoProvider> | |||
|
58 | </profile> | |||
|
59 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
60 | <buildOutputProvider> | |||
|
61 | <openAction enabled="true" filePath=""/> | |||
|
62 | <parser enabled="true"/> | |||
|
63 | </buildOutputProvider> | |||
|
64 | <scannerInfoProvider id="makefileGenerator"> | |||
|
65 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
66 | <parser enabled="true"/> | |||
|
67 | </scannerInfoProvider> | |||
|
68 | </profile> | |||
|
69 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
70 | <buildOutputProvider> | |||
|
71 | <openAction enabled="true" filePath=""/> | |||
|
72 | <parser enabled="true"/> | |||
|
73 | </buildOutputProvider> | |||
|
74 | <scannerInfoProvider id="specsFile"> | |||
|
75 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
76 | <parser enabled="true"/> | |||
|
77 | </scannerInfoProvider> | |||
|
78 | </profile> | |||
|
79 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
80 | <buildOutputProvider> | |||
|
81 | <openAction enabled="true" filePath=""/> | |||
|
82 | <parser enabled="true"/> | |||
|
83 | </buildOutputProvider> | |||
|
84 | <scannerInfoProvider id="specsFile"> | |||
|
85 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
86 | <parser enabled="true"/> | |||
|
87 | </scannerInfoProvider> | |||
|
88 | </profile> | |||
|
89 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
90 | <buildOutputProvider> | |||
|
91 | <openAction enabled="true" filePath=""/> | |||
|
92 | <parser enabled="true"/> | |||
|
93 | </buildOutputProvider> | |||
|
94 | <scannerInfoProvider id="specsFile"> | |||
|
95 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
96 | <parser enabled="true"/> | |||
|
97 | </scannerInfoProvider> | |||
|
98 | </profile> | |||
|
99 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
100 | <buildOutputProvider> | |||
|
101 | <openAction enabled="true" filePath=""/> | |||
|
102 | <parser enabled="true"/> | |||
|
103 | </buildOutputProvider> | |||
|
104 | <scannerInfoProvider id="specsFile"> | |||
|
105 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
106 | <parser enabled="true"/> | |||
|
107 | </scannerInfoProvider> | |||
|
108 | </profile> | |||
|
109 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
110 | <buildOutputProvider> | |||
|
111 | <openAction enabled="true" filePath=""/> | |||
|
112 | <parser enabled="true"/> | |||
|
113 | </buildOutputProvider> | |||
|
114 | <scannerInfoProvider id="specsFile"> | |||
|
115 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
116 | <parser enabled="true"/> | |||
|
117 | </scannerInfoProvider> | |||
|
118 | </profile> | |||
|
119 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
120 | <buildOutputProvider> | |||
|
121 | <openAction enabled="true" filePath=""/> | |||
|
122 | <parser enabled="true"/> | |||
|
123 | </buildOutputProvider> | |||
|
124 | <scannerInfoProvider id="specsFile"> | |||
|
125 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
126 | <parser enabled="true"/> | |||
|
127 | </scannerInfoProvider> | |||
|
128 | </profile> | |||
|
129 | <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.exe.release.967225482;cdt.managedbuild.config.gnu.exe.release.967225482.;cdt.managedbuild.tool.gnu.c.compiler.exe.release.1261706953;cdt.managedbuild.tool.gnu.c.compiler.input.39907267"> | |||
|
130 | <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> | |||
|
131 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"> | |||
|
132 | <buildOutputProvider> | |||
|
133 | <openAction enabled="true" filePath=""/> | |||
|
134 | <parser enabled="true"/> | |||
|
135 | </buildOutputProvider> | |||
|
136 | <scannerInfoProvider id="specsFile"> | |||
|
137 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
138 | <parser enabled="true"/> | |||
|
139 | </scannerInfoProvider> | |||
|
140 | </profile> | |||
|
141 | <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"> | |||
|
142 | <buildOutputProvider> | |||
|
143 | <openAction enabled="true" filePath=""/> | |||
|
144 | <parser enabled="true"/> | |||
|
145 | </buildOutputProvider> | |||
|
146 | <scannerInfoProvider id="makefileGenerator"> | |||
|
147 | <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/> | |||
|
148 | <parser enabled="true"/> | |||
|
149 | </scannerInfoProvider> | |||
|
150 | </profile> | |||
|
151 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile"> | |||
|
152 | <buildOutputProvider> | |||
|
153 | <openAction enabled="true" filePath=""/> | |||
|
154 | <parser enabled="true"/> | |||
|
155 | </buildOutputProvider> | |||
|
156 | <scannerInfoProvider id="specsFile"> | |||
|
157 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
158 | <parser enabled="true"/> | |||
|
159 | </scannerInfoProvider> | |||
|
160 | </profile> | |||
|
161 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"> | |||
|
162 | <buildOutputProvider> | |||
|
163 | <openAction enabled="true" filePath=""/> | |||
|
164 | <parser enabled="true"/> | |||
|
165 | </buildOutputProvider> | |||
|
166 | <scannerInfoProvider id="specsFile"> | |||
|
167 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
168 | <parser enabled="true"/> | |||
|
169 | </scannerInfoProvider> | |||
|
170 | </profile> | |||
|
171 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"> | |||
|
172 | <buildOutputProvider> | |||
|
173 | <openAction enabled="true" filePath=""/> | |||
|
174 | <parser enabled="true"/> | |||
|
175 | </buildOutputProvider> | |||
|
176 | <scannerInfoProvider id="specsFile"> | |||
|
177 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
178 | <parser enabled="true"/> | |||
|
179 | </scannerInfoProvider> | |||
|
180 | </profile> | |||
|
181 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile"> | |||
|
182 | <buildOutputProvider> | |||
|
183 | <openAction enabled="true" filePath=""/> | |||
|
184 | <parser enabled="true"/> | |||
|
185 | </buildOutputProvider> | |||
|
186 | <scannerInfoProvider id="specsFile"> | |||
|
187 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/> | |||
|
188 | <parser enabled="true"/> | |||
|
189 | </scannerInfoProvider> | |||
|
190 | </profile> | |||
|
191 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"> | |||
|
192 | <buildOutputProvider> | |||
|
193 | <openAction enabled="true" filePath=""/> | |||
|
194 | <parser enabled="true"/> | |||
|
195 | </buildOutputProvider> | |||
|
196 | <scannerInfoProvider id="specsFile"> | |||
|
197 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/> | |||
|
198 | <parser enabled="true"/> | |||
|
199 | </scannerInfoProvider> | |||
|
200 | </profile> | |||
|
201 | <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"> | |||
|
202 | <buildOutputProvider> | |||
|
203 | <openAction enabled="true" filePath=""/> | |||
|
204 | <parser enabled="true"/> | |||
|
205 | </buildOutputProvider> | |||
|
206 | <scannerInfoProvider id="specsFile"> | |||
|
207 | <runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/> | |||
|
208 | <parser enabled="true"/> | |||
|
209 | </scannerInfoProvider> | |||
|
210 | </profile> | |||
|
211 | </scannerConfigBuildInfo> | |||
|
212 | </storageModule> | |||
|
213 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | |||
|
214 | </cconfiguration> | |||
|
215 | </storageModule> | |||
|
216 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | |||
|
217 | <project id="Control_Module_Test.cdt.managedbuild.target.gnu.exe.2090911806" name="Executable" projectType="cdt.managedbuild.target.gnu.exe"/> | |||
|
218 | </storageModule> | |||
|
219 | </cproject> |
@@ -0,0 +1,81 | |||||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |||
|
2 | <projectDescription> | |||
|
3 | <name>Control_Module_Test</name> | |||
|
4 | <comment></comment> | |||
|
5 | <projects> | |||
|
6 | </projects> | |||
|
7 | <buildSpec> | |||
|
8 | <buildCommand> | |||
|
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | |||
|
10 | <triggers>clean,full,incremental,</triggers> | |||
|
11 | <arguments> | |||
|
12 | <dictionary> | |||
|
13 | <key>?name?</key> | |||
|
14 | <value></value> | |||
|
15 | </dictionary> | |||
|
16 | <dictionary> | |||
|
17 | <key>org.eclipse.cdt.make.core.append_environment</key> | |||
|
18 | <value>true</value> | |||
|
19 | </dictionary> | |||
|
20 | <dictionary> | |||
|
21 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | |||
|
22 | <value>all</value> | |||
|
23 | </dictionary> | |||
|
24 | <dictionary> | |||
|
25 | <key>org.eclipse.cdt.make.core.buildArguments</key> | |||
|
26 | <value></value> | |||
|
27 | </dictionary> | |||
|
28 | <dictionary> | |||
|
29 | <key>org.eclipse.cdt.make.core.buildCommand</key> | |||
|
30 | <value>make</value> | |||
|
31 | </dictionary> | |||
|
32 | <dictionary> | |||
|
33 | <key>org.eclipse.cdt.make.core.buildLocation</key> | |||
|
34 | <value>${workspace_loc:/Control_Module_Test/Release}</value> | |||
|
35 | </dictionary> | |||
|
36 | <dictionary> | |||
|
37 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | |||
|
38 | <value>clean</value> | |||
|
39 | </dictionary> | |||
|
40 | <dictionary> | |||
|
41 | <key>org.eclipse.cdt.make.core.contents</key> | |||
|
42 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | |||
|
43 | </dictionary> | |||
|
44 | <dictionary> | |||
|
45 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | |||
|
46 | <value>false</value> | |||
|
47 | </dictionary> | |||
|
48 | <dictionary> | |||
|
49 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | |||
|
50 | <value>true</value> | |||
|
51 | </dictionary> | |||
|
52 | <dictionary> | |||
|
53 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | |||
|
54 | <value>true</value> | |||
|
55 | </dictionary> | |||
|
56 | <dictionary> | |||
|
57 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | |||
|
58 | <value>all</value> | |||
|
59 | </dictionary> | |||
|
60 | <dictionary> | |||
|
61 | <key>org.eclipse.cdt.make.core.stopOnError</key> | |||
|
62 | <value>true</value> | |||
|
63 | </dictionary> | |||
|
64 | <dictionary> | |||
|
65 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | |||
|
66 | <value>true</value> | |||
|
67 | </dictionary> | |||
|
68 | </arguments> | |||
|
69 | </buildCommand> | |||
|
70 | <buildCommand> | |||
|
71 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | |||
|
72 | <arguments> | |||
|
73 | </arguments> | |||
|
74 | </buildCommand> | |||
|
75 | </buildSpec> | |||
|
76 | <natures> | |||
|
77 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | |||
|
78 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | |||
|
79 | <nature>org.eclipse.cdt.core.cnature</nature> | |||
|
80 | </natures> | |||
|
81 | </projectDescription> |
@@ -0,0 +1,83 | |||||
|
1 | /* | |||
|
2 | * ClienteUDP.c | |||
|
3 | * | |||
|
4 | * Fecha de creacion : Nov 2, 2009 | |||
|
5 | * Ultima modificacion : Nov 19, 2009 | |||
|
6 | * Autor : Jose Francisco Quenta C. | |||
|
7 | */ | |||
|
8 | ||||
|
9 | #include <stdio.h> | |||
|
10 | #include <stdlib.h> | |||
|
11 | #include <string.h> | |||
|
12 | #include <unistd.h> | |||
|
13 | #include <errno.h> | |||
|
14 | #include <sys/types.h> | |||
|
15 | #include <sys/socket.h> | |||
|
16 | #include <netinet/in.h> | |||
|
17 | #include <arpa/inet.h> | |||
|
18 | #include <netdb.h> | |||
|
19 | ||||
|
20 | #include "./Librerias/Mensajes.h" | |||
|
21 | ||||
|
22 | #define PUERTO_SERVIDOR 5500 | |||
|
23 | //#define DIR_SERVIDOR "10.10.12.255" | |||
|
24 | #define DIR_SERVIDOR "192.168.1.255" | |||
|
25 | ||||
|
26 | int ClienteUDP(char *opcion, char *valor){ | |||
|
27 | ||||
|
28 | int conexion_clienteFD; | |||
|
29 | struct sockaddr_in inf_servidor; | |||
|
30 | ||||
|
31 | int broadcast= 1; | |||
|
32 | int resultado; | |||
|
33 | int numbytes_enviados; | |||
|
34 | ||||
|
35 | char *buff_peticion; | |||
|
36 | char *comando= NULL; | |||
|
37 | ||||
|
38 | if (strcmp(opcion,"-l") == 0){ // Se reconoce el comando que se esta enviando | |||
|
39 | comando= "CARGA:"; | |||
|
40 | }else if(strcmp(opcion,"-c") == 0){ | |||
|
41 | comando= "CAMBIA:"; | |||
|
42 | }else if(strcmp(opcion,"-ch") == 0){ | |||
|
43 | comando= "CHEQUEO:"; | |||
|
44 | }else { | |||
|
45 | ERROR("OPCION INCORRECTA: {-l|-c|-ch}"); | |||
|
46 | return -1; | |||
|
47 | } | |||
|
48 | ||||
|
49 | buff_peticion= (char *) malloc(strlen(comando)+1+strlen(valor)+1); // Se arma el buffer a ser enviado. | |||
|
50 | strcpy(buff_peticion,comando); | |||
|
51 | strcat(buff_peticion,valor); | |||
|
52 | ||||
|
53 | /* Se establece el socket UDP */ | |||
|
54 | conexion_clienteFD= socket(AF_INET,SOCK_DGRAM,0); | |||
|
55 | if (conexion_clienteFD == -1){ | |||
|
56 | ERROR("No se pudo establecer el socket: socket()"); | |||
|
57 | return -1; | |||
|
58 | } | |||
|
59 | ||||
|
60 | /* Se establece el Broadcast con la funcion setsockpt() */ | |||
|
61 | resultado= setsockopt(conexion_clienteFD, SOL_SOCKET, SO_BROADCAST, &broadcast, sizeof(broadcast)); | |||
|
62 | if (resultado == -1){ | |||
|
63 | ERROR("No se pudo establecer la opcion de Broadcast: setsockopt()"); | |||
|
64 | return -1; | |||
|
65 | } | |||
|
66 | ||||
|
67 | /* Se configura la estructura que contiene la informacion sobre el servidor: inf_servidor */ | |||
|
68 | inf_servidor.sin_family= AF_INET; | |||
|
69 | inf_servidor.sin_port= htons(PUERTO_SERVIDOR); | |||
|
70 | inf_servidor.sin_addr.s_addr= inet_addr(DIR_SERVIDOR); | |||
|
71 | memset(inf_servidor.sin_zero, '\0', sizeof(inf_servidor.sin_zero)); | |||
|
72 | ||||
|
73 | /* Se procede a enviar el buffer */ | |||
|
74 | numbytes_enviados= sendto(conexion_clienteFD,buff_peticion,strlen(buff_peticion),0,(struct sockaddr *)&inf_servidor,sizeof(inf_servidor)); | |||
|
75 | if(numbytes_enviados == -1){ | |||
|
76 | ERROR("Error de envio de datos: sendto()"); | |||
|
77 | return -1; | |||
|
78 | } | |||
|
79 | ||||
|
80 | close(conexion_clienteFD); | |||
|
81 | ||||
|
82 | return 0; | |||
|
83 | } |
@@ -0,0 +1,19 | |||||
|
1 | /* | |||
|
2 | * Funciones_ControlERs.h | |||
|
3 | * | |||
|
4 | * Created on: Jan 14, 2010 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef FUNCIONES_CONTROLERS_H_ | |||
|
9 | #define FUNCIONES_CONTROLERS_H_ | |||
|
10 | ||||
|
11 | int estado_ERemota(char dir_red[],int dir_inicio,int dir_fin); | |||
|
12 | ||||
|
13 | int envia_experimento(char valor[], int base); | |||
|
14 | ||||
|
15 | int trae_monitoreo(char valor[], int base); | |||
|
16 | ||||
|
17 | int ClienteUDP(char *opcion, char *valor); | |||
|
18 | ||||
|
19 | #endif /* FUNCIONES_CONTROLERS_H_ */ |
@@ -0,0 +1,17 | |||||
|
1 | /* | |||
|
2 | * Mensajes.h | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #ifndef MENSAJES_H_ | |||
|
9 | #define MENSAJES_H_ | |||
|
10 | ||||
|
11 | void LOG_SERVIDOR(char *mensaje); | |||
|
12 | void LOG_CLIENTE(char *mensaje); | |||
|
13 | void ERROR_FATAL(char *mensaje); | |||
|
14 | void ERROR(char *mensaje); | |||
|
15 | ||||
|
16 | ||||
|
17 | #endif /* MENSAJES_H_ */ |
@@ -0,0 +1,39 | |||||
|
1 | /* | |||
|
2 | * Mensajes.c | |||
|
3 | * | |||
|
4 | * Created on: Nov 12, 2009 | |||
|
5 | * Author: Jose Francisco Quenta | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #include <stdio.h> | |||
|
9 | #include <stdlib.h> | |||
|
10 | ||||
|
11 | /* | |||
|
12 | * Imprime mensajes del servidor | |||
|
13 | */ | |||
|
14 | void LOG_SERVIDOR(char *mensaje){ | |||
|
15 | printf("SERVIDOR: %s\n",mensaje); | |||
|
16 | } | |||
|
17 | ||||
|
18 | /* | |||
|
19 | * Imprime mensajes del cliente | |||
|
20 | */ | |||
|
21 | void LOG_CLIENTE(char *mensaje){ | |||
|
22 | printf("CLIENTE: %s\n",mensaje); | |||
|
23 | } | |||
|
24 | ||||
|
25 | /* | |||
|
26 | * Error no fatal, permite la continuación del programa | |||
|
27 | */ | |||
|
28 | void ERROR(char *mensaje){ | |||
|
29 | fprintf(stderr, "ERROR. %s\n", mensaje); | |||
|
30 | } | |||
|
31 | ||||
|
32 | /* | |||
|
33 | * Error fatal, aborta la ejecución del programa con código de salida de error | |||
|
34 | */ | |||
|
35 | void ERROR_FATAL(char *mensaje){ | |||
|
36 | fprintf(stderr, "ERROR FATAL. %s\n", mensaje); | |||
|
37 | exit(EXIT_FAILURE); | |||
|
38 | } | |||
|
39 |
@@ -0,0 +1,19 | |||||
|
1 | /* | |||
|
2 | * Prueba_UDP.c | |||
|
3 | * | |||
|
4 | * Created on: Nov 19, 2009 | |||
|
5 | * Author: redes | |||
|
6 | */ | |||
|
7 | ||||
|
8 | #include <stdio.h> | |||
|
9 | #include <stdlib.h> | |||
|
10 | ||||
|
11 | #include "./Librerias/Mensajes.h" | |||
|
12 | #include "./Librerias/Funciones_ControlER.h" | |||
|
13 | ||||
|
14 | int main(int argc, char *argv[]){ | |||
|
15 | ||||
|
16 | ClienteUDP(argv[1],argv[2]); | |||
|
17 | ||||
|
18 | return 0; | |||
|
19 | } |
@@ -0,0 +1,31 | |||||
|
1 | import library | |||
|
2 | ||||
|
3 | class ABSClient: | |||
|
4 | ||||
|
5 | def __init__(self,ipSource, ipDestino, portDestino): | |||
|
6 | ||||
|
7 | self.ipSource = ipSource | |||
|
8 | self.ipDestino = ipDestino | |||
|
9 | self.portDestino = portDestino | |||
|
10 | ||||
|
11 | self.createObjects() | |||
|
12 | ||||
|
13 | def createObjects(self): | |||
|
14 | ||||
|
15 | self.commObj = library.UDPComm(self.ipSource, self.ipDestino, self.portDestino) | |||
|
16 | ||||
|
17 | def sendFile(self, filename): | |||
|
18 | ||||
|
19 | fp = open(filename) | |||
|
20 | data = fp.read() | |||
|
21 | ||||
|
22 | commObj.sendTxRxCommand(cmd="SND", data=data, nbytes=10) | |||
|
23 | ||||
|
24 | def changeBeam(self, newBeam): | |||
|
25 | ||||
|
26 | commObj.sendTxRxCommand(cmd="CHG", data=newBeam, nbytes=10) | |||
|
27 | ||||
|
28 | def getStatus(self): | |||
|
29 | ||||
|
30 | commObj.sendTxRxCommand(cmd="ANST", data="ABS", nbytes=10) | |||
|
31 | No newline at end of file |
@@ -0,0 +1,80 | |||||
|
1 | import socket | |||
|
2 | ||||
|
3 | class UDPComm: | |||
|
4 | ||||
|
5 | __HEADER = "ABS" | |||
|
6 | ||||
|
7 | def __init__(self, ipSource, ipDestino, portDestino=1520, asServer=False): | |||
|
8 | ||||
|
9 | self.ipSource = ipSource | |||
|
10 | self.ipDestino = ipDestino | |||
|
11 | self.portDestino = portDestino | |||
|
12 | ||||
|
13 | self.openSocket(asServer) | |||
|
14 | ||||
|
15 | def openSocket(self, asServer): | |||
|
16 | ||||
|
17 | self.socket_c = socket.socket() | |||
|
18 | self.socket_c.connect((self.ipDestino, self.portDestino)) | |||
|
19 | ||||
|
20 | if asServer: | |||
|
21 | self.configAsServer() | |||
|
22 | else: | |||
|
23 | self.configAsClient() | |||
|
24 | ||||
|
25 | def configAsClient(self): | |||
|
26 | ||||
|
27 | #Configurar broadcast | |||
|
28 | pass | |||
|
29 | ||||
|
30 | def configAsServer(self): | |||
|
31 | ||||
|
32 | pass | |||
|
33 | ||||
|
34 | def waitRequest(self, nbytes): | |||
|
35 | ||||
|
36 | trama_rx = self.socket_c.recv(nbytes) | |||
|
37 | ipSource, ipDestino, cmd, data = self.__getTrama(trama_rx) | |||
|
38 | ||||
|
39 | return ipSource, ipDestino, cmd, data | |||
|
40 | ||||
|
41 | def sendTxRxCommand(self, cmd, data, nbytes): | |||
|
42 | ||||
|
43 | self.sendRequest(cmd, data) | |||
|
44 | ||||
|
45 | time.sleep(1) | |||
|
46 | ||||
|
47 | ipSource_rx, ipDestino_rx, cmd_rx, data_rx = self.getRpta(nbytes) | |||
|
48 | ||||
|
49 | if not(self.ipSource == ipDestino_rx): | |||
|
50 | print "Error" | |||
|
51 | ||||
|
52 | return data_rx | |||
|
53 | ||||
|
54 | def sendRequest(self, cmd, data): | |||
|
55 | ||||
|
56 | trama_tx = self.__HEADER + str(self.ipSource) + str(self.ipDestino) + str(cmd) + str(data) | |||
|
57 | self.socket_c.send(trama_tx) | |||
|
58 | ||||
|
59 | def getRpta(self, nbytes): | |||
|
60 | ||||
|
61 | trama_rx = self.socket_c.recv(nbytes) | |||
|
62 | ipSource, ipDestino, cmd, data = self.__getTrama(trama_rx) | |||
|
63 | ||||
|
64 | return ipSource, ipDestino, cmd, data | |||
|
65 | ||||
|
66 | def __getTrama(self, trama): | |||
|
67 | ||||
|
68 | ipSource = trama[5:15] | |||
|
69 | ipDestino = trama[15:24] | |||
|
70 | cmd = trama[24:30] | |||
|
71 | data = trama[30:-1] | |||
|
72 | ||||
|
73 | return ipSource, ipDestino, cmd, data | |||
|
74 | ||||
|
75 | class FTPComm: | |||
|
76 | ||||
|
77 | def __init__(self): | |||
|
78 | pass | |||
|
79 | ||||
|
80 | No newline at end of file |
@@ -0,0 +1,50 | |||||
|
1 | import library | |||
|
2 | ||||
|
3 | class ABSServer: | |||
|
4 | ||||
|
5 | def __init__(self,ipSource, ipDestino, portDestino, ipDestino2, portDestino2, ftpPortDestino): | |||
|
6 | ||||
|
7 | self.ipSource = ipSource | |||
|
8 | self.ipDestino = ipDestino | |||
|
9 | self.portDestino = portDestino | |||
|
10 | ||||
|
11 | self.ipDestino2 = ipDestino2 | |||
|
12 | self.portDestino2 = portDestino2 | |||
|
13 | ||||
|
14 | self.ftpPortDestino = ftpPortDestino | |||
|
15 | ||||
|
16 | self.createObjects() | |||
|
17 | ||||
|
18 | def createObjects(self): | |||
|
19 | asServer = True | |||
|
20 | self.commServerObj = library.UDPComm(self.ipSource, self.ipDestino, self.portDestino, asServer) | |||
|
21 | self.commClientObj = library.UDPComm(self.ipSource, self.ipDestino2, self.portDestino2) | |||
|
22 | self.ftpCommObj = library.FTPComm(self.ipSource, self.ipDestino, self.ftpPortDestino) | |||
|
23 | ||||
|
24 | def waitRequest(self): | |||
|
25 | ||||
|
26 | ipSource, ipDestino, cmd, data = library.waitRequest() | |||
|
27 | ||||
|
28 | if cmd == "SND": | |||
|
29 | self.sendFile() | |||
|
30 | ||||
|
31 | if cmd == "CHG": | |||
|
32 | self.changeBeam() | |||
|
33 | ||||
|
34 | if cmd == "ANST": | |||
|
35 | self.getStatus() | |||
|
36 | ||||
|
37 | ||||
|
38 | def sendFile(self): | |||
|
39 | ||||
|
40 | self.ftpCommObj.sendFile(filename) | |||
|
41 | rpta = self.commClientObj.sendTxRxCommand(cmd='CARGA', data=filename, nbytes=1) | |||
|
42 | ||||
|
43 | ||||
|
44 | def changeBeam(self): | |||
|
45 | ||||
|
46 | rpta = self.commClientObj.sendTxRxCommand(cmd='CAMBIA', data="0", nbytes=1) | |||
|
47 | ||||
|
48 | def getStatus(self): | |||
|
49 | ||||
|
50 | rpta = self.commClientObj.sendTxRxCommand(cmd='CHEQUEO', data="0", nbytes=1) No newline at end of file |
1 | NO CONTENT: new file 10644 |
|
NO CONTENT: new file 10644 |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now