Skip to content

Commit

Permalink
adapt to trussed-dev/littlefs2#24; rename to LOOKAHEAD_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Feb 6, 2023
1 parent 6ae4070 commit acc5e48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drivers/flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub mod littlefs_params {
pub const BLOCK_CYCLES: isize = -1;

pub type CACHE_SIZE = U512;
pub type LOOKAHEADWORDS_SIZE = U16;
pub type LOOKAHEAD_SIZE = U8;
}

#[cfg(feature = "littlefs")]
Expand Down Expand Up @@ -399,7 +399,7 @@ macro_rules! littlefs2_filesystem {
const BLOCK_CYCLES: isize = $crate::drivers::flash::littlefs_params::BLOCK_CYCLES;

type CACHE_SIZE = $crate::drivers::flash::littlefs_params::CACHE_SIZE;
type LOOKAHEADWORDS_SIZE = $crate::drivers::flash::littlefs_params::LOOKAHEADWORDS_SIZE;
type LOOKAHEAD_SIZE = $crate::drivers::flash::littlefs_params::LOOKAHEAD_SIZE;


fn read(&mut self, off: usize, buf: &mut [u8]) -> LfsResult<usize> {
Expand Down Expand Up @@ -483,7 +483,7 @@ macro_rules! littlefs2_prince_filesystem {
const BLOCK_CYCLES: isize = $crate::drivers::flash::littlefs_params::BLOCK_CYCLES;

type CACHE_SIZE = $crate::drivers::flash::littlefs_params::CACHE_SIZE;
type LOOKAHEADWORDS_SIZE = $crate::drivers::flash::littlefs_params::LOOKAHEADWORDS_SIZE;
type LOOKAHEAD_SIZE = $crate::drivers::flash::littlefs_params::LOOKAHEAD_SIZE;


fn read(&mut self, off: usize, buf: &mut [u8]) -> LfsResult<usize> {
Expand Down

0 comments on commit acc5e48

Please sign in to comment.