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() 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" + } +}