From 08012d944e822b80893ee797eadff2a7c20fee2b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 11 Dec 2018 11:30:19 +0100 Subject: add msp430fr5994 to ArduinoJSON and mpack embedded detection --- include/lib/ArduinoJson/Configuration.hpp | 1 + include/lib/mpack/mpack.h | 4 ++-- include/lib/mpmalloc.h | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 include/lib/mpmalloc.h diff --git a/include/lib/ArduinoJson/Configuration.hpp b/include/lib/ArduinoJson/Configuration.hpp index cba885c..0e1a4de 100644 --- a/include/lib/ArduinoJson/Configuration.hpp +++ b/include/lib/ArduinoJson/Configuration.hpp @@ -8,6 +8,7 @@ #ifndef ARDUINOJSON_EMBEDDED_MODE #if defined(ARDUINO) || defined(__IAR_SYSTEMS_ICC__) || defined(__XC) || \ defined(__ARMCC_VERSION) || defined(MULTIPASS_ARCH_msp430fr5969lp) || \ + defined(MULTIPASS_ARCH_msp430fr5994lp) || \ defined(MULTIPASS_ARCH_arduino_nano) || defined(MULTIPASS_ARCH_blinkenrocket) || \ defined(MULTIPASS_ARCH_esp8266) #define ARDUINOJSON_EMBEDDED_MODE 1 diff --git a/include/lib/mpack/mpack.h b/include/lib/mpack/mpack.h index cfadf78..b4404f3 100644 --- a/include/lib/mpack/mpack.h +++ b/include/lib/mpack/mpack.h @@ -144,7 +144,7 @@ * for debugging and in allocation helpers. */ #ifndef MPACK_STDLIB -#if defined(MULTIPASS_ARCH_msp430fr5969lp) || \ +#if defined(MULTIPASS_ARCH_msp430fr5969lp) || defined(MULTIPASS_ARCH_msp430fr5994lp) || \ defined(MULTIPASS_ARCH_arduino_nano) || defined(MULTIPASS_ARCH_blinkenrocket) || \ defined(MULTIPASS_ARCH_esp8266) #define MPACK_STDLIB 0 @@ -160,7 +160,7 @@ * reading/writing C files and makes debugging easier. */ #ifndef MPACK_STDIO -#if defined(MULTIPASS_ARCH_msp430fr5969lp) || \ +#if defined(MULTIPASS_ARCH_msp430fr5969lp) || defined(MULTIPASS_ARCH_msp430fr5994lp) || \ defined(MULTIPASS_ARCH_arduino_nano) || defined(MULTIPASS_ARCH_blinkenrocket) || \ defined(MULTIPASS_ARCH_esp8266) #define MPACK_STDIO 0 diff --git a/include/lib/mpmalloc.h b/include/lib/mpmalloc.h new file mode 100644 index 0000000..0699042 --- /dev/null +++ b/include/lib/mpmalloc.h @@ -0,0 +1,16 @@ +#ifndef MPMALLOC_H +#define MPMALLOC_H + +#ifdef __cplusplus +extern "C" { +#endif + +void* mpcalloc(size_t nmemb, size_t size); +void* mpmalloc(size_t size); +void mpfree(void* addr); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3