Skip to content

Commit

Permalink
Merge pull request #41 from hideakitai/fix/warning-for-is-cpu-id
Browse files Browse the repository at this point in the history
fix: warning for isr_cpu_id
  • Loading branch information
hideakitai committed Jun 15, 2024
2 parents 135d9d7 + 92ef7ea commit 376c10f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,24 @@ jobs:
- vendor: esp32
arch: esp32
name: esp32
version: 2
version: 2.0.17
- vendor: esp32
arch: esp32
name: esp32s3
version: 2
version: 2.0.17
- vendor: esp32
arch: esp32
name: esp32c3
version: 2
version: 2.0.17
- vendor: esp32
arch: esp32
name: esp32
version: 3
- vendor: esp32
arch: esp32
name: esp32s3
version: 3
- vendor: esp32
arch: esp32
name: esp32c3
version: 3
include:
- index: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
board:
Expand Down
6 changes: 5 additions & 1 deletion ESP32SPISlave.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ struct spi_slave_context_t
.data7_io_num = -1,
.max_transfer_sz = SOC_SPI_MAXIMUM_BUFFER_SIZE,
.flags = SPICOMMON_BUSFLAG_SLAVE,
// .isr_cpu_id = ESP_INTR_CPU_AFFINITY_1,
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
.isr_cpu_id = INTR_CPU_ID_AUTO,
#elif ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
.isr_cpu_id = ESP_INTR_CPU_AFFINITY_AUTO,
#endif
.intr_flags = 0,
};
spi_host_device_t host {SPI2_HOST};
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "https://github.com/hideakitai",
"maintainer": true
},
"version": "0.6.1",
"version": "0.6.2",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32SPISlave
version=0.6.1
version=0.6.2
author=hideakitai
maintainer=hideakitai
sentence=SPI Slave library for ESP32
Expand Down

0 comments on commit 376c10f

Please sign in to comment.