mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
Placate clippy
This commit is contained in:
parent
be6648c0ee
commit
5a8ff70f85
3 changed files with 6 additions and 6 deletions
|
|
@ -88,7 +88,7 @@ with_backend! {
|
||||||
//
|
//
|
||||||
// If no "target" directory is found, <project_dir>/<out_dir_root> is used
|
// If no "target" directory is found, <project_dir>/<out_dir_root> is used
|
||||||
for path in out_dir.ancestors() {
|
for path in out_dir.ancestors() {
|
||||||
if let Some(dir) = path.components().last() {
|
if let Some(dir) = path.components().next_back() {
|
||||||
let dir = dir.as_os_str().to_str().unwrap();
|
let dir = dir.as_os_str().to_str().unwrap();
|
||||||
|
|
||||||
if dir.starts_with("thumbv") || dir.starts_with("riscv") {
|
if dir.starts_with("thumbv") || dir.starts_with("riscv") {
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,8 @@ macro_rules! __internal_create_imxrt_timer_struct {
|
||||||
///
|
///
|
||||||
/// * `name` - The name that the monotonic type will have.
|
/// * `name` - The name that the monotonic type will have.
|
||||||
/// * `tick_rate_hz` - The tick rate of the timer peripheral. It's the user's responsibility
|
/// * `tick_rate_hz` - The tick rate of the timer peripheral. It's the user's responsibility
|
||||||
/// to configure the peripheral to the given frequency before starting the
|
/// to configure the peripheral to the given frequency before starting the
|
||||||
/// monotonic.
|
/// monotonic.
|
||||||
#[cfg(feature = "imxrt_gpt1")]
|
#[cfg(feature = "imxrt_gpt1")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! imxrt_gpt1_monotonic {
|
macro_rules! imxrt_gpt1_monotonic {
|
||||||
|
|
@ -121,8 +121,8 @@ macro_rules! imxrt_gpt1_monotonic {
|
||||||
///
|
///
|
||||||
/// * `name` - The name that the monotonic type will have.
|
/// * `name` - The name that the monotonic type will have.
|
||||||
/// * `tick_rate_hz` - The tick rate of the timer peripheral. It's the user's responsibility
|
/// * `tick_rate_hz` - The tick rate of the timer peripheral. It's the user's responsibility
|
||||||
/// to configure the peripheral to the given frequency before starting the
|
/// to configure the peripheral to the given frequency before starting the
|
||||||
/// monotonic.
|
/// monotonic.
|
||||||
#[cfg(feature = "imxrt_gpt2")]
|
#[cfg(feature = "imxrt_gpt2")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! imxrt_gpt2_monotonic {
|
macro_rules! imxrt_gpt2_monotonic {
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ impl TimerQueueBackend for SystickBackend {
|
||||||
///
|
///
|
||||||
/// * `name` - The name that the monotonic type will have.
|
/// * `name` - The name that the monotonic type will have.
|
||||||
/// * `tick_rate_hz` - The tick rate of the timer peripheral.
|
/// * `tick_rate_hz` - The tick rate of the timer peripheral.
|
||||||
/// Can be omitted; defaults to 1kHz.
|
/// Can be omitted; defaults to 1kHz.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! systick_monotonic {
|
macro_rules! systick_monotonic {
|
||||||
($name:ident) => {
|
($name:ident) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue