Commit graph

1854 commits

Author SHA1 Message Date
Emil Fresk
f42147948d Add blocking version of rtic_sync::arbiter::{i2c,spi}::ArbiterDevice 2025-06-15 09:42:51 +02:00
Emil Fresk
95616b3c59 Release RTIC v2.1.3 2025-06-08 10:44:11 +00:00
Henrik Tjäder
ac0579c81f UI: Test for references passed to spawn
Related to and using code from Issue1065

Issue1065: https://github.com/rtic-rs/rtic/issues/1065
2025-06-08 10:36:54 +00:00
Emil Fresk
8193d5aea6 Fix references allowed in spawn
The futures passed to the executor were not bound
to be 'static, which allowed task futures to
reference data that's on the spawnee's stack.

The executor now requires futures to be 'static.
2025-06-08 09:34:28 +00:00
Henrik Tjäder
45a2ae8c7f CI: Update STDERR for newer Rust 2025-06-08 09:10:01 +00:00
Henrik Tjäder
8c9770db0c Clippy: 1.86: Handle style lint for Option.replace
https://rust-lang.github.io/rust-clippy/stable/index.html#mem_replace_option_with_some
2025-06-08 09:10:01 +00:00
dependabot[bot]
af871941d3 Update embedded-hal-bus requirement from 0.2.0 to 0.3.0
Updates the requirements on [embedded-hal-bus](https://github.com/rust-embedded/embedded-hal) to permit the latest version.
- [Release notes](https://github.com/rust-embedded/embedded-hal/releases)
- [Commits](https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.2.0...embedded-hal-bus-v0.3.0)

---
updated-dependencies:
- dependency-name: embedded-hal-bus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-28 18:13:16 +00:00
Eli Hastings
f145203b54 Remove references to nightly Rust from ESP examples 2025-04-07 21:11:21 +00:00
Eli Hastings
a032fa67b0 Add ESP32C6 mention to book 2025-04-07 21:11:21 +00:00
Eli Hastings
104ee94dd1 Apply clippy fixes 2025-04-07 21:11:21 +00:00
Eli Hastings
0615841cb8 Don't use interrupts reserved by esp-hal
Excluding the reserved interrupts fixes the task priorities. I also
considered refactoring `rtic/src/export/riscv_esp32c6.rs` to use esp-hal
instead of esp32c6 directly as it has code to do all the pointer
wrangling itself, but decided against it for now. It might be nice to
refactor both esp implentations to use it though.
2025-04-07 21:11:21 +00:00
Eli Hastings
c6fbbaaae8 Update esp32c6 example dependencies 2025-04-07 21:11:21 +00:00
Eli Hastings
90f475316f Bump ESP versions 2025-04-07 21:11:21 +00:00
Eli Hastings
9305963752 Use PLIC_MX instead of INTPRI to set interrupt priorities
This doesn't fix the GPIO interrupt triggering during a higher priority
CPU task, but does fix rtic-monotonics. I am unsure how to fix the
former as PLIC_MX doesn't have a function like `cpu_intr_from_cpu_x` to
pend/unpend CPU interrupts, and if the CPU interrupts are enabled with
PLIC_MX instead of INTPRI then the MCU just hangs when there is a CPU
interrupt.
2025-04-07 21:11:21 +00:00
Eli Hastings
ef09e4b65f Port ESP32-C3 changes to ESP32-C6 branch 2025-04-07 21:11:21 +00:00
Wouter Geraedts
0efb77300e Added CI 2025-04-07 21:11:21 +00:00
Wouter Geraedts
cfe4790e68 Ran cargo fmt 2025-04-07 21:11:21 +00:00
Wouter Geraedts
35cb5570bd Added CHANGELOG entry 2025-04-07 21:11:21 +00:00
Wouter Geraedts
3dec289ade Use explicit list of external interrupts which can be used by RTIC 2025-04-07 21:11:21 +00:00
Wouter Geraedts
bb4317ef45 Enable interrupt after it has been configured; use register block instead of hardcoded address 2025-04-07 21:11:21 +00:00
Wouter Geraedts
b97bc79126 Added esp32c6 support and example 2025-04-07 21:11:21 +00:00
datdenkikniet
5a8ff70f85 Placate clippy 2025-04-03 20:43:04 +02:00
Oleksandr Babak
be6648c0ee fix: move the popped check after the fence 2025-04-03 12:18:11 +00:00
Oleksandr Babak
e10866ff30 fix: check if link is already popped when removing it inside the critical section 2025-04-03 12:18:11 +00:00
Oleksandr Babak
c9eefd2e25 chore: changelog entry 2025-04-03 12:18:11 +00:00
Oleksandr Babak
08a0d7f53a feat: do not cause memory corruption if remove_from_list (safe function) is called multiple times 2025-04-03 12:18:11 +00:00
Henrik Tjäder
c3a5cf0a47 CI: QEMU: Step name to reflect action 2025-04-01 20:32:53 +00:00
Henrik Tjäder
5915e9eca0 CI: QEMU: We are not building anymore 2025-04-01 20:32:53 +00:00
Henrik Tjäder
6cc6061595 CI: Bump QEMU_VERSION and remove QEMU_URL 2025-04-01 20:32:53 +00:00
Henrik Tjäder
86a77cdffd CI: clippy-check-example: Bump ubuntu-24.04 2025-04-01 20:32:53 +00:00
Henrik Tjäder
84c68ae3a6 CI: ESP32: Ignore qemuoutput.log files 2025-04-01 20:32:53 +00:00
Henrik Tjäder
6f5c260e6f CI: ESP32: Update expected outputs 2025-04-01 20:32:53 +00:00
Henrik Tjäder
4f04962e42 CI: ESP32-C3: Tweak runner script not print version 2025-04-01 20:32:53 +00:00
Henrik Tjäder
6aafb89e99 CI: Use latest ESP32-QEMU: 9.2.2 2025-04-01 20:32:53 +00:00
Henrik Tjäder
fc40812b9a CI: Ubuntu 24.04 packages QEMU 8.2.2 2025-04-01 20:32:53 +00:00
Henrik Tjäder
2710908497 CI: Update CI runner to Ubuntu 24.04 2025-04-01 20:32:53 +00:00
Christian Krenslehner
c63669488a fix(doc): fix typo in file names to match with docs 2025-04-01 20:32:14 +00:00
Ronald Weber
7fd35e0152 examples/esp32c3: Update esp-hal to 1.0.0-beta.0 2025-03-27 20:51:38 +00:00
Oleksandr Babak
cb7d053b78 fix(ci): adjust filenames for ouputs 2025-03-27 14:47:11 +00:00
Oleksandr Babak
8127208eb5 feat: add example for divergent tasks 2025-03-27 14:47:11 +00:00
Oleksandr Babak
b75b8f98b0 doc: add a timely yield notice 2025-03-27 14:47:11 +00:00
Oleksandr Babak
c43788f141 doc: add a paragraph to software_tasks.md 2025-03-27 14:47:11 +00:00
Oleksandr Babak
f6eacdc8d1 doc: mention diverging tasks in book 2025-03-27 14:47:11 +00:00
Oleksandr Babak
160b7c00a6 fix(či): space between name and generics 2025-03-27 14:47:11 +00:00
Oleksandr Babak
22ba6bac06 refactor: remove minor code duplication 2025-03-27 14:47:11 +00:00
Oleksandr Babak
0593a7290b chore: update tests 2025-03-27 14:47:11 +00:00
Oleksandr Babak
78e9127fc5 chore: changelog entry 2025-03-27 14:47:11 +00:00
Oleksandr Babak
ff3b1ad527 feat: allow diverding software tasks with 'static context (they never return) 2025-03-27 14:47:11 +00:00
Henrik Tjäder
267ed9dafd RTIC: Changelog: Reorder entries to match timeline 2025-03-26 22:04:29 +00:00
Ronald Weber
9a36db8026 Update esp32c3 to 0.28.0 2025-03-26 22:04:29 +00:00