diff options
| author | 9names <[email protected]> | 2025-02-16 13:04:59 +1100 |
|---|---|---|
| committer | 9names <[email protected]> | 2025-02-16 15:43:08 +1100 |
| commit | 6b1706434dfeb80b3659f3d2a1bbe2871ec8ea55 (patch) | |
| tree | 38ae69ca2fe80726b8b88d7641aa94a3cfebc8e6 /examples/rp23/src/bin/flash.rs | |
| parent | 4cc5ab9474773148dd8976e22f3fb6f5e270cd3a (diff) | |
Remove ImageDef from rp23 examples
Diffstat (limited to 'examples/rp23/src/bin/flash.rs')
| -rw-r--r-- | examples/rp23/src/bin/flash.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/rp23/src/bin/flash.rs b/examples/rp23/src/bin/flash.rs index 42c226f5b..31ad4aafc 100644 --- a/examples/rp23/src/bin/flash.rs +++ b/examples/rp23/src/bin/flash.rs | |||
| @@ -5,16 +5,11 @@ | |||
| 5 | 5 | ||
| 6 | use defmt::*; | 6 | use defmt::*; |
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_rp::block::ImageDef; | ||
| 9 | use embassy_rp::flash::{Async, ERASE_SIZE, FLASH_BASE}; | 8 | use embassy_rp::flash::{Async, ERASE_SIZE, FLASH_BASE}; |
| 10 | use embassy_rp::peripherals::FLASH; | 9 | use embassy_rp::peripherals::FLASH; |
| 11 | use embassy_time::Timer; | 10 | use embassy_time::Timer; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 11 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 12 | ||
| 14 | #[link_section = ".start_block"] | ||
| 15 | #[used] | ||
| 16 | pub static IMAGE_DEF: ImageDef = ImageDef::secure_exe(); | ||
| 17 | |||
| 18 | const ADDR_OFFSET: u32 = 0x100000; | 13 | const ADDR_OFFSET: u32 = 0x100000; |
| 19 | const FLASH_SIZE: usize = 2 * 1024 * 1024; | 14 | const FLASH_SIZE: usize = 2 * 1024 * 1024; |
| 20 | 15 | ||
