Update stm32-data

This commit is contained in:
Dario Nieuwenhuis 2022-06-27 00:43:18 +02:00
parent edb9eedb45
commit a855889f70
3 changed files with 8 additions and 9 deletions

View file

@ -141,7 +141,7 @@ impl<'d, T: Instance> Driver<'d, T> {
unsafe { unsafe {
crate::peripherals::PWR::enable(); crate::peripherals::PWR::enable();
pac::PWR.cr2().modify(|w| w.set_usv(pac::pwr::vals::Usv::VALID)); pac::PWR.cr2().modify(|w| w.set_usv(true));
} }
unsafe { unsafe {

@ -1 +1 @@
Subproject commit fa294eae79c0f33f4cde1e73b4e69db59f7429e3 Subproject commit 56d5b8b2aee7026b4f9bcffc427bb8f9d48afeb5

View file

@ -117,13 +117,12 @@ impl Gen {
write!(&mut extra, "pub const CORE_INDEX: usize = {};\n", core_index).unwrap(); write!(&mut extra, "pub const CORE_INDEX: usize = {};\n", core_index).unwrap();
let flash = chip.memory.iter().find(|r| r.name == "BANK_1").unwrap(); let flash = chip.memory.iter().find(|r| r.name == "BANK_1").unwrap();
write!(&mut extra, "pub const FLASH_BASE: usize = {};\n", flash.address,).unwrap(); let settings = flash.settings.as_ref().unwrap();
write!(&mut extra, "pub const FLASH_SIZE: usize = {};\n", flash.size,).unwrap(); write!(&mut extra, "pub const FLASH_BASE: usize = {};\n", flash.address).unwrap();
if let Some(settings) = &flash.settings { write!(&mut extra, "pub const FLASH_SIZE: usize = {};\n", flash.size).unwrap();
write!(&mut extra, "pub const ERASE_SIZE: usize = {};\n", settings.erase_size,).unwrap(); write!(&mut extra, "pub const ERASE_SIZE: usize = {};\n", settings.erase_size).unwrap();
write!(&mut extra, "pub const WRITE_SIZE: usize = {};\n", settings.write_size,).unwrap(); write!(&mut extra, "pub const WRITE_SIZE: usize = {};\n", settings.write_size).unwrap();
write!(&mut extra, "pub const ERASE_VALUE: u8 = {};\n", settings.erase_value,).unwrap(); write!(&mut extra, "pub const ERASE_VALUE: u8 = {};\n", settings.erase_value).unwrap();
}
// Cleanups! // Cleanups!
transform::sort::Sort {}.run(&mut ir).unwrap(); transform::sort::Sort {}.run(&mut ir).unwrap();