From 704fef911f25e9537e5f83582eea9808d9d9fe63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Wed, 15 Feb 2023 14:00:04 +0100 Subject: [PATCH] - memory pool area flags simplified --- dynmem.c | 6 +++--- msg_queue.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dynmem.c b/dynmem.c index 8fb0464..ef30511 100644 --- a/dynmem.c +++ b/dynmem.c @@ -2,9 +2,9 @@ #include "global_state.h" #include "utils.h" -#if !defined(ETHLIB_MEMORY_POOL_ATTRIBUTES) || (ETHLIB_MEMORY_POOL_ATTRIBUTES == none) +#if !defined(ETHLIB_MEMORY_POOL_ATTRIBUTES) static uint8_t sDynMemPool[ETHLIB_MEMORY_POOL_TOTAL_SIZE]; -#elif +#else static uint8_t sDynMemPool[ETHLIB_MEMORY_POOL_TOTAL_SIZE] __attribute__((ETHLIB_MEMORY_POOL_ATTRIBUTES)); #endif @@ -19,4 +19,4 @@ void * dynmem_alloc_(uint32_t size) { void dynmem_free_(void * ptr) { mp_free(E.mp, ptr); -} \ No newline at end of file +} diff --git a/msg_queue.h b/msg_queue.h index fbeb38c..448db26 100644 --- a/msg_queue.h +++ b/msg_queue.h @@ -1,6 +1,7 @@ #ifndef ETHERLIB_MSG_QUEUE_H #define ETHERLIB_MSG_QUEUE_H +#include #include #include "packet.h"