arduino-esp32/cores/esp32
Rodrigo Garcia 0ea485e518
Touch Sensor IDF Refactoring (#6194)
Summary

Touch Sensor refactoring to be based on IDF 4.4.
Adds support to ESP32S2 and future ESP32S3.

Adds some new APIs:

For all chips:

void touchAttachInterruptArg(uint8_t pin, void (*userFunc)(void*), void *arg, uint32_t threshold);
This function allows the user to add and pass a void* parameter to the ISR user callback.

void touchDetachInterrupt(uint8_t pin);
This function detaches ISR call back for the touch pad pin.

Only ESP32 chip

void touchInterruptSetThresholdDirection(bool mustbeLower);
This function allows the user to set if the ISR callback will be activated when the touch sensor readings are lower or higher than the threshold defined. See example TouchButton.ino.

Only ESP32-S2 and ESP32-S3 chips

bool touchInterruptGetLastStatus(uint8_t pin);
This function reports if the touch pad pin is touched or untouched. It can be used with ISR to identify when it is touched and untouched (released). See example TouchButtonV2.ino.

Impact

None. ll original APIs and examples now run on ESP32 and ESP32-S2.

Related links

Fix #6095
Fix #6034
Fix #5799
Fix #5745
Fix #5527
Fix #5493
Fix #4321
Fix #4044
Fix #2722
Fix #2625
2022-02-03 19:06:12 +02: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 Fix the execute bit of some files. (#5986) 2021-12-14 14:24:44 +02:00
Arduino.h Allows user to bypass PSRAM test and boot faster with WROVER (#6135) 2022-01-17 14:47:08 +02:00
base64.cpp Base64::encode : const correctness / String by reference passing (#3314) 2019-10-02 14:29:24 +03:00
base64.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
binary.h initial import 2016-10-06 07:09:44 -06:00
cbuf.cpp Fix cbuf not being able to hold the full length 2017-01-24 17:57:44 +02:00
cbuf.h cbuf: allow inheritance (#5883) 2021-11-18 14:25:04 +02:00
Client.h Remove extra connects from Client.h (#3191) 2019-09-09 09:36:22 +03:00
Esp.cpp Update ESP.getChipModel() to support ESP32-S2 (#5598) 2021-10-01 14:37:17 +03:00
Esp.h Use cpu_hal_get_cycle_count for all chips 2021-04-19 14:25:09 +03:00
esp32-hal-adc.c analogRead() now return value according to value set in analogReadResulotion() (#5776) 2021-10-24 13:01:05 +03:00
esp32-hal-adc.h Fix pin attenuation being overwritten (#5399) 2021-07-16 17:34:25 +03:00
esp32-hal-bt.c Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-bt.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-cpu.c Initial Esp32c3 Support (#5060) 2021-04-14 18:10:05 +03:00
esp32-hal-cpu.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-dac.c Implement DAC based on ESP-IDF API (#5959) 2021-12-14 21:10:30 +02:00
esp32-hal-dac.h Implement DAC based on ESP-IDF API (#5959) 2021-12-14 21:10:30 +02:00
esp32-hal-gpio.c add GPIO defines for C3 (#6005) 2021-12-22 14:36:54 +02:00
esp32-hal-gpio.h Removed ProS2 and added TinyS2 to boards.txt (#5037) 2021-04-15 14:31:41 +03:00
esp32-hal-i2c-slave.c Fix I2C Slave Compile (#6108) 2022-01-17 16:29:50 +02:00
esp32-hal-i2c-slave.h Fix the execute bit of some files. (#5986) 2021-12-14 14:24:44 +02:00
esp32-hal-i2c.c Fix I2C clock stretching issue with ESP32 (#5910) 2021-11-19 18:43:59 +02:00
esp32-hal-i2c.h Implement Thread-Safe I2C based on ESP-IDF API (#5683) 2021-10-01 17:34:20 +03:00
esp32-hal-ledc.c Fixing interrupts in LEDC (#6160) 2022-01-20 13:09:25 +02:00
esp32-hal-ledc.h Added method to change the ledc PWM frequency programmatically (#5003) 2021-04-17 02:06:58 +03:00
esp32-hal-log.h Allow use of log_x() in if (#5844) 2021-11-04 14:25:44 +02:00
esp32-hal-matrix.c Initial Esp32c3 Support (#5060) 2021-04-14 18:10:05 +03:00
esp32-hal-matrix.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-misc.c esp32s2 temp sensor (#5044) 2021-04-15 14:32:03 +03:00
esp32-hal-psram.c Allows user to bypass PSRAM test and boot faster with WROVER (#6135) 2022-01-17 14:47:08 +02:00
esp32-hal-psram.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
esp32-hal-rmt.c Fixes Lib Builder compiling errors (#6052) 2021-12-22 14:37:40 +02:00
esp32-hal-rmt.h RMT refactoring based on IDF (#6024) 2021-12-21 15:02:40 +02:00
esp32-hal-sigmadelta.c Implement SigmaDelta based on ESP-IDF API (#6053) 2021-12-22 16:41:52 +02:00
esp32-hal-sigmadelta.h Implement SigmaDelta based on ESP-IDF API (#6053) 2021-12-22 16:41:52 +02:00
esp32-hal-spi.c Initial Esp32c3 Support (#5060) 2021-04-14 18:10:05 +03:00
esp32-hal-spi.h Initial Esp32c3 Support (#5060) 2021-04-14 18:10:05 +03:00
esp32-hal-time.c NTP Examples: revert obsolete comment and updated Time example (#6073) 2022-01-17 16:09:58 +02:00
esp32-hal-timer.c Timer based od ESP-IDF (#5931) 2021-12-14 15:46:39 +02:00
esp32-hal-timer.h Timer based od ESP-IDF (#5931) 2021-12-14 15:46:39 +02:00
esp32-hal-tinyusb.c Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
esp32-hal-tinyusb.h Add initial support for USB MSC (#5466) 2021-08-02 15:35:13 +03:00
esp32-hal-touch.c Touch Sensor IDF Refactoring (#6194) 2022-02-03 19:06:12 +02:00
esp32-hal-touch.h Touch Sensor IDF Refactoring (#6194) 2022-02-03 19:06:12 +02:00
esp32-hal-uart.c Fixes onReceive deadlock (#6201) 2022-01-31 13:03:43 +02:00
esp32-hal-uart.h Adds UART RX IRQ Callback with onReceive() (#6134) 2022-01-17 16:04:12 +02:00
esp32-hal.h Allows user to bypass PSRAM test and boot faster with WROVER (#6135) 2022-01-17 14:47:08 +02:00
esp8266-compat.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
esp_arduino_version.h v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
firmware_msc_fat.c Calculate properly Firmware MSC fat table sectors 2021-10-13 15:39:36 +03:00
firmware_msc_fat.h Add initial support for USB MSC (#5466) 2021-08-02 15:35:13 +03:00
FirmwareMSC.cpp Calculate properly Firmware MSC fat table sectors 2021-10-13 15:39:36 +03:00
FirmwareMSC.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
FunctionalInterrupt.cpp v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
FunctionalInterrupt.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
HardwareSerial.cpp Fixes UART1 and UART2 default pins for ESP32-S3 (#6202) 2022-01-31 12:46:09 +02:00
HardwareSerial.h Adds UART RX IRQ Callback with onReceive() (#6134) 2022-01-17 16:04:12 +02:00
HWCDC.cpp IDF master 3e370c4296 2021-10-01 17:52:29 +03:00
HWCDC.h [HWCDC] Improve HW CDC Implementation (#5643) 2021-09-15 19:37:09 +03: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 Revert "Update licenses" 2021-03-11 12:11:53 +02:00
IPv6Address.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
main.cpp Adds support to change LoopTask Stack size (#6025) 2021-12-20 13:10:36 +02:00
MD5Builder.cpp Migrate MD5Builder to use esp_rom functions directly rather than rely on wrappers that can be omitted from compilation based on sdkconfig. (#5941) 2021-12-14 15:49:43 +02:00
MD5Builder.h Migrate MD5Builder to use esp_rom functions directly rather than rely on wrappers that can be omitted from compilation based on sdkconfig. (#5941) 2021-12-14 15:49:43 +02:00
pgmspace.h Fix issue 4095 (#4503) 2020-11-08 04:55:59 +02:00
Print.cpp Extend Print class for 64bit integers. (#3688) 2020-09-30 14:31:36 +03:00
Print.h Print.flush() - Arduino API conformance (#6084) 2022-01-17 16:12:22 +02:00
Printable.h initial import 2016-10-06 07:09:44 -06:00
Server.h Update IDF to aaf1239 (#1539) 2018-06-27 09:01:06 +02:00
stdlib_noniso.c Fixes String(float) issue with Stack Smashing (#6138) 2022-01-17 14:44:49 +02:00
stdlib_noniso.h Fixes String(float) issue with Stack Smashing (#6138) 2022-01-17 14:44:49 +02:00
Stream.cpp Fix double promotion in Stream::parseFloat() (#5846) 2021-11-04 14:24:28 +02:00
Stream.h Print.flush() - Arduino API conformance (#6084) 2022-01-17 16:12:22 +02: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 Add virtual beginMulticast(...) stub to UDP class (#4061) 2020-11-02 20:26:50 +02:00
USB.cpp IDF master 3e370c4296 2021-10-01 17:52:29 +03:00
USB.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
USBCDC.cpp IDF master 3e370c4296 2021-10-01 17:52:29 +03:00
USBCDC.h [USB CDC] Fix data might not be transmitted until more is written (#5652) 2021-09-15 15:23:11 +03:00
USBMSC.cpp Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
USBMSC.h Implement USB HID Device Support for ESP32-S2 (#5538) 2021-08-23 17:27:34 +03:00
WCharacter.h Wiring.h -> Arduino.h 2016-10-06 07:09:45 -06:00
wiring_private.h Do not include file that does not exist 2016-11-13 13:26:49 +02:00
wiring_pulse.c Rework pulseIn to work on ESP32-C3 2021-08-02 14:53:11 +03:00
wiring_shift.c Trailing spaces (#3738) 2020-11-02 22:11:26 +02:00
WMath.cpp Unnecessary operation removed from map() in WMath.cpp (#6218) 2022-02-01 13:26:52 +02:00
WString.cpp Resolve WString TODO (#6190) 2022-01-31 13:07:37 +02:00
WString.h Fixes String(float) issue with Stack Smashing (#6138) 2022-01-17 14:44:49 +02:00