From 79479495895d51427c6c5c8b5bc2ff9aba2a685f Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 18 May 2025 09:24:33 +0800 Subject: [PATCH] add constant to precursor board file this helps with cross-target builds... --- libs/precursor-hal/src/board/precursor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/precursor-hal/src/board/precursor.rs b/libs/precursor-hal/src/board/precursor.rs index 761a2c07e..071439229 100644 --- a/libs/precursor-hal/src/board/precursor.rs +++ b/libs/precursor-hal/src/board/precursor.rs @@ -31,6 +31,8 @@ pub const EC_REGION_LEN: u32 = 0x0008_0000; pub const PDDB_LOC: u32 = 0x01D8_0000; // PDDB start pub const PDDB_LEN: u32 = EC_REGION_LOC - PDDB_LOC; // must be 64k-aligned (bulk erase block size) for proper function. +pub const SPINOR_ERASE_SIZE: u32 = 0x1000; + // quantum alloted to each process before a context switch is forced // This is also platform-specific because it can be tuned based on CPU speed. pub const BASE_QUANTA_MS: u32 = 10;