Commit graph

120 commits

Author SHA1 Message Date
Henrik Tjäder
1102197217 CI: xtask: Resolve warning about mixed lifetimes 2025-09-17 20:37:07 +02:00
Henrik Tjäder
67730ceedb xtask: size: Store the expected output same as run 2025-07-02 18:34:20 +00:00
Henrik Tjäder
90bb324906 xtask: Add --loom argument to test
For now filter to only rtic-sync in ci subcommand
2025-06-15 09:58:25 +00:00
Henrik Tjäder
23e5d334da xtask: rename variable cargologlevel to cargoarg 2025-06-15 08:11:11 +00:00
Henrik Tjäder
38cba9f3ad xtask: Cargo clippy lints 2025-06-15 08:11:11 +00:00
Henrik Tjäder
9bc60cc5ed xtask: run: Use common BuildMode 2025-06-15 08:11:11 +00:00
Henrik Tjäder
c27c251542 xtask: Add AllCi functionality: Run all xtask 2025-06-15 08:11:11 +00:00
Henrik Tjäder
0cf2efdd2c xtask: AllCi --failearly option 2025-06-15 08:11:11 +00:00
Henrik Tjäder
94cad96829 xtask: Arg is not only used for cargo size 2025-06-15 08:11:11 +00:00
Henrik Tjäder
dd3d56625e xtask: cargo_format: grab check_only from struct 2025-06-15 08:11:11 +00:00
Henrik Tjäder
28257b001e xtask: Add defaults for PackageOpt and FormatOpt 2025-06-15 08:11:11 +00:00
Henrik Tjäder
0a68825911 xtask: Add ci/AllCi command 2025-06-15 08:11:11 +00:00
Henrik Tjäder
5131474221 xtask: Move info prints into run 2025-06-15 08:11:11 +00:00
Wouter Geraedts
b97bc79126 Added esp32c6 support and example 2025-04-07 21:11:21 +00:00
datdenkikniet
cfcf21ffe4 ci: Check at least one C3 target 2025-03-23 09:57:48 +00:00
datdenkikniet
347bfaae02 ci & xtask: support hifive clippy 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
183e73904a Prepare for new riscv ecosystem 2025-03-12 19:41:40 +00:00
Dan Whitman
0935051d8b
ATSAMD RTC monotonic referral in documentation (#1014)
* rtic-monotonics: Adds a section to the module documentation about ATSAMD chip monotonics provided in the `atsamd-hal` crate

* rtic-monotonics: Adds a section to README listing the supported microcontroller platforms.

* rtic-sync: Fix clippy complaints

error: the following explicit lifetimes could be elided: 'a
   --> rtic-sync/src/signal.rs:113:6
    |
113 | impl<'a, T: Copy> SignalReader<'a, T> {
    |      ^^                        ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
    |
113 - impl<'a, T: Copy> SignalReader<'a, T> {
113 + impl<T: Copy> SignalReader<'_, T> {

* xtask: Clippy fix warning

warning: elided lifetime has a name
   --> xtask/src/cargo_command.rs:427:14
    |
420 |     fn build_args<'i, T: Iterator<Item = &'i str>>(
    |                   -- lifetime `'i` declared here
...
427 |     ) -> Vec<&str> {
    |              ^ this elided lifetime gets resolved as `'i`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default

---------

Co-authored-by: Dan Whitman <daniel.whitman.2@us.af.mil>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2025-01-24 20:08:52 +00:00
Emil Fresk
861a63dbe3 Update embedded-hal-bus to 0.2 and fix portable-atomic features 2024-06-23 09:20:32 +02:00
Henrik Tjäder
918f9c3f13
Breaking change: portable-atomic (#922)
* Atomics: Replace polyfill with portable-atomic

* Update Cargo.lock for examples

* RTIC: portable-atomic: Update changelog

* rtic-monotonics: portable-atomic: Update changelog

* lm3s6965: enable critical-section when testing

* xtask: Enable portable-atomic/critical-section

When dealing with rtic-monotonics

* rtic-monotonics: portable-atomics: Do not disable the ability to fallback

---------

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2024-06-23 06:45:49 +00:00
dependabot[bot]
9aeae030e7
Update diffy requirement from 0.3.0 to 0.4.0 (#950)
Updates the requirements on [diffy](https://github.com/bmwill/diffy) to permit the latest version.
- [Changelog](https://github.com/bmwill/diffy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bmwill/diffy/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-23 06:22:17 +00:00
Henrik Tjäder
d89f91109f xtasks: handle platform flagged as unused 2024-06-23 08:05:45 +02:00
Foo
6865b69616
add support for nrf52805 (#941) 2024-05-27 11:26:09 +00:00
Finomnis
8c23e178f3
Monotonic rewrite (#874)
* Rework timer_queue and monotonic architecture

Goals:
 * make Monotonic purely internal
 * make Monotonic purely tick passed, no fugit involved
 * create a wrapper struct in the user's code via a macro that then
   converts the "now" from the tick based monotonic to a fugit based
   timestamp

We need to proxy the delay functions of the timer queue anyway,
so we could simply perform the conversion in those proxy functions.

* Update cargo.lock

* Update readme of rtic-time

* CI: ESP32: Redact esp_image: Too volatile

* Fixup: Changelog double entry rebase mistake

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-04-10 22:00:38 +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
2798500957 Make RTIC 2 work on stable by using main's stack as an allocator 2024-02-27 12:22:18 +01:00
Emil Fresk
4a23c8d6da
rtic-sync: Remove unstable flag, and add defmt derives (#889) 2024-02-23 07:38:10 +00:00
Finomnis
c227a71d24
Refactor race condition free timer helper (#850)
* Implement half_period_counter in rtic-time

* Rename compute_now to calculate_now, use it in stm32 and imxrt

* Add more tests

* Add some docs

* Fix clippy warning, add imxrt timer to monotonics tests

* Bump dependency version to make sure monotonics will build properly

* Add changelog to rtic-monotonics

* Add more docs

* Add more docs

* Finish documentation

* Fix typos

* Switch from atomic-polyfill to portable-atomic

* Some more doc fixes

* More doc fixes

* Minor doc fix

* Minor doc fix

* Fix Atomics not existing

* Fix example

* Minor example improvement

* Revert back to atomic-polyfill

* Fix cargo.toml formatting

* Remove atomic-polyfill

* Attempt to fix unused macro warning

* Remove atomics completely from half period counter

* Minor doc fix

* Doc fixes

* Doc fixes

* Remove obsolete comment

* Fix ordering in monotonic initialization sequence
2023-12-04 14:53:02 +00:00
Nils Fitinghoff
ff5cad9cd2 rtic-sync: Add SPI bus sharing with arbiter 2023-11-22 19:42:46 +00:00
Emil Fresk
3c9a8f290d Fix CI with async_fn_in_trait not being a feature 2023-11-01 19:52:57 +00:00
Nils Fitinghoff
4ea73021d6 rtic-monotonics: Add 64-bit SysTick monotonic
Counting at 1 kHz, 32 bits for counting ticks is not enough to ensure
monotonicity for more than 50 days. Add a feature to change the backing
storage to 64 bits.
2023-08-25 15:16:18 +00:00
dependabot[bot]
ab55190bc6
Update pretty_env_logger requirement from 0.4.0 to 0.5.0
Updates the requirements on [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) to permit the latest version.
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.4.0...v0.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 17:03:43 +00:00
datdenkikniet
02215b6972 Check rtic-monotonics with eh-async enabled 2023-04-23 21:46:47 +02:00
datdenkikniet
b7e4498a71 Also allow denying for QEMU, and fix the link-arg problem caused by
overriding RUSTFLAGS
2023-04-16 14:14:49 +02:00
datdenkikniet
e4b673646a Tests should always deny warnings 2023-04-16 13:30:23 +02:00
datdenkikniet
0ee2d2c2db Actually chain these 2023-04-16 13:27:54 +02:00
datdenkikniet
319c2263f3 Also print extra env variables as cmd_str 2023-04-16 13:27:46 +02:00
datdenkikniet
bc92e43b11 Rename + better printout 2023-04-16 13:22:10 +02:00
datdenkikniet
85e2cd6d4b Also always deny warnings for doc 2023-04-16 13:16:28 +02:00
datdenkikniet
2db26c1015 Deny on warnings in xtasks 2023-04-16 13:08:46 +02:00
datdenkikniet
4d3361658b Unconditionally deny warnings for clippy 2023-04-16 13:08:46 +02:00
datdenkikniet
fd011cd5ec FIx printing for Run and Qemu 2023-04-16 13:08:46 +02:00
datdenkikniet
65f1f4c1b7 Also separate all results and data 2023-04-16 13:08:46 +02:00
datdenkikniet
b87d55f960 Move run into a subdirectory and split iter stuff into a module 2023-04-16 13:08:46 +02:00
datdenkikniet
c6b43800d2 Move all run-related stuff into run 2023-04-16 13:08:46 +02:00
datdenkikniet
66a3d02b45 Rename cargo_commands -> run
Rename command -> cargo_command
2023-04-16 13:08:46 +02:00
datdenkikniet
b59bf686c1 Redo command building so that we don't repeat as much, and to
make it easier to add new ones
2023-04-16 13:08:46 +02:00
datdenkikniet
404867cdf9 CargoCommand can take any package 2023-04-16 13:08:46 +02:00