diff options
| author | Cristian Milatinov <[email protected]> | 2025-07-05 01:15:15 -0400 |
|---|---|---|
| committer | Cristian Milatinov <[email protected]> | 2025-07-05 01:15:15 -0400 |
| commit | 1f87e4783110cb752f364657ae7c2759d6a2ac27 (patch) | |
| tree | 5851b58a4338b102fbe4826580a38561b3652a9a | |
| parent | fb21fcf4f1d2acfa15cf4da03fff190c0bb9df59 (diff) | |
Run cargo fmt
| -rw-r--r-- | embassy-stm32/src/qspi/enums.rs | 6 | ||||
| -rw-r--r-- | embassy-stm32/src/qspi/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/qspi/enums.rs b/embassy-stm32/src/qspi/enums.rs index 3905fcbf8..fa5e36d06 100644 --- a/embassy-stm32/src/qspi/enums.rs +++ b/embassy-stm32/src/qspi/enums.rs | |||
| @@ -336,14 +336,14 @@ impl From<DummyCycles> for u8 { | |||
| 336 | #[derive(Copy, Clone)] | 336 | #[derive(Copy, Clone)] |
| 337 | pub enum SampleShifting { | 337 | pub enum SampleShifting { |
| 338 | None, | 338 | None, |
| 339 | HalfCycle | 339 | HalfCycle, |
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | impl From<SampleShifting> for bool { | 342 | impl From<SampleShifting> for bool { |
| 343 | fn from(value: SampleShifting) -> Self { | 343 | fn from(value: SampleShifting) -> Self { |
| 344 | match value { | 344 | match value { |
| 345 | SampleShifting::None => false, | 345 | SampleShifting::None => false, |
| 346 | SampleShifting::HalfCycle => true | 346 | SampleShifting::HalfCycle => true, |
| 347 | } | 347 | } |
| 348 | } | 348 | } |
| 349 | } \ No newline at end of file | 349 | } |
diff --git a/embassy-stm32/src/qspi/mod.rs b/embassy-stm32/src/qspi/mod.rs index 52b1f3084..1e20d7cd3 100644 --- a/embassy-stm32/src/qspi/mod.rs +++ b/embassy-stm32/src/qspi/mod.rs | |||
| @@ -70,7 +70,7 @@ impl Default for Config { | |||
| 70 | prescaler: 128, | 70 | prescaler: 128, |
| 71 | fifo_threshold: FIFOThresholdLevel::_17Bytes, | 71 | fifo_threshold: FIFOThresholdLevel::_17Bytes, |
| 72 | cs_high_time: ChipSelectHighTime::_5Cycle, | 72 | cs_high_time: ChipSelectHighTime::_5Cycle, |
| 73 | sample_shifting: SampleShifting::None | 73 | sample_shifting: SampleShifting::None, |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
