aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp
diff options
context:
space:
mode:
authorMagnus Nordlander <[email protected]>2025-08-05 09:53:16 +0200
committerMagnus Nordlander <[email protected]>2025-08-05 09:56:09 +0200
commit8965a13da4149a6f1a56c5abcf879ff8ad822844 (patch)
tree02840fff99801f534c7acdab907903d9dab9cb36 /embassy-rp
parent6d38e8b3060e4408ce493aee259048e5cf55dbb0 (diff)
Interface changes and added example
Diffstat (limited to 'embassy-rp')
-rw-r--r--embassy-rp/src/psram.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/embassy-rp/src/psram.rs b/embassy-rp/src/psram.rs
index 6da852b26..a4d619565 100644
--- a/embassy-rp/src/psram.rs
+++ b/embassy-rp/src/psram.rs
@@ -11,10 +11,9 @@
11#![cfg(feature = "_rp235x")] 11#![cfg(feature = "_rp235x")]
12 12
13use critical_section::{acquire, release, CriticalSection, RestoreState}; 13use critical_section::{acquire, release, CriticalSection, RestoreState};
14use embassy_hal_internal::Peri;
15 14
16use crate::qmi_cs1::QmiCs1; 15use crate::qmi_cs1::QmiCs1;
17use crate::{pac, peripherals}; 16use crate::pac;
18 17
19/// PSRAM errors. 18/// PSRAM errors.
20#[derive(Debug, Clone, Copy, PartialEq, Eq)] 19#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -215,11 +214,9 @@ impl<'d> Psram<'d> {
215 /// 214 ///
216 /// 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.
217 pub fn new( 216 pub fn new(
218 qmi_cs1_peripheral: Peri<'d, peripherals::QMI_CS1>, 217 qmi_cs1: QmiCs1<'d>,
219 cs1: Peri<'d, impl crate::qmi_cs1::QmiCs1Pin>,
220 config: Config, 218 config: Config,
221 ) -> Result<Self, Error> { 219 ) -> Result<Self, Error> {
222 let qmi_cs1 = QmiCs1::new(qmi_cs1_peripheral, cs1);
223 let qmi = pac::QMI; 220 let qmi = pac::QMI;
224 let xip = pac::XIP_CTRL; 221 let xip = pac::XIP_CTRL;
225 222