mirror of
https://github.com/Martin-P/OpenV2G.git
synced 2024-11-18 12:53:58 +00:00
git-svn-id: https://svn.code.sf.net/p/openv2g/code/trunk@59 d9f2db14-54d0-4bde-b00c-16405c910529
This commit is contained in:
parent
80b846a8b7
commit
e0a30233ba
5 changed files with 15 additions and 5 deletions
|
@ -594,7 +594,7 @@
|
|||
<listOptionValue builtIn="false" value=""${workspace_loc:/OpenV2G/src/service}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/OpenV2G/src/test}""/>
|
||||
</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.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"/>
|
||||
|
|
2
.project
2
.project
|
@ -27,7 +27,7 @@
|
|||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.buildLocation</key>
|
||||
<value>${workspace_loc:/OpenV2G/Debug}</value>
|
||||
<value>${workspace_loc:/OpenV2G/Release}</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>org.eclipse.cdt.make.core.contents</key>
|
||||
|
|
|
@ -32,11 +32,13 @@
|
|||
#include "main.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
#if CODE_VERSION == CODE_VERSION_EXI
|
||||
/* EXI codec only */
|
||||
/*return main_codec(argc, argv);*/
|
||||
|
||||
return main_codec(argc, argv);
|
||||
#elif CODE_VERSION == CODE_VERSION_SERVICE
|
||||
/* V2G client / service example scenario */
|
||||
return main_service(argc, argv);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -25,10 +25,18 @@
|
|||
*
|
||||
********************************************************************/
|
||||
|
||||
|
||||
#define CODE_VERSION_EXI 1
|
||||
#define CODE_VERSION_SERVICE 2
|
||||
#define CODE_VERSION CODE_VERSION_SERVICE
|
||||
|
||||
#ifndef MAIN_H_
|
||||
#define MAIN_H_
|
||||
|
||||
#if CODE_VERSION == CODE_VERSION_EXI
|
||||
int main_codec(int argc, char *argv[]);
|
||||
#elif CODE_VERSION == CODE_VERSION_SERVICE
|
||||
int main_service(int argc, char *argv[]);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#if EXI_STREAM == BYTE_ARRAY
|
||||
/* 64 kilobytes = 65 536 bytes */
|
||||
/* 1 megabyte = 1 048 576 bytes*/
|
||||
#define BUFFER_SIZE 200
|
||||
#define BUFFER_SIZE 1048576
|
||||
uint8_t bufferIn[BUFFER_SIZE];
|
||||
uint8_t bufferOut[BUFFER_SIZE];
|
||||
#endif /* EXI_STREAM == BYTE_ARRAY */
|
||||
|
|
Loading…
Reference in a new issue