Commit Graph

12 Commits

Author SHA1 Message Date
Achim Kraus
16d3764191 Support zephyr.
Add initial support for zephyr.
Mutex is currently not supported, nor used.

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
2022-07-08 14:51:05 +02:00
Achim Kraus
cde751a7ec dtls.c, netq.c: consider 32bit time overflow.
Fixes issue: #125

Signed-off-by: Achim Kraus <achim.kraus@bosch.io>
2022-03-30 13:44:40 +02:00
Olaf Bergmann
84f1f4e3ca dtls_debug.c: removed pathologic use of NDEBUG
Change-Id: I4005b671fce0e27e028b6bc1d109e1a2bac3d88f
2018-04-13 11:13:20 +02:00
Olaf Bergmann
e2da1e159d RIOT: include memarray.h
Removal of the MEMARRAY code from riot-boards.h now requires
including the memarray header in every file where memarray_init()
and memarray_alloc() are used.

Change-Id: I96f881c540da098174561fac6533d05b127ca00f
2018-04-12 12:02:56 +02:00
Raul Fuentes
b3ca285c3f RIOT: Updating initialization for memarray blocks
Signed-off-by: Raul Fuentes <ra.fuentes.sam@gmail.com>
Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
2018-04-11 12:09:01 +02:00
Olaf Bergmann
9c51d136a1 riot-boards.h: helper macro for memarray initialization
The pre-processor macro MEMARRAY helps declaring and initializing the
buffer and memarray_t structure that are required by memarray_init().

Change-Id: I9f9732881469d7163c5710b3ffd0e46d86a9fb66
2018-03-06 12:25:22 +01:00
Olaf Bergmann
de4b5fd365 RIOT: fix memarray use
This change fixes the invocation of the MEMARRAY macro and
memarray_init() to conform with the proposed API in [1].

[1] https://github.com/RIOT-OS/RIOT/pull/7651/

Change-Id: Iaede8ac17dfef758e54cd4072d58212c64ca4b08
2018-03-02 17:17:44 +01:00
Raul Fuentes
ec9654c307 netq.[ch]: Support for RIOT OS (and its static memory allocator)
Change-Id: I628f8092e5c18a63340fc113d3548b8e706c7a2d
Signed-off-by: Raul Fuentes <ra.fuentes.sam@gmail.com>
2018-02-16 10:27:27 +01:00
Gaëtan Harter
f4a0d5ab37 netq: netq_insert_node: error when re-adding a node.
Detect when adding an already present node.

Change-Id: I38b1540141ce3fbe739923584d2b80746af1e319
Signed-off-by: Gaëtan Harter <gaetan.harter@inria.fr>
2017-02-28 08:35:58 -04:00
Gaëtan Harter
c9adbab655 tinydtls.h: include dtls_config.h in tinydtls.h
Fixes dtls_config.h not visible in headers
Include dtls_config.h in tinydtls.h and include tinydtls.h in all necessary
headers.

Remaining headers do not use 'ifdef', but they may require it too.

Change-Id: I39c86dffc8bbc8bd7551e74386994f92f49d00ec
Signed-off-by: Gaëtan Harter <gaetan.harter@inria.fr>
2017-02-27 18:05:10 +01:00
Olaf Bergmann
f623c23ba4 renamed debug.[hc] to dtls_debug.[hc] to avoid naming conflicts 2016-03-08 12:47:11 +01:00
Olaf Bergmann
e1388b3980 New initial commit 2016-02-02 18:39:21 +01:00