arduino-esp32/cores/esp32
Rodrigo Garcia b1b62286db
fix(uart): Sets XTAL as clock source for uart (#10087)
* fix(uart): Sets XTAL as clock source for uart

C6 and H2 have problems after returning from light sleep. The baud rate seems to be off when APB is used as clock source.

This fix solves the issue using a steady clock source.

* fix(typo): Typo and commentaries

Adds C2 in the XTAL list.

* fix(uart): adjust get/set baudrate

Fixes the functions for reading/writing UART baudrate by using IDF functions instead of HAL/LL.

* fix(uart): uses REF_TICK for ESP32/S2

* fix(uart): esp32/s2 baudrate > 1MHz

Fixes the baudrate for ESP32 and ESP32-S2 when the baud rate is higher than 1MHz.
REF_TICK is just 2MHZ and can handle up to 1MHZ baudrate.

* fix(uart): rxTimeout minimum

Default RxTimeout changed to the minimum = 1.
When TICK_REF is used as clock source, this is mandatory,

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-08-01 12:09:59 +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 refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Arduino.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
base64.cpp Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
base64.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
binary.h Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
cbuf.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
cbuf.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
chip-debug-report.cpp feat: Print chip features bitfield (#10080) 2024-07-31 21:44:13 +03:00
chip-debug-report.h ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
Client.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Esp.cpp fix(esp): Fix getFlashChipMode breaking on S3 and C3 (#9758) 2024-06-03 13:04:42 +03:00
Esp.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-adc.c Update analogContinuous function for passing pins as const and constexpr (#10044) 2024-07-22 11:59:18 +03:00
esp32-hal-adc.h Update analogContinuous function for passing pins as const and constexpr (#10044) 2024-07-22 11:59:18 +03:00
esp32-hal-bt.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-bt.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-cpu.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-cpu.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-dac.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-dac.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-gpio.c RMT Legacy Driver option (#9941) 2024-06-28 12:06:58 +03:00
esp32-hal-gpio.h fix(gpio): Add missing include for digitalPinCanOutput (#10070) 2024-07-29 12:49:45 +03:00
esp32-hal-i2c-slave.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-i2c-slave.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-i2c.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-i2c.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-ledc.c fix(ledc): Fix freeing channel if not used anymore (#10094) 2024-07-31 15:16:55 +03:00
esp32-hal-ledc.h feat(ledc): Allow attaching multiple pins to 1 channel (#10032) 2024-07-16 15:52:45 +03:00
esp32-hal-log.h fix(esp-hal-log):Provide a default TAG name for USE_ESP_IDF_LOG logging macro (#9686) 2024-05-27 16:34:40 +03:00
esp32-hal-matrix.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-matrix.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-misc.c fix(xtal): Add a way to change the XTAL frequency for SparkFun ESP32 Thing (#9844) 2024-06-13 10:26:54 +03:00
esp32-hal-periman.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-periman.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-psram.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-psram.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-rgb-led.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-rgb-led.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-rmt.c feat(rmt): Solve neopixel issue (#9906) 2024-06-20 16:33:06 -03:00
esp32-hal-rmt.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-sigmadelta.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-sigmadelta.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-spi.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-spi.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-time.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-timer.c fix(timer): Add check to avoid crashing (#10069) 2024-07-29 13:09:22 +03:00
esp32-hal-timer.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-tinyusb.c feat(usb): Support the new USB IDF API (#9761) 2024-06-03 15:45:31 +03:00
esp32-hal-tinyusb.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-touch.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-touch.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp32-hal-uart.c fix(uart): Sets XTAL as clock source for uart (#10087) 2024-08-01 12:09:59 +03:00
esp32-hal-uart.h fix(hal-uart): truncated tx/rx buffer size (uint16_t -> uint32_t) (#9554) 2024-04-29 18:14:22 +03:00
esp32-hal.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp8266-compat.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
esp_arduino_version.h Update core versions to 3.0.3 2024-07-16 21:55:50 +03:00
extra_attr.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
firmware_msc_fat.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
firmware_msc_fat.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
FirmwareMSC.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
FirmwareMSC.h Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
FunctionalInterrupt.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
FunctionalInterrupt.h Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
HardwareI2C.h Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
HardwareSerial.cpp fix(uart): Sets XTAL as clock source for uart (#10087) 2024-08-01 12:09:59 +03:00
HardwareSerial.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
HashBuilder.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
HEXBuilder.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
HEXBuilder.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
HWCDC.cpp fix(cdc): Disable SOF interrupt and CDC reset on begin() (#9628) 2024-05-15 13:58:45 +02:00
HWCDC.h fix(cdc): Disable SOF interrupt and CDC reset on begin() (#9628) 2024-05-15 13:58:45 +02:00
io_pin_remap.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
IPAddress.cpp fix(net): Fix IPv4 address construction from ip_addr_t and comparison (#9724) (#9725) 2024-05-30 14:18:46 +03:00
IPAddress.h fix(net): Add back the friend classes required for Ethernet.h to work (#9635) 2024-05-15 13:15:10 +02:00
MacAddress.cpp change(idf): Rename component example and fix compilation warnings (#9801) 2024-06-10 15:30:18 +03:00
MacAddress.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
main.cpp fix(xtal): Add a way to change the XTAL frequency for SparkFun ESP32 Thing (#9844) 2024-06-13 10:26:54 +03:00
MD5Builder.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
MD5Builder.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
pgmspace.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Print.cpp Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
Print.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Printable.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Server.h Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
SHA1Builder.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
SHA1Builder.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
stdlib_noniso.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
stdlib_noniso.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Stream.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Stream.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
StreamString.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
StreamString.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Tone.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
Udp.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
USB.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
USB.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
USBCDC.cpp fix(cdc): Disable SOF interrupt and CDC reset on begin() (#9628) 2024-05-15 13:58:45 +02:00
USBCDC.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
USBMSC.cpp feat(usbmsc): Add is_writable function to the USBMSC class. (#9569) 2024-05-13 15:10:45 +02:00
USBMSC.h feat(usbmsc): Add is_writable function to the USBMSC class. (#9569) 2024-05-13 15:10:45 +02:00
WCharacter.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
wiring_private.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
wiring_pulse.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
wiring_shift.c refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
WMath.cpp Refactor repository with pre-commit hooks (#9515) 2024-04-15 19:40:56 +03:00
WString.cpp refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00
WString.h refactor(style): Change some style options (#9526) 2024-04-19 18:16:55 +03:00