From e3cb5e495cf671d3a2c48f2c8cf46c590f2263de Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 5 May 2025 01:48:46 +0800 Subject: [PATCH] remove spinor defs from the swapper should be defined in the board, not in the swapper --- services/xous-swapper/src/api.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/xous-swapper/src/api.rs b/services/xous-swapper/src/api.rs index 89565cc53..c7d005296 100644 --- a/services/xous-swapper/src/api.rs +++ b/services/xous-swapper/src/api.rs @@ -1,11 +1,5 @@ pub const SERVER_NAME_SPINOR: &str = "_SPINOR Hardware Interface Server_"; -#[cfg_attr(not(target_os = "xous"), allow(dead_code))] -pub const SPINOR_ERASE_SIZE: u32 = 0x1000; // this is the smallest sector size. - -#[allow(dead_code)] -pub const SPINOR_BULK_ERASE_SIZE: u32 = 0x1_0000; // this is the bulk erase size. - #[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)] pub(crate) enum Opcode { /// writes are split into multiple transactions. Must acquire exclusive rights before initiation