git-svn-id: https://svn.code.sf.net/p/openv2g/code/trunk@59 d9f2db14-54d0-4bde-b00c-16405c910529

This commit is contained in:
daniel_peintner 2012-02-07 13:17:03 +00:00
parent 80b846a8b7
commit e0a30233ba
5 changed files with 15 additions and 5 deletions

View file

@ -594,7 +594,7 @@
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/OpenV2G/src/service}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/OpenV2G/src/service}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/OpenV2G/src/test}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/OpenV2G/src/test}&quot;"/>
</option> </option>
<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.899621054" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/> <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.899621054" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" value="gnu.c.optimization.level.most" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.1251127335" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> <option id="gnu.c.compiler.option.debugging.level.1251127335" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
<option id="gnu.c.compiler.option.misc.ansi.496561434" name="Support ANSI programs (-ansi)" superClass="gnu.c.compiler.option.misc.ansi" value="true" valueType="boolean"/> <option id="gnu.c.compiler.option.misc.ansi.496561434" name="Support ANSI programs (-ansi)" superClass="gnu.c.compiler.option.misc.ansi" value="true" valueType="boolean"/>
<option id="gnu.c.compiler.option.warnings.pedantic.289278524" name="Pedantic (-pedantic)" superClass="gnu.c.compiler.option.warnings.pedantic" value="true" valueType="boolean"/> <option id="gnu.c.compiler.option.warnings.pedantic.289278524" name="Pedantic (-pedantic)" superClass="gnu.c.compiler.option.warnings.pedantic" value="true" valueType="boolean"/>

View file

@ -27,7 +27,7 @@
</dictionary> </dictionary>
<dictionary> <dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key> <key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${workspace_loc:/OpenV2G/Debug}</value> <value>${workspace_loc:/OpenV2G/Release}</value>
</dictionary> </dictionary>
<dictionary> <dictionary>
<key>org.eclipse.cdt.make.core.contents</key> <key>org.eclipse.cdt.make.core.contents</key>

View file

@ -32,11 +32,13 @@
#include "main.h" #include "main.h"
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#if CODE_VERSION == CODE_VERSION_EXI
/* EXI codec only */ /* EXI codec only */
/*return main_codec(argc, argv);*/ return main_codec(argc, argv);
#elif CODE_VERSION == CODE_VERSION_SERVICE
/* V2G client / service example scenario */ /* V2G client / service example scenario */
return main_service(argc, argv); return main_service(argc, argv);
#endif
} }

View file

@ -25,10 +25,18 @@
* *
********************************************************************/ ********************************************************************/
#define CODE_VERSION_EXI 1
#define CODE_VERSION_SERVICE 2
#define CODE_VERSION CODE_VERSION_SERVICE
#ifndef MAIN_H_ #ifndef MAIN_H_
#define MAIN_H_ #define MAIN_H_
#if CODE_VERSION == CODE_VERSION_EXI
int main_codec(int argc, char *argv[]); int main_codec(int argc, char *argv[]);
#elif CODE_VERSION == CODE_VERSION_SERVICE
int main_service(int argc, char *argv[]); int main_service(int argc, char *argv[]);
#endif
#endif #endif

View file

@ -47,7 +47,7 @@
#if EXI_STREAM == BYTE_ARRAY #if EXI_STREAM == BYTE_ARRAY
/* 64 kilobytes = 65 536 bytes */ /* 64 kilobytes = 65 536 bytes */
/* 1 megabyte = 1 048 576 bytes*/ /* 1 megabyte = 1 048 576 bytes*/
#define BUFFER_SIZE 200 #define BUFFER_SIZE 1048576
uint8_t bufferIn[BUFFER_SIZE]; uint8_t bufferIn[BUFFER_SIZE];
uint8_t bufferOut[BUFFER_SIZE]; uint8_t bufferOut[BUFFER_SIZE];
#endif /* EXI_STREAM == BYTE_ARRAY */ #endif /* EXI_STREAM == BYTE_ARRAY */