arduino-esp32/cores/esp32
Angus Gratton 2f249edb8e Use std::abs for a float-compatible abs() function (#2738)
* Other Arduino cores uses a macro to redefine libc abs() to take any
  type, meaning abs(-3.3) == 3.3 not the normal libc result of 3.

* 1e4bf14a3 (#1783) replaced similar min, max macros with c++ stdlib. However
  this change includes <algorithm> after the line which defines the abs() macro.
  <algorithm> includes <cstdlib> which undefines abs() and re-defines it.

* This means abs() becomes the plain libc version again which only takes
  integers, so abs(-3.3) == 3. As reported here:
  https://github.com/espressif/esp-idf/issues/3405

This fix tries to keep in the spirit of #1783 by using libstdc++. The other
option would be to include <cstdlib> before defining the abs() macro, so it
doesn't get undef-ed again later on.
2019-05-11 11:18:39 +03:00
..
apps/sntp Update IDF to 3.2-3276a13 and esptool.py to 2.5.0 (#1878) 2018-09-21 08:39:36 +02:00
libb64 use libbase64 macro to calculate base64 length (#2007) 2018-11-19 17:01:38 +01:00
Arduino.h Use std::abs for a float-compatible abs() function (#2738) 2019-05-11 11:18:39 +03:00
base64.cpp use libbase64 macro to calculate base64 length (#2007) 2018-11-19 17:01:38 +01:00
base64.h Convert the few remaining cr/lf files to use lf for eol. (#1316) 2018-04-16 16:34:39 +02:00
binary.h
cbuf.cpp Fix cbuf not being able to hold the full length 2017-01-24 17:57:44 +02:00
cbuf.h
Client.h Add connect with timeout to Client class 2019-04-15 18:01:43 +02:00
esp32-hal-adc.c Add Arduino SAM compatible analogReadResolution and Non-Blocking ADC api 2017-03-03 15:53:20 +02:00
esp32-hal-adc.h Add Arduino SAM compatible analogReadResolution and Non-Blocking ADC api 2017-03-03 15:53:20 +02:00
esp32-hal-bt.c Update IDF to aaf1239 (#1539) 2018-06-27 09:01:06 +02:00
esp32-hal-bt.h BT define the hal methods even if BT is disabled (but return false) 2017-05-06 18:50:20 +03:00
esp32-hal-cpu.c Add API to feed the loop WDT (call from loop only) 2019-01-12 13:02:38 +01:00
esp32-hal-cpu.h Handle APB frequency change (#2250) 2019-01-09 10:07:54 +01:00
esp32-hal-dac.c
esp32-hal-dac.h Missing include gpio.h in esp32-hal-dac.h (#1512) 2018-06-19 11:33:17 +03:00
esp32-hal-gpio.c Update esp32-hal-gpio.c 2018-12-28 19:14:15 +02:00
esp32-hal-gpio.h InterruptArg should take voidFuncPtrArg as argument (#1776) 2018-09-17 23:10:13 +02:00
esp32-hal-i2c.c Hide log_v behind conditional define, reduce excessive logging (#2641) 2019-04-10 02:43:21 +02:00
esp32-hal-i2c.h Wire ReSTART fix, with others (#1717) 2018-08-14 11:51:15 +02:00
esp32-hal-ledc.c Fix LEDC channels above 8 not properly clearing 2019-04-12 17:49:44 +02:00
esp32-hal-ledc.h LEDC Driver Update 2017-01-09 18:05:30 +02:00
esp32-hal-log.h Update IDF to 3.2-3276a13 and esptool.py to 2.5.0 (#1878) 2018-09-21 08:39:36 +02:00
esp32-hal-matrix.c
esp32-hal-matrix.h
esp32-hal-misc.c Allow selecting in IDF the running core for Arduino's core tasks 2019-04-13 17:13:13 +02:00
esp32-hal-psram.c Update IDF to abea9e4c0 (#2458) 2019-02-14 16:49:30 +01:00
esp32-hal-psram.h Add Wrover Support and Option to enable SPIRAM 2018-07-03 23:03:50 +02:00
esp32-hal-rmt.c Update esp32-hal-rmt.c 2019-05-01 20:10:41 +03:00
esp32-hal-rmt.h Added rmtDeinit to header. Fixes #2585 (#2587) 2019-04-09 21:09:40 +02:00
esp32-hal-sigmadelta.c Handle APB frequency change (#2250) 2019-01-09 10:07:54 +01:00
esp32-hal-sigmadelta.h fix renamed method names for SigmaDelta 2017-01-09 21:55:37 +02:00
esp32-hal-spi.c Handle APB frequency change (#2250) 2019-01-09 10:07:54 +01:00
esp32-hal-spi.h SPI implement transaction locking 2017-02-14 04:15:38 +02:00
esp32-hal-time.c update getLocalTime(). (#2629) 2019-04-10 02:39:14 +02:00
esp32-hal-timer.c Handle APB frequency change (#2250) 2019-01-09 10:07:54 +01:00
esp32-hal-timer.h
esp32-hal-touch.c Change Touch interrupt allocator 2017-09-28 16:44:47 +08:00
esp32-hal-touch.h
esp32-hal-uart.c adding uartRxActive to expose the RX state machine status as a boolean value (#2457) 2019-03-03 15:47:24 +01:00
esp32-hal-uart.h adding uartRxActive to expose the RX state machine status as a boolean value (#2457) 2019-03-03 15:47:24 +01:00
esp32-hal.h Allow selecting in IDF the running core for Arduino's core tasks 2019-04-13 17:13:13 +02:00
esp8266-compat.h Convert the few remaining cr/lf files to use lf for eol. (#1316) 2018-04-16 16:34:39 +02:00
Esp.cpp Update ESP-IDF da2116f + esp32-camera f8f26ab + BLE b232e7f (#2194) 2018-12-15 17:38:34 +01:00
Esp.h Add MD5 computation to Esp and add request header with MD5 hash of the running sketch to HTTPUpdate (#2176) 2018-12-11 02:06:58 +01:00
FunctionalInterrupt.cpp Functional interrupt (#1728) 2018-09-17 23:13:58 +02:00
FunctionalInterrupt.h Functional interrupt (#1728) 2018-09-17 23:13:58 +02:00
HardwareSerial.cpp HardwareSerial - add changeBaudRate method (#2223) 2018-12-23 21:15:06 +02:00
HardwareSerial.h HardwareSerial - add changeBaudRate method (#2223) 2018-12-23 21:15:06 +02:00
IPAddress.cpp const correctness (#89) 2016-12-12 01:32:55 +02:00
IPAddress.h const correctness (#89) 2016-12-12 01:32:55 +02:00
IPv6Address.cpp Add initial IPv6 Support 2017-01-06 00:54:50 +02:00
IPv6Address.h Add initial IPv6 Support 2017-01-06 00:54:50 +02:00
main.cpp Allow selecting in IDF the running core for Arduino's core tasks 2019-04-13 17:13:13 +02:00
MD5Builder.cpp
MD5Builder.h
pgmspace.h std::functioanl for WFIF event + Minor fix (#1366) 2018-05-14 13:05:49 +02:00
Print.cpp correct bounds checking in Print::printf to avoid corner case of len=64 (#2204) 2018-12-16 17:09:26 +01:00
Print.h Fixes implementation of __FlashStringHelper (#183) 2017-02-08 19:57:26 +02:00
Printable.h
Server.h Update IDF to aaf1239 (#1539) 2018-06-27 09:01:06 +02:00
stdlib_noniso.c
stdlib_noniso.h
Stream.cpp Alternative Improve _uploadReadByte (#2656) 2019-04-12 12:45:35 +02:00
Stream.h Portability from ESP8266, virtual Stream member functions. (#2701) 2019-04-23 17:56:49 +03:00
StreamString.cpp StreamString SSO fix (#2736) 2019-05-11 11:16:05 +03:00
StreamString.h Convert the few remaining cr/lf files to use lf for eol. (#1316) 2018-04-16 16:34:39 +02:00
Udp.h
WCharacter.h
wiring_private.h
wiring_pulse.c Enable pulseIn() (#140) 2017-01-20 21:49:17 +02:00
wiring_shift.c fix missing the first bit in HC589 shift in (#2448) 2019-02-14 13:11:08 +01:00
WMath.cpp Unbiased random (#2468) 2019-02-18 12:18:49 +02:00
WString.cpp Copy ESP8266 String w/SSO to ESP32 repo (#2715) 2019-04-26 19:41:42 +03:00
WString.h Undo the redefinition of FPSTR from 8266 merge (#2726) 2019-04-30 16:52:14 +03:00