225 Commits

Author SHA1 Message Date
Kirill Mikhailov
3cda4910a8
HIL: Add an option to run specific tests (#4680)
* Add an option to run specific HIL tests

rename `--tests` arg in `run elfs` to be `--elfs` (less misleading)

* no need to be that detailed

* rework PR search

* ugh

I'm so stupid
2025-12-19 11:22:15 +00:00
Kirill Mikhailov
3e420ec6f1
xtask: Allow builds/runs of multiple tests at once (#4678)
* Allow multiple test runs

* address reviews + protection against `--test ""`/ `--test " "`

* Update comment for value parser

* reimplement empty strings rejection, allow spaces between tests
2025-12-18 13:43:41 +00:00
Juraj Sadel
5f7098ea43
xtask: Generate pub markers for esp-rom-sys ROM symbols for semver checks (#4613)
* xtask: Generate pub markers for esp-rom-sys ROM symbols for semver checks

* Clean dead code and add a testcase

* Improve test and comments parsing

* Don't iterate over files and use rom-functions.x instead
2025-12-18 10:00:50 +00:00
Kirill Mikhailov
497d7127ad
Fix doc comment for tests subcommand (#4673)
Co-authored-by: Juraj Sadel <juraj.sadel@espressif.com>
2025-12-17 08:30:39 +00:00
Scott Mabin
3be4fab05a
ensure we only download the latest non-expired artifact (#4672) 2025-12-16 14:27:08 +00:00
Juraj Sadel
01fc21c02c
CI(binary_size): Give report even when one of the workflows fail (#4664) 2025-12-15 14:23:42 +00:00
Björn Quentin
057ec250f4
Define esp-hal using ~ inside esp-* crates that depend on unstable features (#4621)
* Specify `esp-hal` as `~1.0`

* Teach `execute-plan` about tilde dependencies

* Also support exact version requirements, cleanup
2025-12-08 09:22:41 +00:00
Juraj Sadel
b42861ac1c
xtask: Deduplicate _feature_rules methods and add semver_feature_rules() (#4615) 2025-12-05 16:05:53 +00:00
Juraj Sadel
cee57fcf8d
Use semver-checked rather than semver_checked for consistency (#4581) 2025-12-01 14:21:56 +00:00
Juraj Sadel
8e5ac635c9
xtask(semver): Pass correct path to the download_baselines() (#4575) 2025-12-01 10:15:18 +00:00
Juraj Sadel
203ce79c5f
Add a way how to generate baselines from a git rev and add esp-rom-sys (#4568) 2025-11-28 17:07:39 +00:00
Kirill Mikhailov
4df47ac340
Create a backport branch on every minor/major release (#4564)
* backport WIP

* change remote

* slight refactor

* delete an old `backport` branch

* don't create a backport on patch release

* update description

* Checkout the latest tag to ensure we're in the right time position
2025-11-28 13:25:15 +00:00
Dániel Buga
85a962b8bd
Fix formatting generated code (#4525)
* Transform doc comments in esp-metadata-generated

* Format the generated list of functions
2025-11-20 09:44:57 +00:00
Dániel Buga
b992e944a6
Describe ESP32 clock tree's cpu branch (#4501) 2025-11-18 13:48:24 +00:00
Kirill Mikhailov
4899940372
xtask: Use zip crate instead of CLI unzip (Windows QOL) (#4480)
* xtask: Use `zip` crate instead of CLI (Windows QOL)

* fix: don't return after first found extracted file
2025-11-12 08:45:42 +00:00
Björn Quentin
67bf810a4d
Conditionally hide feature flag docs (#4461)
* "doc-hide" features

* Try to revert the pre-processed Cargo.toml in case of an error

* Handle no-chip case explicitly

* Make restore more robust

* Use esp-metadata
2025-11-10 07:40:58 +00:00
Dániel Buga
72983695ef
Fix perma-unstable crate detection (#4462) 2025-11-07 11:37:40 +00:00
Dániel Buga
103a8e02ec
Consider all dependencies changed (#4419) 2025-11-06 08:37:46 +00:00
Juraj Sadel
05702b6310
Add testing workflow (#4369) 2025-11-05 06:17:25 +00:00
Dániel Buga
2b45de4973
Run doctests on esp-radio (#4434)
* What is documented, shall be doctested

* Add missing no_run directives

* Fix up esp-radio doc examples

* Fix esp-bootloader-esp-idf
2025-11-04 08:47:49 +00:00
Björn Quentin
09db62a616
Test procmacros (#4372)
* Make the procmacros unit testable

* Apply Clippy suggestion

* unwrap less

* Test (at least) the happy path for most procmacros

* Increase coverage

* More coverage

* Address review comments
2025-10-20 08:40:49 +00:00
Dániel Buga
57b2465349
Break misc_non_drivers tests into files (#4366) 2025-10-16 11:10:03 +00:00
Dániel Buga
6d0c465bf3
Mark esp-rom-sys forever unstable in its metadata (#4334) 2025-10-15 08:20:26 +00:00
Dániel Buga
be59ca513d
Unbreak changelogs (#4332) 2025-10-13 17:26:03 +01:00
Scott Mabin
63e4b3ce66
fixup bump version for new examples structure (#4330) 2025-10-13 15:16:37 +00:00
Scott Mabin
c025846ee0
don't exit early when not in gh runner (#4329) 2025-10-13 13:00:12 +00:00
Sergio Gasquez Arcos
0344cb3e6f
Update how API baseline artifacts are downloaded (#4258)
* feat: Change how to download the artifacts

* feat: Delete api-baseline artifacts from the repo

* feat: Update the name of the artifacts

* feat: Update the breaking change label name
2025-10-03 15:33:41 +00:00
Kirill Mikhailov
af6edc3c9d
initial 404 redirection page (#4239) 2025-10-03 13:35:38 +00:00
Juraj Sadel
44495da077
xtask: Add check-global-symbols for checking global unmangled Rust symbols in compiled .rlib (#4181)
* xtask: Add check-global-symbols for checking global unmangled Rust sumbols in compiled .rlib

* address review comments and clean up

* warnings

* Gate symbols behind rt

* Check in nightly CI

* Guard critical-section

* update compiler version

* This was forgotten
2025-10-03 12:29:46 +00:00
Sergio Gasquez Arcos
5d9d0cc845
Use github actions artifacts to store semver baseline (#4236)
* feat: Use github actions artifacts to store semver baseline

* ci: Fetch only 10 commits
2025-10-02 14:54:09 +00:00
Dániel Buga
be34396b2e
Rename esp-preempt to esp-rtos (#4206)
* Rename esp-preempt to esp-rtos

* Also update procmacros

* Fix formatting

* Rename the driver crate, too

* Changelog-check the driver crate
2025-09-30 07:05:50 +00:00
Dániel Buga
c684186cb2
xtask: Ignore non-chip features (#4199) 2025-09-29 09:18:36 +00:00
Dániel Buga
55e4594194
Integrate esp-hal-embassy into esp-preempt (#4172)
* Integrate embassy bits, delete eh-embassy

* I2C: Check for errors when everything is done

* Fix multicore examples

* Prevent deleting a task that is currently running on another cpu

* Save some memory on wait queues

* Remove the yield event concept

* Modify pins to let the example run on ESP32

* Clean up

* Make sure a task does not execute instructions after deleting itself
2025-09-29 09:05:29 +00:00
Dániel Buga
cae93b8427
Clean target folders in examples (#4191) 2025-09-26 15:25:30 +00:00
Simon Neuenhausen
8e29b925cb
Split out PHY init into esp-phy crate. (#3892)
* Minimal infrastructure

* Implemented dig reg backup.

* usb bbpll

* Removed default feature.

* OS adapter tweaks

* Fixed S2 and implemented PhyController

* Added manual deinit.

* Fixed linker scripts and migrated esp-radio to esp-phy

* Fixed warnings.

* Fixed NPL

* Tried fixing NPL again

* Fixed ieee802154

* Fixed reading chip version of S3.

* fmt

* Added changelog entry

* Added changelog for esp-radio

* Deleted chip specific common adapters.

* Added docs and unstable

* Migrated cal data load/store to esp-phy

* Fixed PHY cal CI error

* Removed instability

* Removed feature from esp-phy

* fmt

* Fixed esp-sync docs.

* Removed log with CONFIG

* Removed nonreentrantmutex from common adapter

* Disable reset for radio blocks where required.

* Fixed cfg_if for s2

* fmt

* Added bt_bb_v2_init_cmplx to phy_provides.x

* Added CHANGELOG

* Moved EXTERN and fixed comment.

* Fixed lint

* Fixed common adapter again.

* Docs and Readme.

* Fixed ref count.

* This time pls.

* Added MAC time update CB for esp-radio

* fixed field init

* Fixed inconsistency in metadata

* Removed useless changelog entry

* Fixed S2.

* Swaped addr_of for &raw mut

* Properly initialize NVS

* Fixed lint

* Fixed C6

* Fixed remaining issues

* Fixed CI

* Added link

* Updated esp-wifi-sys in esp-phy

* Address reviews

* Renamed PHY lock

* Moved syscon let in common_adapter

* Fmt

* Remove critical_section

* Don't steal when not necessary

* Added esp-phy changelog to workflow

* Add cargo metadata for esp-phy

* Added reference to #4015

* Refixed Cargo.toml

---------

Co-authored-by: Dániel Buga <bugadani@gmail.com>
2025-09-19 14:14:25 +00:00
Dániel Buga
f0d029b29d
Fix running specific test (#4142) 2025-09-19 05:11:40 +00:00
Dániel Buga
69776eb638
Even more cargo-batch, encode configs in Cargo.toml (#4134)
* Abstract out LP-core targeting packages

* Encode targets_lp_core in Cargo.toml

* Encode architecture compatibility in Cargo.toml

* Move semver_checked into Cargo.toml

* Cache parsed tomls

* Parse simple feature sets from Cargo.toml

* Move all basic feature rules to Cargo.toml

* Add check configs

* Limit command length on Windows

* Update cargo.rs

* Add clippy configs

* Use a single syntax, use a single doc-config line

* Fix known problems

* Run cargo check in CI command

* Fix more problems

* Fix esp-storage
2025-09-18 16:15:35 +00:00
Juraj Sadel
9e892db654
clean up (#4141) 2025-09-18 15:30:38 +00:00
Juraj Sadel
3d0d20002e
Make a singleton form FlashStorage constructor, removed Default (#4132)
* Make a singleton form FlashStorage constructor, removed Default

* changelog

* Simplify, don't need the Singleton

* changelog

* reviews and build errors

* fix dead links

* fmt
2025-09-18 14:33:42 +00:00
Dániel Buga
1eed542f64
Use cargo-batch to build tests and examples, avoid linting so much (#4108)
* Use cargo-batch

* Run CI on mac runner

* Rely on MSRV and nightly jobs to lint

* Build docs separately

* Don't copy examples - fix builds on stable

* Run everything by default, set CI env var in ci command

* Run batched commands with RUSTC_BOOTSTRAP enabled

* Force cargo-batch to correctly ignore unstable option

* Test with nightly

* Use a persistent target folder, remove cache

* Don't delete the lp examples

* Restore target dir

* Build with stable again

* Fix rebase fail

* Remove handling tests

* Remove redundant code

* Restore repeated test run option

* Add simpler cargo check

* Introduce check-packages

* Remove stabilized -Zdoctest-xcompile

* Clean up commented code

* Remove more stuff

* Fix uart_uhci test

* No badger for us
2025-09-18 11:25:11 +00:00
Juraj Sadel
aadbf3c076
Remove duplicated log (#4133) 2025-09-17 14:04:11 +00:00
Juraj Sadel
555922b887
Add defmt to esp-storage (#4127)
* Add defmt to esp-storage

* changelog

* Fix technically-incorrect feature comment

* Add some docs for pub API

* Move demft in the optional deps

* reviews

* reviews
2025-09-17 11:09:23 +00:00
Juraj Sadel
139ce0e0c7
xtask housekeeping, adding logs, adding missing docs (#4106)
* xtask housekeeping, adding logs, adding missing docs

* Use anyhow::Context
2025-09-17 10:17:29 +00:00
Dániel Buga
9c35cf9b16
Test and fix critical-section feature in esp-println (#4116) 2025-09-16 06:40:17 +00:00
Björn Quentin
9e190f112d
Use riscv-rt's startup and trap-handling code (#3857)
* Use riscv-rt's startup code

* CHANGELOG.md

* Enable v-trap - get rid of one unused function

* Re-use riscv-rt's TrapFrame instead of keeping a copy of it

* fmt

* Update riscv-rt rev

* Enable defmt

* use riscv-rt's trap handling

* Compile on stable

* (Re)add the SP fixing code

* Move comment

* Update `riscv*` deps

* esp-riscv-rt: Remove the (unused) CI feature
2025-09-11 07:48:44 +00:00
Kirill Mikhailov
1597443bf1
Add new host-test xtask subcommand (#4085)
* Add new `host-test` xtask subcommand

+ smaller consistency and fmt fixes

* reviews

* reviews
2025-09-09 14:44:36 +00:00
Dániel Buga
2a06d38141
Only run the selected example, not all of them (#4057) 2025-09-05 09:04:04 +00:00
Dániel Buga
5e13146842
Route logs to stdout (#4054) 2025-09-04 17:41:04 +00:00
Dániel Buga
d9f6d7d73e
Fix endgroup syntax (#4051) 2025-09-04 13:13:02 +00:00
Dániel Buga
227ad1fced
Fix example selection (#4045) 2025-09-04 11:22:08 +00:00