We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c3f4d7 commit 06b8ca6Copy full SHA for 06b8ca6
src/properties.rs
@@ -7,8 +7,7 @@ pub const FLASH_BLOCK_SIZE: u32 = 65536;
7
feature = "esp32c2",
8
feature = "esp32c3",
9
feature = "esp32c6",
10
- feature = "esp32h2",
11
- feature = "esp32p4"
+ feature = "esp32h2"
12
))]
13
// Max of 16MB
14
pub const FLASH_SIZE: u32 = 0x1000000;
@@ -17,6 +16,10 @@ pub const FLASH_SIZE: u32 = 0x1000000;
17
16
// Max of 32MB
18
pub const FLASH_SIZE: u32 = 0x2000000;
19
+// Max of 64MB
20
+#[cfg(feature = "esp32p4")]
21
+pub const FLASH_SIZE: u32 = 0x4000000;
22
+
23
#[cfg(any(feature = "esp32s2", feature = "esp32s3"))]
24
// Max of 1GB
25
pub const FLASH_SIZE: u32 = 0x40000000;
0 commit comments