Skip to content

Commit

Permalink
Correct flash size
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidmackenzie committed Mar 5, 2025
1 parent 6aa2cbe commit 0bf76e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions porky/src/flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ use faster_hex::hex_encode;
use static_cell::StaticCell;
use {defmt_rtt as _, panic_probe as _};

#[cfg(not(any(feature = "pico1", feature = "pico2")))]
compile_error!("You must choose either feature \"pico1\" or \"pico2\"");

#[cfg(all(feature = "pico1", not(feature = "pico2")))]
pub const FLASH_SIZE: usize = 2 * 1024 * 1024;
#[cfg(all(feature = "pico2", not(feature = "pico1")))]
pub const FLASH_SIZE: usize = 4 * 1024 * 1024;

extern "C" {
// Flash storage used for configuration
Expand Down

0 comments on commit 0bf76e3

Please sign in to comment.