From fcc76c35f8a3fa848d38bcd92c75d42dda4a5a6f Mon Sep 17 00:00:00 2001 From: Yevhenii Chekanskyi Date: Sat, 27 Aug 2022 17:56:41 +0300 Subject: [PATCH 1/2] Make it c++ 17 happy --- cores/arduino/Arduino.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index c06201cfe..aba9e504e 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -56,11 +56,12 @@ extern "C"{ #define NOT_A_PORT 255 #define NOT_AN_INTERRUPT 255 +// make it c++ 17 happy // undefine stdlib's abs if encountered -#ifdef abs -#undef abs -#endif // abs -#define abs(x) ((x)>0?(x):-(x)) +// #ifdef abs +// #undef abs +// #endif // abs +// #define abs(x) ((x)>0?(x):-(x)) #define interrupts() __enable_irq() #define noInterrupts() __disable_irq() From ffa4f1bfaf3530debe4828dd43a456c2239754d2 Mon Sep 17 00:00:00 2001 From: Yevhenii Chekanskyi Date: Sat, 27 Aug 2022 18:18:29 +0300 Subject: [PATCH 2/2] Create package.json --- package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 000000000..288ebb91e --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "framework-arduino-mbed", + "version": "3.1.1", + "description": "Arduino framework supporting mbed-enabled boards", + "keywords": [ + "framework", + "arduino", + "mbed" + ], + "homepage": "https://www.arduino.cc/reference/en", + "repository": { + "type": "git", + "url": "https://github.com/arduino/ArduinoCore-mbed" + } +}