Commit Graph

8 Commits

Author SHA1 Message Date
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
109a9237db peer.c: Support for RIOT OS (and its static memory allocator)
Change-Id: I652b08b8d529b013ebe2afc1719a354d41d55785
Signed-off-by: Raul Fuentes <ra.fuentes.sam@gmail.com>
2018-02-16 10:27:27 +01:00
Olaf Bergmann
320c04b96d Fixes for compiler warnings
The code has been cleaned up to
1. provide proper prototypes for functions that take no arguments (void),
2. avoid signedness issues, and
3. provide missing cases for switch statements.

Change-Id: I9e84ddb9ef6594c374ad817330a43b22642ebb33
2017-03-01 13:32:14 +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