Merge pull request #9947 from bergzand/pr/tinycbor/v052
tinycbor: Version bump to 0.5.2
This commit is contained in:
commit
b78f78d3a1
@ -1,6 +1,7 @@
|
|||||||
PKG_NAME=tinycbor
|
PKG_NAME=tinycbor
|
||||||
PKG_URL=https://github.com/intel/tinycbor
|
PKG_URL=https://github.com/intel/tinycbor
|
||||||
PKG_VERSION=v0.5.1
|
# Tinycbor v0.5.2
|
||||||
|
PKG_VERSION=d94ca09aa91f5b3c581527aa8bca179a82b79874
|
||||||
PKG_LICENSE=MIT
|
PKG_LICENSE=MIT
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|||||||
@ -1 +1,8 @@
|
|||||||
INCLUDES += -I$(PKGDIRBASE)/tinycbor/src
|
INCLUDES += -I$(PKGDIRBASE)/tinycbor/src
|
||||||
|
|
||||||
|
ifeq (,$(filter tinycbor_float,$(USEMODULE)))
|
||||||
|
CFLAGS += -DCBOR_NO_FLOATING_POINT
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Declare pseudomodules here to be selfcontained
|
||||||
|
PSEUDOMODULES += tinycbor_%
|
||||||
|
|||||||
@ -9,5 +9,7 @@ USEMODULE += embunit
|
|||||||
USEMODULE += fmt
|
USEMODULE += fmt
|
||||||
USEPKG += tinycbor
|
USEPKG += tinycbor
|
||||||
|
|
||||||
|
USEMODULE += tinycbor_float
|
||||||
|
|
||||||
TEST_ON_CI_WHITELIST += all
|
TEST_ON_CI_WHITELIST += all
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -52,6 +52,7 @@ const char *tests[] = {
|
|||||||
"f7", /* undefined */
|
"f7", /* undefined */
|
||||||
"f8ff", /* simple(255) */
|
"f8ff", /* simple(255) */
|
||||||
|
|
||||||
|
#ifdef MODULE_TINYCBOR_FLOAT
|
||||||
"f93c00", /* 1.0 */
|
"f93c00", /* 1.0 */
|
||||||
"f9bc00", /* -1.0 */
|
"f9bc00", /* -1.0 */
|
||||||
"f903ff", /* 6.097555160522461e-05 */
|
"f903ff", /* 6.097555160522461e-05 */
|
||||||
@ -61,6 +62,7 @@ const char *tests[] = {
|
|||||||
"fa47800000", /* 65536.0 */
|
"fa47800000", /* 65536.0 */
|
||||||
"fb3ff199999999999a", /* 1.1 */
|
"fb3ff199999999999a", /* 1.1 */
|
||||||
"f97e00", /* NaN */
|
"f97e00", /* NaN */
|
||||||
|
#endif
|
||||||
|
|
||||||
"8300810000", /* [ 0, [ 0], 0] */
|
"8300810000", /* [ 0, [ 0], 0] */
|
||||||
"a26161016162820203", /* { "a": 1, "b": [ 2, 3]} */
|
"a26161016162820203", /* { "a": 1, "b": [ 2, 3]} */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user