mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-29 21:31:08 +00:00
Run cargo fmt
This commit is contained in:
parent
fb21fcf4f1
commit
1f87e47831
@ -336,14 +336,14 @@ impl From<DummyCycles> for u8 {
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub enum SampleShifting {
|
pub enum SampleShifting {
|
||||||
None,
|
None,
|
||||||
HalfCycle
|
HalfCycle,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<SampleShifting> for bool {
|
impl From<SampleShifting> for bool {
|
||||||
fn from(value: SampleShifting) -> Self {
|
fn from(value: SampleShifting) -> Self {
|
||||||
match value {
|
match value {
|
||||||
SampleShifting::None => false,
|
SampleShifting::None => false,
|
||||||
SampleShifting::HalfCycle => true
|
SampleShifting::HalfCycle => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -70,7 +70,7 @@ impl Default for Config {
|
|||||||
prescaler: 128,
|
prescaler: 128,
|
||||||
fifo_threshold: FIFOThresholdLevel::_17Bytes,
|
fifo_threshold: FIFOThresholdLevel::_17Bytes,
|
||||||
cs_high_time: ChipSelectHighTime::_5Cycle,
|
cs_high_time: ChipSelectHighTime::_5Cycle,
|
||||||
sample_shifting: SampleShifting::None
|
sample_shifting: SampleShifting::None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user