Commit graph

1767 commits

Author SHA1 Message Date
Henrik Tjäder
6903d208b6 Book: Fix #1024 async closures stable since 1.85 2025-03-12 19:55:06 +00:00
Henrik Tjäder
f5cfcbbd79 RTIC: Changelog newline 2025-03-12 19:41:40 +00:00
Henrik Tjäder
228d1e9675 Book: Change chapter title to not be ARM specific 2025-03-12 19:41:40 +00:00
Román Cárdenas Rodríguez
5d5ecb95c2 Adding docs about RISC-V 2025-03-12 19:41:40 +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
bac77de9bc rtic-sync: release 1.3.1 2025-03-12 19:13:12 +00:00
datdenkikniet
1b8eb110d9 Update CHANGELOG.md 2025-03-12 19:04:14 +00:00
datdenkikniet
0a01fde4bd Fix #780 2025-03-12 19:04:14 +00:00
Joël Bourgault
1123fd8731 docs: fix minor typos in book preface 2025-03-12 12:09:28 +00:00
Ronald Weber
b18c1e2b6b Fix "the the" in comment 2025-02-19 19:14:04 +00:00
Ronald Weber
587f183842
Update esp32-c3 and esp-hal crates (#1019)
* Bump esp32-c3 to 0.27.0

* Update esp-hal to 0.23.1

* Add Changelog entry
2025-02-09 20:51:19 +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
Henrik Tjäder
26b1ab05eb
monotonics add readme (#1012)
* rtic-monotonics: Add README

* rtic-monotonics: Add links to changelog
2025-01-22 19:41:42 +00:00
Henrik Tjäder
1a8b5f27a0
rtic-monotonics: rp2040 extra parenthesis (#1010) 2025-01-15 20:02:56 +00:00
rnld wbr
6f6a56387c
Add blinky example for STM32F1 bluepill board (#1007)
Code taken from stm32f3_blinky example with LED port adapted to bluepill
board.
Port initialization and README from v1 rtic-examples with slight edits.
2025-01-15 19:11:27 +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
Henrik Tjäder
f17915842f
docs/changelog reorder (#1000)
* rtic: Changelog reorder based on date

* rtic: Changelog: Emphasis on stack-like operation
2024-11-27 19:22:21 +00: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
MikeGstefan
ed026cc4a3
bump esp32c3 (#997)
* bump esp32-c3

* update changelog and example

* rtic-monotonics: update esp32c3 to v0.26

---------

Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-11-27 18:59:55 +00:00
Emil Fresk
d251ba7173 Release rtic-monotonics 2.0.3 2024-10-24 07:46:30 +02:00
Finomnis
3dfef74a4c
[monotonics] Fix STM32 read-modify-write race condition (#984)
* Fix stm32 read-modify-write problem

The `SR` register for STM32 clears when writing a zero to a bit.
Therefore, all registers that should not be cleared need to be `1`.

`modify` here caused a read-modify-write error that could clear
unrelated flags.

* Add changelog

* Make initialization more deterministic

* Update changelog

* Beautification in comments

---------

Co-authored-by: Martin Stumpf <martin.stumpf@vected.de>
2024-10-23 19:28:42 +00:00
Emil Fresk
0f532c6b48 rtic-monotonics: Improve docs on interrupt priority 2024-10-23 20:57:42 +02:00
Sebastian Kuzminsky
1461977cf7
Signal ergo minor fixes (#986)
* rtic_sync::signal: fix some docs typos

* impl Debug for Signal, SignalReader, and SignalWriter

This facilitates e.g. `my_task::spawn(my_signal_reader).unwrap();`
2024-10-23 18:55:08 +00:00
dependabot[bot]
00baf53180
Update riscv requirement from 0.11.0 to 0.12.1 (#982)
---
updated-dependencies:
- dependency-name: riscv
  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-10-23 18:15:06 +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
Henrik Tjäder
89d76a53d8
Book: Fix link to systick-monotonic (#981)
Fixes #980
2024-10-16 17:53:39 +00:00
Milton Eduardo Sosa
87a8b74908
Add example to poll encoder and display value on I2C display (#963)
Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
2024-10-02 18:46:42 +00:00
onsdagens
805ea267a8
Add SYSTIMER based ESP32-C3 monotonic (#972)
* add esp32c3 monotonic

* fix tests
2024-09-29 04:21:14 +00:00
Michael Zill
6e68a5e615
Feature/rp235x (#970)
* Add support for RP235x (Raspberry Pico 2)

The xtask build system has not been updated therefor the
components need to be build through Cargo

* Remove unnecessary thumbv8mainhf-backend definition

* Remove unnecessary thumbv8m.main-none-eabihf target

* Update CHANGELOG

* Remove default feature rp235x from rtic-monotonics

* Remove features from rp235x-pac dependency in rtic-monotonics for rp235x
2024-09-29 04:19:37 +00:00
Sympatron GmbH
7b534b38e5
Replace proc-macro-error with proc-macro-error2 (#979) 2024-09-29 04:15:12 +00:00
Robin Mueller
056616c772
Fix for system_monotonic macro with 1 argument (#978) 2024-09-18 13:15:17 +00:00
Robin Mueller
d81c3758d5
update docs (#977)
Add notice for systems without native CAS operations
2024-09-18 13:14:28 +00:00
Henrik Tjäder
67c22862f6
docs: migration softare->software (#969) 2024-08-28 18:09:03 +00:00
dalegaard
a636f4e4ad
Change timeout/delay functions to non-async (#910)
Because of a compiler bug, the `async` implementations of
`delay`/`delay_until`/`timeout`/`timeout_at` produce much larger RAM
footprint than they should.

Fixes #890.

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2024-08-21 18:40:52 +00:00
Emil Fresk
2c85ee4620
Fix codegen emitting unqualified Result (#967) 2024-08-07 19:17:34 +00:00
Emil Fresk
3e65a83110 Fix CI with 1.80 2024-08-07 21:09:58 +02:00
Emil Fresk
f925cbe506 Release rtic-monotonics v2.0.2 2024-07-06 12:55:29 +02:00
Finomnis
5cafe9dd0b
Fix STM32 Monotonic for peripherals with only two Clock Compare modules (#960)
* Update dependencies of stm32g0 timer example

* Replace obsolete probe-run with probe-rs run

* Modify stm32 monotonic to work with timers that have only 2 compare modules

* Add changelog

* Fix typo
2024-07-05 16:19:51 +00:00
Milton Eduardo Sosa
624f643a97
Add example for STM32F411 with HW & SW tasks communicating via MPSC channel (#953)
* Add example with HW & SW tasks communicating via MPSC channel

* example: f411-adc-mpcsc: nit: typos

* example: f411-adc-mpsc: prefer text over picture

---------

Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-06-26 17:35:48 +00:00
Milton Eduardo Sosa
35891f4559
Add ADC example for STM32F411 (#952)
* Add ADC example for STM32F411

* Update dependencies

* Update RTIC version

* example: f411-adc: prefer text over picture

* example: f411-adc: nit: typo

---------

Co-authored-by: Milton Eduardo Sosa <milton@Miltons-MacBook-Pro.local>
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
2024-06-26 17:35:43 +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
Emil Fresk
07b460fc0f Fix Default for rtic_sync::signal 2024-06-23 08:05:45 +02:00
Henrik Tjäder
8871c85022 rtic-sync: clippy::new-without-default lint 2024-06-23 08:05:45 +02:00
Henrik Tjäder
d89f91109f xtasks: handle platform flagged as unused 2024-06-23 08:05:45 +02:00
Henrik Tjäder
f3ae9d166d rtic-macros: handle backend flagged as unused 2024-06-23 08:05:45 +02:00