Skip to content

Commit eab704f

Browse files
committed
Compatibility with ESP-IDF 5.4.x, 5.5.x and master
1 parent c668fcb commit eab704f

6 files changed

Lines changed: 11 additions & 25 deletions

File tree

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rustflags = ["--cfg", "espidf_time64"]
2525

2626
[env]
2727
ESP_IDF_SDKCONFIG_DEFAULTS = ".github/configs/sdkconfig.defaults"
28-
ESP_IDF_VERSION = "v5.3.2"
28+
ESP_IDF_VERSION = "v5.4.2"
2929
#ESP_IDF_VERSION = "release/v5.3" Necessary for `Thread::stop`
3030

3131
[unstable]

.github/workflows/ci-esp-idf-next.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
- xtensa-esp32s2-espidf
2626
- xtensa-esp32s3-espidf
2727
idf-version:
28-
- release/v5.3
29-
- release/v5.4
30-
- release/v5.5
3128
- master
3229
steps:
3330
- name: Setup | Checkout

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
- xtensa-esp32s2-espidf
2828
- xtensa-esp32s3-espidf
2929
idf-version:
30-
- v4.4.8
31-
- v5.1.2
32-
- v5.2.3
33-
- v5.3.2
30+
- release/v5.1
31+
- release/v5.2
32+
- release/v5.3
33+
- release/v5.4
34+
- release/v5.5
3435
steps:
3536
- name: Setup | Checkout
3637
uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- Thread support is no longer behind the `experimental` feature
3131

3232
### Added
33+
- Compatibility with ESP-IDF V5.4.x and V5.5.x
3334
- Logging configuration enhanced with a simpler setup where Rust logs can be configured to have a verbosity which is
3435
disconnected from the verbosity of the ESP-IDF native C logging (#593)
3536
- OTA: New method - `EspFirmwareInfoLoad::fetch_native` - returning the full native ESP-IDF image descriptor structures

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rust-version = "1.82"
1717

1818
[patch.crates-io]
1919
esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys" }
20-
esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal" }
20+
esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal", branch = "new-esp-idf-vers-compat" }
2121

2222
[lib]
2323
harness = false

src/thread.rs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,22 +1195,9 @@ where
11951195
let mut stop_supported = false;
11961196

11971197
#[cfg(any(
1198-
not(any(esp_idf_version_major = "4", esp_idf_version_major = "5")),
1199-
all(
1200-
esp_idf_version_major = "5",
1201-
not(any(
1202-
esp_idf_version = "5.0",
1203-
esp_idf_version = "5.1",
1204-
esp_idf_version = "5.2",
1205-
esp_idf_version_full = "5.3.0",
1206-
esp_idf_version_full = "5.3.1",
1207-
esp_idf_version_full = "5.3.2",
1208-
esp_idf_version_full = "5.3.3",
1209-
esp_idf_version_full = "5.4.0",
1210-
esp_idf_version_full = "5.4.1",
1211-
esp_idf_version_full = "5.4.2",
1212-
))
1213-
)
1198+
esp_idf_version_at_least_5_5_0,
1199+
all(esp_idf_version = "5.3", esp_idf_version_at_least_5_3_4),
1200+
all(esp_idf_version = "5.4", esp_idf_version_at_least_5_4_3)
12141201
))]
12151202
{
12161203
unsafe {

0 commit comments

Comments
 (0)