Skip to content

Commit 4bb287e

Browse files
fix(esp32p4): Fix compilation errors (#10371)
* fix(esp32p4): Add missing touchpad definitions * fix(esp32p4): Add missing target in SPI example * fix(esp32p4): Start touch driver fix * fix(esp32p4): Skip touch examples while it is not implemented * fix(esp32p4): Add missing analog pin definitions * refactor(formatting): Fix formatting that was broken in P4 PR * fix(openthread): Add missing targets to skip * fix(esp32p4): Skip ethernet sketches * fix(esp32p4): Disable periman test while touch is not implemented * fix(esp32p4): Disable touch test while touch is not implemented * fix(esp32p4): Fix UART test * fix(esp32p4): Skip Wi-Fi test * fix(esp32): Skip unsupported example * fix(esp32p4): Fix skip files * ci(pre-commit): Apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 9398d52 commit 4bb287e

File tree

31 files changed

+471
-444
lines changed

31 files changed

+471
-444
lines changed

cores/esp32/esp32-hal-i2c-slave.c

Lines changed: 385 additions & 387 deletions
Large diffs are not rendered by default.

cores/esp32/esp32-hal-spi.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,15 @@ struct spi_struct_t {
148148
#if CONFIG_DISABLE_HAL_LOCKS
149149
#define SPI_MUTEX_LOCK()
150150
#define SPI_MUTEX_UNLOCK()
151-
+ static spi_t _spi_bus_array[] = {
151+
// clang-format off
152+
static spi_t _spi_bus_array[] = {
152153
#if CONFIG_IDF_TARGET_ESP32S2
153154
{(volatile spi_dev_t *)(DR_REG_SPI1_BASE), 0, -1, -1, -1, -1},
154155
{(volatile spi_dev_t *)(DR_REG_SPI2_BASE), 1, -1, -1, -1, -1},
155156
{(volatile spi_dev_t *)(DR_REG_SPI3_BASE), 2, -1, -1, -1, -1}
156157
#elif CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32P4
157-
{(volatile spi_dev_t *)(DR_REG_SPI2_BASE), 0, -1, -1, -1, -1}, {(volatile spi_dev_t *)(DR_REG_SPI3_BASE), 1, -1, -1, -1, -1}
158+
{(volatile spi_dev_t *)(DR_REG_SPI2_BASE), 0, -1, -1, -1, -1},
159+
{(volatile spi_dev_t *)(DR_REG_SPI3_BASE), 1, -1, -1, -1, -1}
158160
#elif CONFIG_IDF_TARGET_ESP32C2
159161
{(volatile spi_dev_t *)(DR_REG_SPI2_BASE), 0, -1, -1, -1, -1}
160162
#elif CONFIG_IDF_TARGET_ESP32C3
@@ -168,6 +170,7 @@ struct spi_struct_t {
168170
{(volatile spi_dev_t *)(DR_REG_SPI3_BASE), 3, -1, -1, -1, -1}
169171
#endif
170172
};
173+
// clang-format on
171174
#else
172175
#define SPI_MUTEX_LOCK() \
173176
do { \

cores/esp32/esp32-hal-touch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#if SOC_TOUCH_SENSOR_VERSION == 1 // ESP32
3030
static uint16_t __touchSleepCycles = 0x1000;
3131
static uint16_t __touchMeasureCycles = 0x1000;
32-
#elif SOC_TOUCH_SENSOR_VERSION == 2 // ESP32S2, ESP32S3
32+
#elif SOC_TOUCH_SENSOR_VERSION >= 2 // ESP32S2, ESP32S3, ESP32P4
3333
static uint16_t __touchSleepCycles = TOUCH_PAD_SLEEP_CYCLE_DEFAULT;
3434
static uint16_t __touchMeasureCycles = TOUCH_PAD_MEASURE_CYCLE_DEFAULT;
3535
#endif

libraries/BLE/examples/BLE5_multi_advertising/ci.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"targets": {
3+
"esp32": false,
34
"esp32p4": false,
45
"esp32s2": false
56
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"targets": {
33
"esp32": false,
4-
"esp32c2": false,
5-
"esp32c3": false,
64
"esp32p4": false,
7-
"esp32s2": false,
8-
"esp32s3": false
5+
"esp32s2": false
96
}
107
}

libraries/BLE/examples/BLE5_periodic_sync/ci.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"targets": {
33
"esp32": false,
4-
"esp32c3": false,
5-
"esp32c6": false,
6-
"esp32h2": false,
74
"esp32p4": false,
85
"esp32s2": false
96
}

libraries/BLE/examples/Beacon_Scanner/ci.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"targets": {
3-
"esp32c3": false,
4-
"esp32c6": false,
5-
"esp32h2": false,
63
"esp32p4": false,
74
"esp32s2": false
85
}

libraries/BLE/examples/Client/ci.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"targets": {
3-
"esp32c3": false,
43
"esp32p4": false,
54
"esp32s2": false
65
}

libraries/BLE/examples/Notify/ci.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"targets": {
3-
"esp32h2": false,
43
"esp32p4": false,
54
"esp32s2": false
65
}

libraries/BLE/examples/Server/ci.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"targets": {
3-
"esp32": false,
4-
"esp32c2": false,
5-
"esp32c3": false,
63
"esp32p4": false,
7-
"esp32s2": false,
8-
"esp32s3": false
4+
"esp32s2": false
95
}
106
}

0 commit comments

Comments
 (0)