Skip to content

Commit

Permalink
Fix psram
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 25, 2024
1 parent c2dd725 commit 24230ac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions esp-hal/src/soc/psram_common.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use core::ops::Range;

/// Size of PSRAM
///
/// [PsramSize::AutoDetect] will try to detect the size of PSRAM
Expand Down Expand Up @@ -28,7 +26,7 @@ impl PsramSize {

/// Returns the address and size of the available in external memory.
#[cfg(any(feature = "quad-psram", feature = "octal-psram"))]
pub fn psram_raw_parts(psram: &crate::peripherals::PSRAM) -> (*mut u8, usize) {
let range = psram_range(psram);
pub fn psram_raw_parts(_psram: &crate::peripherals::PSRAM) -> (*mut u8, usize) {
let range = crate::soc::psram_range();
(range.start as *mut u8, range.end - range.start)
}

0 comments on commit 24230ac

Please sign in to comment.