From 8a9dde611921e0881b518b34b1390a60949a9d45 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 14 Dec 2019 01:57:51 +0100 Subject: [PATCH] zynq::flash: add consts --- src/zynq/flash/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zynq/flash/mod.rs b/src/zynq/flash/mod.rs index 6bea2d4..e73b817 100644 --- a/src/zynq/flash/mod.rs +++ b/src/zynq/flash/mod.rs @@ -12,7 +12,10 @@ mod spi_flash_register; use spi_flash_register::*; const FLASH_BAUD_RATE: u32 = 50_000_000; -const SINGLE_CAPACITY: u32 = 16 * 1024 * 1024; +/// 16 MB +pub const SINGLE_CAPACITY: u32 = 0x1000000; +pub const SECTOR_SIZE: u32 = 0x10000; +pub const PAGE_SIZE: u32 = 0x100; /// Instruction: Read Identification const INST_RDID: u8 = 0x9F;