mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Did run cargo +nighly fmt to solve formatting issues
This commit is contained in:
parent
f6d91caf0f
commit
3f4a552f2e
@ -11,10 +11,10 @@ use core::cell::RefCell;
|
||||
use core::future::Future;
|
||||
use core::iter;
|
||||
use core::marker::PhantomData;
|
||||
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
||||
use embassy_sync::blocking_mutex::Mutex;
|
||||
|
||||
use embassy_hal_internal::{Peripheral, PeripheralRef};
|
||||
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
||||
use embassy_sync::blocking_mutex::Mutex;
|
||||
use embassy_sync::channel::Channel;
|
||||
use embassy_sync::waitqueue::AtomicWaker;
|
||||
#[cfg(feature = "time")]
|
||||
@ -54,7 +54,7 @@ pub enum Error {
|
||||
NoTransaction,
|
||||
}
|
||||
|
||||
/// Address 2 can be masked, so it will respond to a wider range of addresses.
|
||||
/// Address 2 can be masked, so it will respond to a wider range of addresses.
|
||||
#[repr(u8)]
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
|
||||
pub enum Address2Mask {
|
||||
|
@ -1,12 +1,12 @@
|
||||
use core::result::Result;
|
||||
|
||||
use crate::i2c::Error;
|
||||
use crate::mode::Mode;
|
||||
use embassy_sync::{blocking_mutex::raw::CriticalSectionRawMutex, channel::Receiver};
|
||||
use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
|
||||
use embassy_sync::channel::Receiver;
|
||||
use stm32_metapac::i2c;
|
||||
|
||||
use super::{AddressIndex, I2c, Instance};
|
||||
use crate::i2c::Dir;
|
||||
use crate::i2c::{Dir, Error};
|
||||
use crate::mode::Mode;
|
||||
|
||||
/// buffer used for the transactions
|
||||
pub type I2cBuffer = [u8; SLAVE_BUFFER_SIZE];
|
||||
|
@ -1,9 +1,9 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use core::fmt;
|
||||
use core::fmt::Write;
|
||||
use core::str;
|
||||
use core::{fmt, str};
|
||||
|
||||
use defmt::info;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::gpio::{Level, Output, Speed};
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
// test is targeted for nucleo-g070RB board
|
||||
|
||||
use core::fmt;
|
||||
use core::fmt::Write;
|
||||
use core::str;
|
||||
use core::{fmt, str};
|
||||
|
||||
use defmt::info;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_stm32::gpio::{Level, Output, Speed};
|
||||
|
Loading…
Reference in New Issue
Block a user