Skip to content

Commit

Permalink
Fix esp_app_desc for newer ESP IDF versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jan 10, 2025
1 parent c091b5a commit db218e2
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/app_desc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,64 @@ macro_rules! esp_app_desc {
$crate::ESP_IDF_VERSION_PATCH
)),
app_elf_sha256: [0; 32],
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version_full = "5.2.0",
esp_idf_version_full = "5.2.1",
esp_idf_version_full = "5.2.2",
esp_idf_version_full = "5.3.0",
esp_idf_version_full = "5.3.1"
)))]
min_efuse_blk_rev_full: 0,
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version_full = "5.2.0",
esp_idf_version_full = "5.2.1",
esp_idf_version_full = "5.2.2",
esp_idf_version_full = "5.3.0",
esp_idf_version_full = "5.3.1"
)))]
max_efuse_blk_rev_full: 0,
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version = "5.2",
esp_idf_version = "5.3"
)))]
mmu_page_size: 0,
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version = "5.2",
esp_idf_version = "5.3"
)))]
reserv3: [0; 4],
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version = "5.2",
esp_idf_version = "5.3"
)))]
reserv2: [0; 18],
#[cfg(any(esp_idf_version_full = "5.2.3", esp_idf_version_full = "5.3.2"))]
reserv2: [0; 19],
#[cfg(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1",
esp_idf_version_full = "5.2.0",
esp_idf_version_full = "5.2.1",
esp_idf_version_full = "5.2.2",
esp_idf_version_full = "5.3.0",
esp_idf_version_full = "5.3.1"
))]
reserv2: [0; 20],
}
};
Expand Down

0 comments on commit db218e2

Please sign in to comment.