Commit graph

74 commits

Author SHA1 Message Date
Paul Bender
e8c260a745 Update esp32c{3,6} support to esp-hal-1.0.0-rc.0. 2025-09-17 18:57:09 +00:00
Johannes Cornelis Draaijer
24d6d88551 Update CHANGELOGs 2025-09-17 19:40:38 +02:00
Johannes Cornelis Draaijer
3ba1632f8d rtic-macros: forward attributes applied to app module
Instead of ignoring additional attributes applied to the app
module, we can forward them to the generated code.
2025-09-17 19:40:38 +02:00
Anton Lazarev
1104a12ca3 address clippy::uninlined_format_args 2025-06-30 19:09:23 +00:00
Emil Fresk
42ebfe57f1 Release all crates 2025-06-22 09:34:16 +00:00
Oleksandr Babak
5068edc668 Update rtic-macros/CHANGELOG.md 2025-06-18 18:49:41 +00:00
Oleksandr Babak
f61febf7a4 fix: in edition 2024 link_section is used as unsafe(link_section = ...) 2025-06-18 18:49:41 +00:00
Oleksandr Babak
a2dfb62ffc chore: better safety comment 2025-06-15 11:02:15 +00:00
Oleksandr Babak
2e703476a0 chore: changelog 2025-06-15 11:02:15 +00:00
Oleksandr Babak
d28b114c0b feat(rtic-macros): expose task waker 2025-06-15 11:02:15 +00:00
Emil Fresk
95616b3c59 Release RTIC v2.1.3 2025-06-08 10:44:11 +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
ef09e4b65f Port ESP32-C3 changes to ESP32-C6 branch 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
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
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
datdenkikniet
11699b4391 rtic: placate clippy for esp32c3 2025-03-23 09:57:48 +00:00
Román Cárdenas Rodríguez
4542367fc9 Configure CI for new backends 2025-03-12 19:41:40 +00:00
Román Cárdenas Rodríguez
6b021de4a0 Add mecall backend 2025-03-12 19:41:40 +00:00
Román Cárdenas Rodríguez
183e73904a Prepare for new riscv ecosystem 2025-03-12 19:41:40 +00:00
Emil Fresk
1a1237690c Add default docs feature to rtic-macros 2024-12-06 14:23:33 +01:00
Emil Fresk
b41a10e794 Fix documentation (docs.rs) and release 2.1.2 2024-12-06 14:09:26 +01:00
Jesse Braham
8678d424fd
Do not limit async priority with NVIC_PRIO_BITS when targeting ESP32-C3 (#996)
* Remove reference to `NVIC_PRIO_BITS` for ESP32-C3 codegen bindings

* Update `CHANGELOG.md`
2024-11-27 19:04:14 +00:00
Jesse Braham
1f6b6a42e5
Update support/example for ESP32-C3 to use latest versions of dependencies (#975)
* Update `rtic` package to use latest version of `esp32c3` dependency

* Update `rtic-macros` ESP32-C3 bindings to reflect changes in HAL

* Update the ESP32-C3 examples to use latest versions of all dependencies

* Update changelogs

* adjust expected qemu output, add compile-time checks

* remove runtime checks, this is checked at compile time

* fix expected qemu output

* Clean up interrupt enable code a bit

* Update `rtic-monotonic` to use the latest PAC for ESP32-C3

* Update `CHANGELOG.md` for `rtic-monotonic`

* ci: esp32c3: Format runner.sh

* ci: esp32c3: Default to silent boot

export DEBUGGING while running to get verbose boot

env DEBUGGING=1 cargo xtask ...

* ci: esp32c3: Update expected example output

---------

Co-authored-by: onsdagens <pawdzi-7@student.ltu.se>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-10-16 19:29:51 +00:00
Sympatron GmbH
7b534b38e5
Replace proc-macro-error with proc-macro-error2 (#979) 2024-09-29 04:15:12 +00:00
Emil Fresk
2c85ee4620
Fix codegen emitting unqualified Result (#967) 2024-08-07 19:17:34 +00:00
Henrik Tjäder
f3ae9d166d rtic-macros: handle backend flagged as unused 2024-06-23 08:05:45 +02:00
Henri Lunnikivi
9bfd5a3bb2
Improve error output for prios > dispatchers (#943)
* Improve error output for prios > dispatchers

* Update changelog
2024-05-28 06:01:53 +00:00
Emil Fresk
2efdef6029 Fix clippy lints 2024-05-27 11:26:06 +02:00
Henrik Tjäder
04b655d4fa
rtic-macros: Template: Include Span (#935) 2024-05-08 19:11:19 +00:00
Adam Hott
420ca51058
Clean up esp32c3 files with rustfmt (#913)
* Fix incorrect end bracket, moved to after pub fn extra_modules

* Clean up - rtic-macros/src/codegen/bindings/esp32c3.rs
2024-04-10 18:28:48 +00:00
onsdagens
906278e310
Adjust esp32c3 codegen, bump pac to 0.21.0 (#906)
* adjust esp32c3 codegen, bump pac to 0.21.0

* add esp32c3 example

* adjust workflow flags

* CI: Fix esp32c3 comment

* esp32c3: Remove commented out git-dep

* CI: Actually check the ESP32-C3 examples

* Autoformat rtic/cargo.toml

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-04-04 09:35:41 +00:00
Román Cárdenas Rodríguez
4060c3def8
RISC-V support over CLINT (#815)
* Rebase to master

* using interrupt_mod

* bug fixes

* fix other backends

* Add changelog

* forgot about rtic-macros

* backend-specific configuration

* core peripherals optional over macro argument

* pre_init_preprocessing binding

* CI for RISC-V (WIP)

* separation of concerns

* add targets for RISC-V examples

* remove qemu feature

* prepare examples folder

* move examples all together

* move ci out of examples

* minor changes

* add cortex-m

* new xtask: proof of concept

* fix build.yml

* feature typo

* clean rtic examples

* reproduce weird issue

* remove unsafe code in user app

* update dependencies

* allow builds on riscv32imc

* let's fix QEMU

* Update .github/workflows/build.yml

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>

* New build.rs

* removing test features

* adapt ui test to new version of clippy

* add more examples to RISC-V backend

* proper configuration of heapless for riscv32imc

* opt-out examples for riscv32imc

* point to new version of riscv-slic

* adapt new macro bindings

* adapt examples and CI to stable

* fix cortex-m CI

* Review

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-03-20 20:06:47 +00:00
Emil Fresk
0b365f03eb Release rtic v2.1.0, rtic-macros v2.1.0 2024-02-27 13:51:47 +01:00
Emil Fresk
2798500957 Make RTIC 2 work on stable by using main's stack as an allocator 2024-02-27 12:22:18 +01:00
dependabot[bot]
f74f38a4f7
Update syn requirement from 1.0.107 to 2.0.48 (#881)
* Update syn requirement from 1.0.107 to 2.0.48

Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...2.0.48)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* rtic-macros: attr.path -> attr.path()

* rtic-macros: tokens -> parse_args()

Fix parsing of InitArgs, IdleArgs, *Args

Including HardwareTaskArgs, SoftwareTaskArgs

* rtic-macros: Rename content to input

As syn2 removes the surrounding parenthesis as
part of parse_args() the distinction between
input and content is redundant

* rtic-macros: Handle removal of Expr::Type

Manually parse local_resources

With type ascription de-RFCd syn2 dropped
Expr::Type

* rtic-macros: Syn upgrade CHANGELOG

* rtic-macro: Retain most old errors as they were

Spans are not equal, but good enough

* rtic-macros: syn2 changed some error messages

Additionally some spans were not retained
with the manual parsing workaround

* rtic-macros: clippy fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-01-16 07:03:49 +00:00
Emil Fresk
3c9a8f290d Fix CI with async_fn_in_trait not being a feature 2023-11-01 19:52:57 +00:00
onsdagens
b2b39ab6e6 remove nop from the empty idle loop
remove nop from the empty idle loop
2023-09-28 05:39:53 +00:00
onsdagens
2b2208e217 esp32c3 support 2023-09-27 19:50:13 +00:00
Emil Fresk
0228350ef4 Fixed new TAIT requirement and release v2.0.1 of RTIC 2023-07-25 08:16:13 +00:00
Henrik Tjäder
8e67b11597 Changelog: Macros: Add v2 2023-07-01 04:00:30 +00:00
Henrik Tjäder
670d751154 Add changelog for rtic-macros 2023-07-01 04:00:30 +00:00
dependabot[bot]
bfa3214f2f Update indexmap requirement from 1.9.2 to 2.0.0
Updates the requirements on [indexmap](https://github.com/bluss/indexmap) to permit the latest version.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.9.2...2.0.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-30 06:25:20 +00:00