arduino-esp32/cores/esp32
Rodrigo Garcia 58b9f079d2
HardwareSerial Available For Write (#9319)
* feat(uart): setBufferSize 

It makes sure that setting TX buffer size will match availableForWrite() response. It also sets the buffer to the minimum instead of doing nothing and returning an error.

For RX Buffer, it sets the minimum and also don't return an error.

This makes the APIs better and easy to understand its results.

* feat: sets TX buffer 

This will allow to set TX buffer to a minimum with no error message.
It also makes it works as in the Arduino API specification that is to return the buffer available space. In ESP32 case it will be the minmum the HW TX FIFO size of 128 bytes.

* feat: adjust availableForWrite

This change will make sure that if no TX Ringbuffer is used, it will return the UART FIFO available space. Otherwise, it will return the Ringbuffer available space, as defined in the Arduino especification.
2024-03-05 10:53:14 +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 Remove -Wextra warnings (#6782) 2022-05-27 12:39:00 +03:00
Arduino.h Add support for the Arduino Nano ESP32 on 3.x branch (#8909) 2023-11-29 12:43:59 +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 Rework cbuf to use FreeRTOS Ringbuffer (#7860) 2024-02-07 15:43:06 +02:00
cbuf.h Rework cbuf to use FreeRTOS Ringbuffer (#7860) 2024-02-07 15:43:06 +02:00
chip-debug-report.cpp Add support for the Arduino Nano ESP32 on 3.x branch (#8909) 2023-11-29 12:43:59 +02:00
chip-debug-report.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
Client.h Remove extra connects from Client.h (#3191) 2019-09-09 09:36:22 +03:00
Esp.cpp Fix ESP32-Solo WDT on HTTP OTA update (#5426) 2024-02-07 15:49:01 +02:00
Esp.h Fixes EspClass::deepSleep(64 bits) (#9077) 2024-01-08 14:00:04 +02:00
esp32-hal-adc.c Fix ADC detach bus calibration handle error when not existing. (#8932) 2023-11-29 12:05:30 +02:00
esp32-hal-adc.h Analog Continuous mode API (#8715) 2023-10-06 13:47:08 +03:00
esp32-hal-bt.c Bluetooth-classic: release BLE memory when BT classic only is requested (#8051) 2023-11-29 12:44:23 +02:00
esp32-hal-bt.h Bluetooth-classic: release BLE memory when BT classic only is requested (#8051) 2023-11-29 12:44:23 +02:00
esp32-hal-cpu.c Add 120Mhz cpu frequency option to setCpuFrequencyMhz() (#8956) 2023-12-05 10:59:12 +02:00
esp32-hal-cpu.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-dac.c Extend bus types and structure for Peripheral Manager (#8888) 2023-11-25 21:26:03 +02:00
esp32-hal-dac.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-gpio.c Improve Log Messages in GPIO HAL (#9011) 2023-12-19 22:12:40 +02:00
esp32-hal-gpio.h feat: add functions to enable/disable GPIOs interrupt (#9025) 2023-12-19 22:11:48 +02:00
esp32-hal-i2c-slave.c Extend bus types and structure for Peripheral Manager (#8888) 2023-11-25 21:26:03 +02:00
esp32-hal-i2c-slave.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-i2c.c fix(i2c): Moved i2c pins out of CONFIG_DISABLE_HAL_LOCKS (#9164) 2024-01-23 14:10:43 +02:00
esp32-hal-i2c.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-ledc.c feature(ledc): Add output invert option for LEDC pin + minor fixes (#9257) 2024-02-21 16:15:06 +02:00
esp32-hal-ledc.h feature(ledc): Add output invert option for LEDC pin + minor fixes (#9257) 2024-02-21 16:15:06 +02:00
esp32-hal-log.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-matrix.c Add ESP32-C2 support (#8881) 2023-11-21 15:16:47 +02:00
esp32-hal-matrix.h Revert "Update licenses" 2021-03-11 12:11:53 +02:00
esp32-hal-misc.c Add ESP32-C2 support (#8881) 2023-11-21 15:16:47 +02:00
esp32-hal-periman.c SPI - Allow detaching of some SPI pins without stopping SPI (#9117) 2024-01-19 17:21:19 +02:00
esp32-hal-periman.h SPI - Allow detaching of some SPI pins without stopping SPI (#9117) 2024-01-19 17:21:19 +02:00
esp32-hal-psram.c ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03: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-rgb-led.c Add ESP32-C2 support (#8881) 2023-11-21 15:16:47 +02:00
esp32-hal-rgb-led.h Improve RGB driver in pull #6808; solves #6968 (#6979) 2022-07-18 15:34:01 +02:00
esp32-hal-rmt.c Adds RMT End of Transmission Level API (#9238) 2024-02-14 15:26:51 +02:00
esp32-hal-rmt.h Adds RMT End of Transmission Level API (#9238) 2024-02-14 15:26:51 +02:00
esp32-hal-sigmadelta.c Fix(sigmaDelta): fixes sigmaDeltaAttach() when another peripheral is already attached (#9268) 2024-02-21 16:24:59 +02:00
esp32-hal-sigmadelta.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-spi.c SPI - Allow detaching of some SPI pins without stopping SPI (#9117) 2024-01-19 17:21:19 +02:00
esp32-hal-spi.h SPI (fix): Adds SPI 3 to the ESP32-S2 and adds comments about it (#9216) 2024-02-07 14:43:54 +02: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 ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-timer.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-tinyusb.c Make USBHIDKeyboard work at boot (#6964) 2023-11-30 20:53:25 +02:00
esp32-hal-tinyusb.h Make USBHIDKeyboard work at boot (#6964) 2023-11-30 20:53:25 +02:00
esp32-hal-touch.c Extend bus types and structure for Peripheral Manager (#8888) 2023-11-25 21:26:03 +02:00
esp32-hal-touch.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
esp32-hal-uart.c HardwareSerial Available For Write (#9319) 2024-03-05 10:53:14 +02:00
esp32-hal-uart.h UART: fixes begin() after a previous begin() :: deleting previous RX/TX buffers and its data (#9095) 2024-01-16 15:56:57 +02:00
esp32-hal.h fix: pin_remap: make periman APIs private and non-remapped (#8940) 2023-11-29 16:46:03 +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 ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
extra_attr.h Extend bus types and structure for Peripheral Manager (#8888) 2023-11-25 21:26:03 +02: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 ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +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 Add support for the Arduino Nano ESP32 on 3.x branch (#8909) 2023-11-29 12:43:59 +02:00
HardwareI2C.h Fix ambiguous for TwoWire::requestFrom() methods and align API with Arduino.cc (#8817) 2024-01-31 12:50:35 +02:00
HardwareSerial.cpp HardwareSerial Available For Write (#9319) 2024-03-05 10:53:14 +02:00
HardwareSerial.h UART: fixes begin() after a previous begin() :: deleting previous RX/TX buffers and its data (#9095) 2024-01-16 15:56:57 +02:00
HashBuilder.h change(MD5Builder): Const-correctness. (#9104) 2024-01-19 17:21:50 +02:00
HEXBuilder.cpp Web server simplifications and handers (#7429) 2024-01-16 15:49:46 +02:00
HEXBuilder.h Web server simplifications and handers (#7429) 2024-01-16 15:49:46 +02:00
HWCDC.cpp fixes default 100ms delay with HWCDC write() is CDC is not connected (#9307) 2024-02-29 08:40:28 +02:00
HWCDC.h fixes default 100ms delay with HWCDC write() is CDC is not connected (#9307) 2024-02-29 08:40:28 +02:00
io_pin_remap.h feature(ledc): Add output invert option for LEDC pin + minor fixes (#9257) 2024-02-21 16:15:06 +02:00
IPAddress.cpp This is a continuation on the topic of adding IPv6 Support to ESP32 Arduino (#9016) 2024-01-15 15:24:34 +02:00
IPAddress.h This is a continuation on the topic of adding IPv6 Support to ESP32 Arduino (#9016) 2024-01-15 15:24:34 +02:00
main.cpp Add support for the Arduino Nano ESP32 on 3.x branch (#8909) 2023-11-29 12:43:59 +02:00
MD5Builder.cpp change(MD5Builder): Const-correctness. (#9104) 2024-01-19 17:21:50 +02:00
MD5Builder.h change(MD5Builder): Const-correctness. (#9104) 2024-01-19 17:21:50 +02:00
pgmspace.h Fix issue 4095 (#4503) 2020-11-08 04:55:59 +02:00
Print.cpp Add printf method with FlashStringHelper argument (#8677) 2023-10-06 13:56:56 +03:00
Print.h Add printf method with FlashStringHelper argument (#8677) 2023-10-06 13:56:56 +03: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
SHA1Builder.cpp change(MD5Builder): Const-correctness. (#9104) 2024-01-19 17:21:50 +02:00
SHA1Builder.h change(MD5Builder): Const-correctness. (#9104) 2024-01-19 17:21:50 +02:00
stdlib_noniso.c Removes a few Warnings and fixes Math rand() to work like Arduino mainstream (#7613) 2022-12-21 18:48:10 +02:00
stdlib_noniso.h Extends String to print 64-bit integers (#6768) 2022-05-18 11:24:03 +03: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 This is a continuation on the topic of adding IPv6 Support to ESP32 Arduino (#9016) 2024-01-15 15:24:34 +02:00
Tone.cpp change(esp32): Added clearing of queue with unTone() (#9055) 2024-01-08 14:59:58 +02:00
Udp.h Add virtual beginMulticast(...) stub to UDP class (#4061) 2020-11-02 20:26:50 +02:00
USB.cpp Add support for the Arduino Nano ESP32 on 3.x branch (#8909) 2023-11-29 12:43:59 +02:00
USB.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
USBCDC.cpp Enable USB Serial only if selected (#9294) 2024-02-27 17:32:19 +02:00
USBCDC.h Enable USB Serial only if selected (#9294) 2024-02-27 17:32:19 +02:00
USBMSC.cpp ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
USBMSC.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +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 ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
wiring_shift.c Trailing spaces (#3738) 2020-11-02 22:11:26 +02:00
WMath.cpp ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
WString.cpp fix(core): fixed String::lastIndexOf bug (#9003) 2023-12-20 16:54:04 +02:00
WString.h Add overloads to support __FlashStringHelper like ESP8266 has them. (#8111) 2023-05-03 20:28:18 +03:00