Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 Arduino v3.0.x #10411

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0a55493
IDF release/v5.1 59274ae0 (#10410)
me-no-dev Oct 2, 2024
d35d444
IDF release/v5.1 (#10446)
me-no-dev Oct 10, 2024
32d451d
Update esp-insights version (#10456)
Asc91 Oct 15, 2024
19cbe8b
IDF release/v5.1 (#10454)
me-no-dev Oct 15, 2024
3e5c6ee
fix(esp-rainmaker): update esp-rainmaker version to 1.5.0 (#10476)
Asc91 Oct 17, 2024
f450243
Merge branch 'master' into release/v3.0.x
me-no-dev Oct 17, 2024
2a1bd4c
fix(core): Update core version to 3.0.6
me-no-dev Oct 17, 2024
b12bfa3
Merge branch 'master' into release/v3.0.x
me-no-dev Oct 18, 2024
5042912
IDF release/v5.1 (#10505)
me-no-dev Oct 22, 2024
ebe34f6
Merge branch 'master' into release/v3.0.x
me-no-dev Oct 23, 2024
3bfa3e0
Update core version to 3.0.7
me-no-dev Oct 23, 2024
dc8e81d
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 4, 2024
a2952eb
fix(esptool): Bump esptool version to 4.9.dev1 on 3.0.x (#10572)
lucasssvaz Nov 5, 2024
40888ea
Merge remote-tracking branch 'espressif/master' into release/v3.0.x
lucasssvaz Nov 6, 2024
44c6f8e
change(tools): Push generated binaries to PR
github-actions[bot] Nov 6, 2024
9302d29
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 6, 2024
527fc83
IDF release/v5.1 (#10577)
me-no-dev Nov 6, 2024
c2e97a8
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 6, 2024
ae3d4e3
IDF release/v5.1 (#10600)
me-no-dev Nov 13, 2024
788326d
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 13, 2024
810c4eb
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 19, 2024
74e6f0f
fix(Zigbee): Add missing direction to report commands [3.0.X] (#10625)
P-R-O-C-H-Y Nov 20, 2024
06b11e0
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 20, 2024
fd2e31a
feat(uart): [IDF5.1] fixes HardwareSerial::updateBaudRate() using a b…
SuGlider Nov 25, 2024
5cb8b65
Merge branch 'master' into release/v3.0.x
me-no-dev Nov 28, 2024
016dd0f
IDF release/v5.1 77a3025a
me-no-dev Dec 10, 2024
88071d0
Merge branch 'master' into release/v3.0.x
me-no-dev Dec 11, 2024
8697c7e
IDF release/v5.1 77a3025a
me-no-dev Dec 12, 2024
165fa0f
Merge pull request #10705 from espressif/idf-release/v5.1
me-no-dev Dec 12, 2024
2719b4e
Merge branch 'master' into release/v3.0.x
me-no-dev Dec 14, 2024
1436f8d
Merge branch 'master' into release/v3.0.x
me-no-dev Dec 16, 2024
6222ede
IDF release/v5.1 41a885bb
me-no-dev Dec 16, 2024
3378fcf
Merge branch 'master' into release/v3.0.x
me-no-dev Dec 18, 2024
5afbb38
Merge pull request #10738 from espressif/idf-release/v5.1
me-no-dev Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cores/esp32/esp32-hal-psram.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ extern "C" {

#include "sdkconfig.h"

#ifndef BOARD_HAS_PSRAM
// Clear flags in Arduino IDE when PSRAM is disabled
#if defined(ESP32_ARDUINO_LIB_BUILDER) && !defined(BOARD_HAS_PSRAM)
#ifdef CONFIG_SPIRAM_SUPPORT
#undef CONFIG_SPIRAM_SUPPORT
#endif
Expand Down
6 changes: 5 additions & 1 deletion cores/esp32/esp32-hal-tinyusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ void deinit_usb_hal() {

esp_err_t tinyusb_driver_install(const tinyusb_config_t *config) {
init_usb_hal(config->external_phy);
if (!tusb_init()) {
tusb_rhport_init_t tinit;
memset(&tinit, 0, sizeof(tusb_rhport_init_t));
tinit.role = TUSB_ROLE_DEVICE;
tinit.speed = TUSB_SPEED_FULL;
if (!tusb_init(0, &tinit)) {
log_e("Can't initialize the TinyUSB stack.");
return ESP_FAIL;
}
Expand Down
9 changes: 7 additions & 2 deletions cores/esp32/esp32-hal-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
#include "hal/gpio_hal.h"
#include "esp_rom_gpio.h"

static int s_uart_debug_nr = 0; // UART number for debug output
static int s_uart_debug_nr = 0; // UART number for debug output
#define REF_TICK_BAUDRATE_LIMIT 250000 // this is maximum UART badrate using REF_TICK as clock source

struct uart_struct_t {

Expand Down Expand Up @@ -508,7 +509,7 @@ uart_t *uartBegin(
#if SOC_UART_SUPPORT_XTAL_CLK
uart_config.source_clk = UART_SCLK_XTAL; // valid for C2, S3, C3, C6, H2 and P4
#elif SOC_UART_SUPPORT_REF_TICK
if (baudrate <= 250000) {
if (baudrate <= REF_TICK_BAUDRATE_LIMIT) {
uart_config.source_clk = UART_SCLK_REF_TICK; // valid for ESP32, S2 - MAX supported baud rate is 250 Kbps
} else {
uart_config.source_clk = UART_SCLK_APB; // baudrate may change with the APB Frequency!
Expand Down Expand Up @@ -790,6 +791,10 @@ void uartSetBaudRate(uart_t *uart, uint32_t baud_rate) {
return;
}
UART_MUTEX_LOCK();
#if !SOC_UART_SUPPORT_XTAL_CLK
uart_sclk_t newClkSrc = baud_rate <= REF_TICK_BAUDRATE_LIMIT ? UART_SCLK_REF_TICK : UART_SCLK_APB;
uart_ll_set_sclk(UART_LL_GET_HW(uart->num), newClkSrc);
#endif
if (uart_set_baudrate(uart->num, baud_rate) == ESP_OK) {
uart->_baudrate = baud_rate;
} else {
Expand Down
2 changes: 1 addition & 1 deletion cores/esp32/esp_arduino_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {
/** Minor version number (x.X.x) */
#define ESP_ARDUINO_VERSION_MINOR 0
/** Patch version number (x.x.X) */
#define ESP_ARDUINO_VERSION_PATCH 5
#define ESP_ARDUINO_VERSION_PATCH 7

/**
* Macro to convert ARDUINO version number into an integer
Expand Down
8 changes: 5 additions & 3 deletions idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,21 @@ dependencies:
espressif/network_provisioning:
version: "~1.0.0"
espressif/esp-zboss-lib:
version: "^1.0.1"
version: "==1.6.0"
require: public
rules:
- if: "target != esp32c2"
espressif/esp-zigbee-lib:
version: "^1.0.1"
version: "==1.6.0"
require: public
rules:
- if: "target != esp32c2"
espressif/esp-dsp:
version: "^1.3.4"
rules:
- if: "target != esp32c2"
espressif/esp_rainmaker:
version: "^1.0.0"
version: "^1.5.0"
rules:
- if: "target != esp32c2"
espressif/rmaker_common:
Expand Down
2 changes: 1 addition & 1 deletion libraries/ArduinoOTA/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ArduinoOTA
version=3.0.5
version=3.0.7
author=Ivan Grokhotkov and Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables Over The Air upgrades, via wifi and espota.py UDP request/TCP download.
Expand Down
2 changes: 1 addition & 1 deletion libraries/AsyncUDP/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32 Async UDP
version=3.0.5
version=3.0.7
author=Me-No-Dev
maintainer=Me-No-Dev
sentence=Async UDP Library for ESP32
Expand Down
2 changes: 1 addition & 1 deletion libraries/BLE/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=BLE
version=3.0.5
version=3.0.7
author=Neil Kolban <[email protected]>
maintainer=Dariusz Krempa <[email protected]>
sentence=BLE functions for ESP32
Expand Down
2 changes: 1 addition & 1 deletion libraries/BluetoothSerial/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=BluetoothSerial
version=3.0.5
version=3.0.7
author=Evandro Copercini
maintainer=Evandro Copercini
sentence=Simple UART to Classical Bluetooth bridge for ESP32
Expand Down
2 changes: 1 addition & 1 deletion libraries/DNSServer/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=DNSServer
version=3.0.5
version=3.0.7
author=Kristijan Novoselić
maintainer=Kristijan Novoselić, <[email protected]>
sentence=A simple DNS server for ESP32.
Expand Down
2 changes: 1 addition & 1 deletion libraries/EEPROM/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EEPROM
version=3.0.5
version=3.0.7
author=Ivan Grokhotkov
maintainer=Paolo Becchi <[email protected]>
sentence=Enables reading and writing data a sequential, addressable FLASH storage
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP32/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 sketches examples
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP_I2S/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP_I2S
version=3.0.5
version=3.0.7
author=me-no-dev
maintainer=me-no-dev
sentence=Library for ESP I2S communication
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP_NOW/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP_NOW
version=3.0.5
version=3.0.7
author=me-no-dev
maintainer=P-R-O-C-H-Y
sentence=Library for ESP_NOW
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP_SR/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP_SR
version=3.0.5
version=3.0.7
author=me-no-dev
maintainer=me-no-dev
sentence=Library for ESP Sound Recognition
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESPmDNS/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESPmDNS
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 mDNS Library
Expand Down
2 changes: 1 addition & 1 deletion libraries/Ethernet/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Ethernet
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables network connection (local and Internet) using the ESP32 Ethernet.
Expand Down
2 changes: 1 addition & 1 deletion libraries/FFat/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=FFat
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov, Larry Bernstone
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 FAT on Flash File System
Expand Down
2 changes: 1 addition & 1 deletion libraries/FS/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=FS
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 File System
Expand Down
2 changes: 1 addition & 1 deletion libraries/HTTPClient/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HTTPClient
version=3.0.5
version=3.0.7
author=Markus Sattler
maintainer=Markus Sattler
sentence=HTTP Client for ESP32
Expand Down
2 changes: 1 addition & 1 deletion libraries/HTTPUpdate/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HTTPUpdate
version=3.0.5
version=3.0.7
author=Markus Sattler
maintainer=Markus Sattler
sentence=Http Update for ESP32
Expand Down
2 changes: 1 addition & 1 deletion libraries/HTTPUpdateServer/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HTTPUpdateServer
version=3.0.5
version=3.0.7
author=Hristo Kapanakov
maintainer=
sentence=Simple HTTP Update server based on the WebServer
Expand Down
2 changes: 1 addition & 1 deletion libraries/Insights/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP Insights
version=3.0.5
version=3.0.7
author=Sanket Wadekar <[email protected]>
maintainer=Sanket Wadekar <[email protected]>
sentence=ESP Insights
Expand Down
2 changes: 1 addition & 1 deletion libraries/LittleFS/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LittleFS
version=3.0.5
version=3.0.7
author=
maintainer=
sentence=LittleFS for esp32
Expand Down
2 changes: 1 addition & 1 deletion libraries/NetBIOS/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NetBIOS
version=3.0.5
version=3.0.7
[email protected]
maintainer=Hristo Gochkov<[email protected]>
sentence=Enables NBNS (NetBIOS) name resolution.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Network/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Networking
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=General network management library.
Expand Down
2 changes: 1 addition & 1 deletion libraries/NetworkClientSecure/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NetworkClientSecure
version=3.0.5
version=3.0.7
author=Evandro Luis Copercini
maintainer=Github Community
sentence=Enables secure network connection (local and Internet) using the ESP32 built-in WiFi.
Expand Down
2 changes: 1 addition & 1 deletion libraries/OpenThread/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=OpenThread
version=3.0.5
version=3.0.7
author=Rodrigo Garcia | GitHub @SuGlider
maintainer=Rodrigo Garcia <[email protected]>
sentence=Library for OpenThread Network on ESP32.
Expand Down
2 changes: 1 addition & 1 deletion libraries/PPP/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=PPP
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables network connection using GSM Modem.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Preferences/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Preferences
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Provides friendly access to ESP32's Non-Volatile Storage
Expand Down
2 changes: 1 addition & 1 deletion libraries/RainMaker/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP RainMaker
version=3.0.5
version=3.0.7
author=Sweety Mhaiske <[email protected]>
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP RainMaker Support
Expand Down
2 changes: 1 addition & 1 deletion libraries/SD/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SD
version=3.0.5
version=3.0.7
author=Arduino, SparkFun
maintainer=Arduino <[email protected]>
sentence=Enables reading and writing on SD cards. For all Arduino boards.
Expand Down
2 changes: 1 addition & 1 deletion libraries/SD_MMC/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SD_MMC
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 SDMMC File System
Expand Down
2 changes: 1 addition & 1 deletion libraries/SPI/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SPI
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus. For all Arduino boards, BUT Arduino DUE.
Expand Down
2 changes: 1 addition & 1 deletion libraries/SPIFFS/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SPIFFS
version=3.0.5
version=3.0.7
author=Hristo Gochkov, Ivan Grokhtkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 SPIFFS File System
Expand Down
2 changes: 1 addition & 1 deletion libraries/SimpleBLE/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SimpleBLE
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Provides really simple BLE advertizer with just on and off
Expand Down
2 changes: 1 addition & 1 deletion libraries/TFLiteMicro/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TFLite Micro
version=3.0.5
version=3.0.7
author=Sanket Wadekar
maintainer=Sanket Wadekar
sentence=TensorFlow Lite for Microcontrollers
Expand Down
2 changes: 1 addition & 1 deletion libraries/Ticker/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Ticker
version=3.0.5
version=3.0.7
author=Bert Melis
maintainer=Hristo Gochkov <[email protected]>
sentence=Allows to call functions with a given interval.
Expand Down
2 changes: 1 addition & 1 deletion libraries/USB/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=USB
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32S2 USB Library
Expand Down
2 changes: 1 addition & 1 deletion libraries/Update/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Update
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=ESP32 Sketch Update Library
Expand Down
2 changes: 1 addition & 1 deletion libraries/WebServer/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WebServer
version=3.0.5
version=3.0.7
author=Ivan Grokhotkov
maintainer=Ivan Grokhtkov <[email protected]>
sentence=Simple web server library
Expand Down
2 changes: 1 addition & 1 deletion libraries/WiFi/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WiFi
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables network connection (local and Internet) using the ESP32 built-in WiFi.
Expand Down
2 changes: 1 addition & 1 deletion libraries/WiFiProv/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WiFiProv
version=3.0.5
version=3.0.7
author=Switi Mhaiske <[email protected]>
maintainer=Hristo Gochkov <[email protected]>
sentence=Enables provisioning.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Wire/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Wire
version=3.0.5
version=3.0.7
author=Hristo Gochkov
maintainer=Hristo Gochkov <[email protected]>
sentence=Allows the communication between devices or sensors connected via Two Wire Interface Bus. For esp8266 boards.
Expand Down
2 changes: 1 addition & 1 deletion libraries/Zigbee/library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Zigbee
version=3.0.5
version=3.0.7
author=P-R-O-C-H-Y
maintainer=Jan Procházka <[email protected]>
sentence=Enables zigbee connection with the ESP32
Expand Down
4 changes: 2 additions & 2 deletions libraries/Zigbee/src/ZigbeeCore.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Zigbee Core Functions */

#include "ZigbeeCore.h"
#if SOC_IEEE802154_SUPPORTED
#if SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED

#include "ZigbeeHandlers.cpp"
#include "Arduino.h"
Expand Down Expand Up @@ -407,4 +407,4 @@ const char *ZigbeeCore::getDeviceTypeString(esp_zb_ha_standard_devices_t deviceI

ZigbeeCore Zigbee = ZigbeeCore();

#endif //SOC_IEEE802154_SUPPORTED
#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED
5 changes: 3 additions & 2 deletions libraries/Zigbee/src/ZigbeeCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#pragma once

#include "soc/soc_caps.h"
#if SOC_IEEE802154_SUPPORTED
#include "sdkconfig.h"
#if SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED

#include "esp_zigbee_core.h"
#include "zdo/esp_zigbee_zdo_common.h"
Expand Down Expand Up @@ -122,4 +123,4 @@ class ZigbeeCore {

extern ZigbeeCore Zigbee;

#endif //SOC_IEEE802154_SUPPORTED
#endif //SOC_IEEE802154_SUPPORTED && CONFIG_ZB_ENABLED
Loading
Loading