mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
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>
This commit is contained in:
parent
26b1ab05eb
commit
0935051d8b
4 changed files with 17 additions and 2 deletions
|
|
@ -15,6 +15,16 @@ For RTIC v1 see [`rtic-monotonic`](https://github.com/rtic-rs/rtic-monotonic)
|
||||||
|
|
||||||
### [Changelog `rtic-monotonics`](https://github.com/rtic-rs/rtic/blob/master/rtic-monotonics/CHANGELOG.md)
|
### [Changelog `rtic-monotonics`](https://github.com/rtic-rs/rtic/blob/master/rtic-monotonics/CHANGELOG.md)
|
||||||
|
|
||||||
|
## Supported Platforms
|
||||||
|
|
||||||
|
The following microcontroller families feature efficient monotonics using peripherals.
|
||||||
|
Refer to the [crate documentation](https://docs.rs/rtic-monotonics) for more details.
|
||||||
|
|
||||||
|
- RP2040
|
||||||
|
- i.MX RT
|
||||||
|
- nRF
|
||||||
|
- ATSAMD
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Licensed under either of
|
Licensed under either of
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,11 @@
|
||||||
//! tag, describing what parts _do_ support that monotonic. Monotonics without an
|
//! tag, describing what parts _do_ support that monotonic. Monotonics without an
|
||||||
//! `Available on crate features X only` tag are available on any `nrf52*` feature.
|
//! `Available on crate features X only` tag are available on any `nrf52*` feature.
|
||||||
//!
|
//!
|
||||||
|
//! # ATSAMD
|
||||||
|
//! Monotonics for the ATSAMD family of parts using the real time clock (RTC) are provided in the
|
||||||
|
//! [`atsamd-hal`](https://docs.rs/atsamd-hal/latest/atsamd_hal/rtc/rtic/index.html)
|
||||||
|
//! crate with the `rtic` feature enabled.
|
||||||
|
//!
|
||||||
//! # Priority of interrupt handlers
|
//! # Priority of interrupt handlers
|
||||||
//!
|
//!
|
||||||
//! The priority of timer interrupts are based on `RTIC_ASYNC_MAX_LOGICAL_PRIO` generated by RTIC.
|
//! The priority of timer interrupts are based on `RTIC_ASYNC_MAX_LOGICAL_PRIO` generated by RTIC.
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T: Copy> SignalReader<'a, T> {
|
impl<T: Copy> SignalReader<'_, T> {
|
||||||
/// Immediately read and evict the latest value stored in the Signal.
|
/// Immediately read and evict the latest value stored in the Signal.
|
||||||
fn take(&mut self) -> Store<T> {
|
fn take(&mut self) -> Store<T> {
|
||||||
critical_section::with(|_| {
|
critical_section::with(|_| {
|
||||||
|
|
|
||||||
|
|
@ -424,7 +424,7 @@ impl<'a> CargoCommand<'a> {
|
||||||
features: &'i Option<String>,
|
features: &'i Option<String>,
|
||||||
mode: Option<&'i BuildMode>,
|
mode: Option<&'i BuildMode>,
|
||||||
extra: T,
|
extra: T,
|
||||||
) -> Vec<&str> {
|
) -> Vec<&'i str> {
|
||||||
let mut args: Vec<&str> = Vec::new();
|
let mut args: Vec<&str> = Vec::new();
|
||||||
|
|
||||||
if nightly {
|
if nightly {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue