diff options
| author | Dion Dokter <[email protected]> | 2025-05-01 13:49:29 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2025-05-01 14:28:06 +0200 |
| commit | e478bdf1df1c41cee0fd0aad29a66db4cf6f93f5 (patch) | |
| tree | b01c50b833ea75cff017cbd63d6c754c5186303a /embassy-stm32/src/flash/f0.rs | |
| parent | 59d839a2b8a488bf1e9056f46ba1dff61148642b (diff) | |
Remove all notion of 'default' and 'alt' flash layouts. Now there's just the one layout.
Diffstat (limited to 'embassy-stm32/src/flash/f0.rs')
| -rw-r--r-- | embassy-stm32/src/flash/f0.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/embassy-stm32/src/flash/f0.rs b/embassy-stm32/src/flash/f0.rs index 402312f68..3f9dbe945 100644 --- a/embassy-stm32/src/flash/f0.rs +++ b/embassy-stm32/src/flash/f0.rs | |||
| @@ -1,18 +1,10 @@ | |||
| 1 | use core::ptr::write_volatile; | 1 | use core::ptr::write_volatile; |
| 2 | use core::sync::atomic::{fence, Ordering}; | 2 | use core::sync::atomic::{fence, Ordering}; |
| 3 | 3 | ||
| 4 | use super::{FlashRegion, FlashSector, FLASH_REGIONS, WRITE_SIZE}; | 4 | use super::{FlashSector, WRITE_SIZE}; |
| 5 | use crate::flash::Error; | 5 | use crate::flash::Error; |
| 6 | use crate::pac; | 6 | use crate::pac; |
| 7 | 7 | ||
| 8 | pub(crate) const fn is_default_layout() -> bool { | ||
| 9 | true | ||
| 10 | } | ||
| 11 | |||
| 12 | pub(crate) const fn get_flash_regions() -> &'static [&'static FlashRegion] { | ||
| 13 | &FLASH_REGIONS | ||
| 14 | } | ||
| 15 | |||
| 16 | pub(crate) unsafe fn lock() { | 8 | pub(crate) unsafe fn lock() { |
| 17 | pac::FLASH.cr().modify(|w| w.set_lock(true)); | 9 | pac::FLASH.cr().modify(|w| w.set_lock(true)); |
| 18 | } | 10 | } |
