summaryrefslogtreecommitdiff
path: root/embassy-nrf/src/nvmc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nrf/src/nvmc.rs')
-rw-r--r--embassy-nrf/src/nvmc.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/embassy-nrf/src/nvmc.rs b/embassy-nrf/src/nvmc.rs
index 108a71d5..e350f8c9 100644
--- a/embassy-nrf/src/nvmc.rs
+++ b/embassy-nrf/src/nvmc.rs
@@ -1,17 +1,16 @@
//! Nvmcerature sensor interface.
-use crate::pac;
-use crate::peripherals::NVMC;
-
-use crate::Unborrow;
use core::marker::PhantomData;
-use core::ptr;
-use core::slice;
+use core::{ptr, slice};
+
use embassy_hal_common::unborrow;
use embedded_storage::nor_flash::{
ErrorType, MultiwriteNorFlash, NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash,
};
+use crate::peripherals::NVMC;
+use crate::{pac, Unborrow};
+
pub const PAGE_SIZE: usize = 4096;
pub const FLASH_SIZE: usize = crate::chip::FLASH_SIZE;