From e7ab979eb822bf24e045ffd20cd6f1118de6a53c Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 24 Oct 2021 18:23:22 +0200 Subject: [PATCH] nrf/nvmc: make PAGE_SIZE, FLASH_SIZE public. --- embassy-nrf/src/nvmc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-nrf/src/nvmc.rs b/embassy-nrf/src/nvmc.rs index 312e1d5a6..722e49d6c 100644 --- a/embassy-nrf/src/nvmc.rs +++ b/embassy-nrf/src/nvmc.rs @@ -10,8 +10,8 @@ use embassy::util::Unborrow; use embassy_hal_common::unborrow; use embedded_storage::nor_flash::{MultiwriteNorFlash, NorFlash, ReadNorFlash}; -const PAGE_SIZE: usize = 4096; -const FLASH_SIZE: usize = crate::chip::FLASH_SIZE; +pub const PAGE_SIZE: usize = 4096; +pub const FLASH_SIZE: usize = crate::chip::FLASH_SIZE; #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[cfg_attr(feature = "defmt", derive(defmt::Format))]