Commit graph

9 commits

Author SHA1 Message Date
datdenkikniet
b5db435501 rtic-sync: introduce loom compat layer and apply it to channel 2025-03-24 07:36:23 +00:00
Cyril Marpaud
6f57469bb5 rtic-sync(docs): harmonize make_signal and make_channel macros 2025-03-16 16:24:54 +00:00
Cyril Marpaud
94b2d5e9c0 rtic-sync: don't force Signal import on make_signal!() use 2025-03-16 16:24:54 +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
b41a10e794 Fix documentation (docs.rs) and release 2.1.2 2024-12-06 14:09:26 +01: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
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
AdinAck
d516d9a214
Add Signal to rtic-sync (#934)
* add signal to rtic-sync

* woops update changelog

* remove example, too comlicated for a doc

TODO: add example to rtic-examples repo

* fix @korken89's issues

* ...remove fence

* fix clippy warnings

* add tests
2024-06-19 18:52:38 +00:00