nrf/nvmc: make PAGE_SIZE, FLASH_SIZE public.

This commit is contained in:
Dario Nieuwenhuis 2021-10-24 18:23:22 +02:00
parent f3f3858328
commit e7ab979eb8

View File

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