aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp
diff options
context:
space:
mode:
authorMagnus Nordlander <[email protected]>2025-08-05 09:58:33 +0200
committerMagnus Nordlander <[email protected]>2025-08-05 09:58:33 +0200
commit1e918331184f6fb11c08e5c5c7019d50452239dc (patch)
tree662760fa445db96af0469da91b032045ee5212a9 /embassy-rp
parent8965a13da4149a6f1a56c5abcf879ff8ad822844 (diff)
Apply rustfmt
Diffstat (limited to 'embassy-rp')
-rw-r--r--embassy-rp/src/psram.rs7
-rw-r--r--embassy-rp/src/qmi_cs1.rs8
2 files changed, 4 insertions, 11 deletions
diff --git a/embassy-rp/src/psram.rs b/embassy-rp/src/psram.rs
index a4d619565..0823b4be6 100644
--- a/embassy-rp/src/psram.rs
+++ b/embassy-rp/src/psram.rs
@@ -12,8 +12,8 @@
12 12
13use critical_section::{acquire, release, CriticalSection, RestoreState}; 13use critical_section::{acquire, release, CriticalSection, RestoreState};
14 14
15use crate::qmi_cs1::QmiCs1;
16use crate::pac; 15use crate::pac;
16use crate::qmi_cs1::QmiCs1;
17 17
18/// PSRAM errors. 18/// PSRAM errors.
19#[derive(Debug, Clone, Copy, PartialEq, Eq)] 19#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -213,10 +213,7 @@ impl<'d> Psram<'d> {
213 /// Create a new PSRAM driver instance. 213 /// Create a new PSRAM driver instance.
214 /// 214 ///
215 /// This will detect the PSRAM device and configure it for memory-mapped access. 215 /// This will detect the PSRAM device and configure it for memory-mapped access.
216 pub fn new( 216 pub fn new(qmi_cs1: QmiCs1<'d>, config: Config) -> Result<Self, Error> {
217 qmi_cs1: QmiCs1<'d>,
218 config: Config,
219 ) -> Result<Self, Error> {
220 let qmi = pac::QMI; 217 let qmi = pac::QMI;
221 let xip = pac::XIP_CTRL; 218 let xip = pac::XIP_CTRL;
222 219
diff --git a/embassy-rp/src/qmi_cs1.rs b/embassy-rp/src/qmi_cs1.rs
index ada420432..b8ae41e35 100644
--- a/embassy-rp/src/qmi_cs1.rs
+++ b/embassy-rp/src/qmi_cs1.rs
@@ -36,17 +36,13 @@ impl<'d> QmiCs1<'d> {
36 } 36 }
37} 37}
38 38
39trait SealedInstance { 39trait SealedInstance {}
40
41}
42 40
43/// QMI CS1 instance trait. 41/// QMI CS1 instance trait.
44#[allow(private_bounds)] 42#[allow(private_bounds)]
45pub trait Instance: SealedInstance + PeripheralType {} 43pub trait Instance: SealedInstance + PeripheralType {}
46 44
47impl SealedInstance for peripherals::QMI_CS1 { 45impl SealedInstance for peripherals::QMI_CS1 {}
48
49}
50 46
51impl Instance for peripherals::QMI_CS1 {} 47impl Instance for peripherals::QMI_CS1 {}
52 48