remove spinor defs from the swapper

should be defined in the board, not in the swapper
This commit is contained in:
bunnie 2025-05-05 01:48:46 +08:00
parent 71f444ff3d
commit e3cb5e495c

View file

@ -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