Skip to content

Commit 5a06590

Browse files
authored
Merge branch 'master' into master
2 parents 4d49ddc + ac961f6 commit 5a06590

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+70
-47
lines changed

cores/esp32/esp32-hal-spi.c

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#elif CONFIG_IDF_TARGET_ESP32P4
6161
#include "esp32p4/rom/ets_sys.h"
6262
#include "esp32p4/rom/gpio.h"
63+
#include "hal/spi_ll.h"
6364
#else
6465
#error Target CONFIG_IDF_TARGET is not supported
6566
#endif
@@ -639,9 +640,6 @@ spi_t *spiStartBus(uint8_t spi_num, uint32_t clockDiv, uint8_t dataMode, uint8_t
639640
} else if (spi_num == HSPI) {
640641
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_SPI3_CLK_EN);
641642
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_SPI3_RST);
642-
} else {
643-
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_SPI01_CLK_EN);
644-
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_SPI01_RST);
645643
}
646644
#elif CONFIG_IDF_TARGET_ESP32S3
647645
if (spi_num == FSPI) {
@@ -662,6 +660,31 @@ spi_t *spiStartBus(uint8_t spi_num, uint32_t clockDiv, uint8_t dataMode, uint8_t
662660
DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_SPI01_CLK_EN);
663661
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_SPI01_RST);
664662
}
663+
#elif CONFIG_IDF_TARGET_ESP32P4
664+
#pragma GCC diagnostic push
665+
#pragma GCC diagnostic ignored "-Wunused-variable"
666+
if (spi_num == FSPI) {
667+
PERIPH_RCC_ACQUIRE_ATOMIC(PERIPH_GPSPI2_MODULE, ref_count) {
668+
if (ref_count == 0) {
669+
PERIPH_RCC_ATOMIC() {
670+
spi_ll_enable_bus_clock(SPI2_HOST, true);
671+
spi_ll_reset_register(SPI2_HOST);
672+
spi_ll_enable_clock(SPI2_HOST, true);
673+
}
674+
}
675+
}
676+
} else if (spi_num == HSPI) {
677+
PERIPH_RCC_ACQUIRE_ATOMIC(PERIPH_GPSPI3_MODULE, ref_count) {
678+
if (ref_count == 0) {
679+
PERIPH_RCC_ATOMIC() {
680+
spi_ll_enable_bus_clock(SPI3_HOST, true);
681+
spi_ll_reset_register(SPI3_HOST);
682+
spi_ll_enable_clock(SPI3_HOST, true);
683+
}
684+
}
685+
}
686+
}
687+
#pragma GCC diagnostic pop
665688
#elif defined(__PERIPH_CTRL_ALLOW_LEGACY_API)
666689
periph_ll_reset(PERIPH_SPI2_MODULE);
667690
periph_ll_enable_clk_clear_rst(PERIPH_SPI2_MODULE);

cores/esp32/esp_arduino_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
/** Minor version number (x.X.x) */
2424
#define ESP_ARDUINO_VERSION_MINOR 2
2525
/** Patch version number (x.x.X) */
26-
#define ESP_ARDUINO_VERSION_PATCH 0
26+
#define ESP_ARDUINO_VERSION_PATCH 1
2727

2828
/**
2929
* Macro to convert ARDUINO version number into an integer

libraries/ArduinoOTA/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoOTA
2-
version=3.2.0
2+
version=3.2.1
33
author=Ivan Grokhotkov and Hristo Gochkov
44
maintainer=Hristo Gochkov <[email protected]>
55
sentence=Enables Over The Air upgrades, via wifi and espota.py UDP request/TCP download.

libraries/AsyncUDP/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32 Async UDP
2-
version=3.2.0
2+
version=3.2.1
33
author=Me-No-Dev
44
maintainer=Me-No-Dev
55
sentence=Async UDP Library for ESP32

libraries/BLE/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=BLE
2-
version=3.2.0
2+
version=3.2.1
33
author=Neil Kolban <[email protected]>
44
maintainer=Dariusz Krempa <[email protected]>
55
sentence=BLE functions for ESP32

libraries/BluetoothSerial/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=BluetoothSerial
2-
version=3.2.0
2+
version=3.2.1
33
author=Evandro Copercini
44
maintainer=Evandro Copercini
55
sentence=Simple UART to Classical Bluetooth bridge for ESP32

libraries/DNSServer/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DNSServer
2-
version=3.2.0
2+
version=3.2.1
33
author=Kristijan Novoselić
44
maintainer=Kristijan Novoselić, <[email protected]>
55
sentence=A simple DNS server for ESP32.

libraries/EEPROM/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EEPROM
2-
version=3.2.0
2+
version=3.2.1
33
author=Ivan Grokhotkov
44
maintainer=Paolo Becchi <[email protected]>
55
sentence=Enables reading and writing data a sequential, addressable FLASH storage

libraries/ESP32/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32
2-
version=3.2.0
2+
version=3.2.1
33
author=Hristo Gochkov, Ivan Grokhtkov
44
maintainer=Hristo Gochkov <[email protected]>
55
sentence=ESP32 sketches examples

libraries/ESP_I2S/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP_I2S
2-
version=3.2.0
2+
version=3.2.1
33
author=me-no-dev
44
maintainer=me-no-dev
55
sentence=Library for ESP I2S communication

0 commit comments

Comments
 (0)