Commit 27e97cca authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

import binn serialization format

parent 2d4375ca
Loading
Loading
Loading
Loading

include/lib/binn.h

0 → 100644
+923 −0

File added.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,11 @@ ifeq (${prototest_arduinojson}, 1)
	COMMON_FLAGS += -DPROTOTEST_ARDUINOJSON
endif

ifeq (${prototest_binn}, 1)
	COMMON_FLAGS += -DPROTOTEST_BINN
	CXX_TARGETS += src/lib/binn.cc
endif

ifeq (${prototest_capnproto_c}, 1)
	COMMON_FLAGS += -DPROTOTEST_CAPNPROTO_C
	CXX_TARGETS += src/app/prototest/capnp_c_bench.capnp.cc
+3 −14
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@
#ifdef PROTOTEST_ARDUINOJSON
#include "lib/ArduinoJson.h"
#endif
#ifdef PROTOTEST_BINN
#include "lib/binn.h"
#endif
#ifdef PROTOTEST_CAPNPROTO_C
#include <capnp_c.h>
#include "capnp_c_bench.capnp.h"
@@ -43,20 +46,6 @@
#include "prototest_global.cc.inc"
#endif

// TODOs
//
// Code -> JSON
// Code -> XDR
// Code -> MsgPack
// Code -> ProtoBuf
// Code -> CBOR
//
// JSON -> Code/Data
// XDR -> Code/Data
// MsgPack -> Code/Data
// ProtoBuf -> Code/Data
// CBOR -> Code/Data

void loop(void)
{
	//static uint16_t ts = 0;

src/lib/binn.cc

0 → 100644
+3372 −0

File added.

Preview size limit exceeded, changes collapsed.