Skip to content

Commit 1257ba6

Browse files
committed
Add PAGE_SIZE constant to flash
1 parent 524ea1b commit 1257ba6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flash.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ use crate::{
1414
/// The first address of flash memory
1515
pub const FLASH_START: u32 = 0x0800_0000;
1616

17+
/// The size of a Flash memory page, in bytes
18+
pub const PAGE_SIZE: u32 = 128;
19+
1720

1821
/// Entry point to the non-volatile memory (NVM) API
1922
pub struct FLASH {

0 commit comments

Comments
 (0)