Skip to content

Commit 04b7ebe

Browse files
authored
Implement new API for reading eFuse values (#847)
* Create the `xtask` package * Implement and xtask subcommand to generate eFuse field definitions from YAML files * Generate eFuse field definitions * Update `target` module to provide new eFuse reading API * All non-problematic chips working with new eFuse API * ESP32 is now working * ESP32-S2 is now (mostly) working * Very necessary change :) * Clean up the mess I made of the imports * Address clippy lints * Update `CHANGELOG.md` * Perform fewer raw eFuse field reads for ESP32 * Address review comment regarding `xtask` package * Verify that `xtask` package builds in CI * Fix block offset calculation
1 parent d4672de commit 04b7ebe

26 files changed

+2754
-157
lines changed

.cargo/config.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
xtask = "run --package xtask --"

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,16 @@ jobs:
115115

116116
- run: cargo check -p espflash --lib
117117

118+
xtask:
119+
name: Check xtask
120+
runs-on: ubuntu-22.04
121+
122+
steps:
123+
- uses: actions/checkout@v4
124+
- uses: dtolnay/rust-toolchain@stable
125+
126+
- run: cargo check -p xtask
127+
118128
# --------------------------------------------------------------------------
119129
# Test
120130

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141
- Removed `get_` prefix from any functions which previously had it (#824)
4242
- Take elf data as bytes rather than `ElfFile` struct when creating an image format (#825)
4343
- Updated to Rust 2024 edition (#843)
44+
- Complete rework of reading eFuse field values (#847)
4445

4546
### Fixed
4647

Cargo.lock

+194-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)