Commit graph

36 commits

Author SHA1 Message Date
Lasse Dalegaard
a330dedf37 rtic-macros: fix #[cfg] for hardware and software tasks
Disabling hardware and software tasks via `#[cfg]` flags was broken.
Added test case to verify, and fixed codegen to output missing cfgs.
2024-03-26 17:54:04 +01: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
Henrik Tjäder
6480ec5c3a CI: Remove travis, once and for all 2023-06-30 04:37:59 +00:00
Vixu
a7653cc050 allow init and idle to be externed 2023-06-08 14:14:36 +02:00
Emil Fresk
c3884e212c v2.0 release 2023-05-25 08:27:58 +02:00
Emil Fresk
67d5ade4fd Fix zero prio tasks when all async tasks have default (no) arguments 2023-05-10 16:26:52 +02:00
bors[bot]
55083fb3cc
Merge #736
736: More `xtasks` and add examples to `rtic` repo r=korken89 a=datdenkikniet

This was in #732 before, but decluttering that PR seemed sensible

Co-authored-by: datdenkikniet <jcdra1@gmail.com>
2023-04-16 19:19:09 +00:00
datdenkikniet
2db26c1015 Deny on warnings in xtasks 2023-04-16 13:08:46 +02:00
datdenkikniet
9e340c253e Remove unused 2023-04-15 19:19:49 +02:00
datdenkikniet
2ba09dd68d rtic-macros: wrap everything in macro_rules! to improve the error experience and
royally **** up the DX experience (for lib.rs in rtic-macros, at least :P)
2023-04-15 19:19:49 +02:00
Andrew Gazelka
e47914ee50
remove vis restriction for local and shared resources 2023-04-12 15:26:06 -07:00
Emil Fresk
f0a59e3441 Less keywords 2023-04-05 21:29:17 +02:00
Emil Fresk
acc76c0355 Fix macros README path 2023-04-05 21:20:26 +02:00
Román Cárdenas
ce508a1882
Merge branch 'master' into master 2023-03-29 21:07:36 +02:00
bors[bot]
31055fa64a
Merge #719
719: Adding a limit that async HALs can read and have as max prio r=AfoHT a=korken89



Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2023-03-29 18:56:07 +00:00
Emil Fresk
323b847bf6 Adding a limit that async HALs can read and have as max prio 2023-03-29 20:46:24 +02:00
Román Cárdenas
06ddfb7ab8 explicit rtic::export::pend on macros 2023-03-20 07:59:42 +01:00
Emil Fresk
48e5acf294 Start async tasks at lowest priority 2023-03-19 22:15:36 +01:00
Henrik Tjäder
25491291af rtic-macros: clippy fixes 2023-03-04 21:09:22 +01:00
Henrik Tjäder
bdfad77938 rtic-macros: clippy fixes 2023-03-04 20:52:39 +01:00
Emil Fresk
1c26eb722f Add template for bindings 2023-03-01 00:35:21 +01:00
Emil Fresk
4442c46926 Update backend features to be more clear 2023-03-01 00:35:21 +01:00
Emil Fresk
e8cebff69e Added support for adding codegen to intrrupt entry and exit (needed for RISC-V) 2023-03-01 00:35:20 +01:00
Emil Fresk
b9e0f36aff Add feature flags 2023-03-01 00:35:20 +01:00
Emil Fresk
60f0342b69 Break out core specific codegen to bindings 2023-03-01 00:35:20 +01:00
Henrik Tjäder
9e445b3583 Move rtic macros to repo root, tune xtask 2023-03-01 00:35:13 +01:00