Remove ability to set alt layout - it does not work.

This commit is contained in:
Rasmus Melchior Jacobsen
2023-05-26 15:23:36 +02:00
parent 31b364b9b0
commit fee89ed7c7
9 changed files with 29 additions and 34 deletions

View File

@@ -7,7 +7,9 @@ use super::{FlashRegion, FlashSector, BANK1_REGION, FLASH_REGIONS, WRITE_SIZE};
use crate::flash::Error;
use crate::pac;
pub const fn set_default_layout() {}
pub const fn is_default_layout() -> bool {
true
}
const fn is_dual_bank() -> bool {
FLASH_REGIONS.len() == 2