aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2021-06-09 13:50:04 +0200
committerUlf Lilleengen <[email protected]>2021-06-09 13:50:04 +0200
commita92d6a372bea6b111fa1d2023b328942bae19e5f (patch)
treeebc6d8bc497b4d9fa29c542a965a23047ecb8da1
parentbd759510baed2eacb381509c3afcfe0ade547d35 (diff)
Cleanup and fix l4s
-rw-r--r--stm32-metapac/build.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs
index 4c7c0e0d4..fe505c872 100644
--- a/stm32-metapac/build.rs
+++ b/stm32-metapac/build.rs
@@ -156,14 +156,12 @@ fn main() {
156 }; 156 };
157 157
158 // Load RCC register for chip 158 // Load RCC register for chip
159 let chip_family = chip.family.to_ascii_lowercase().clone(); 159 let chip_family = chip.family.to_ascii_lowercase();
160 let rcc_family = chip_family.strip_prefix("stm32").unwrap(); 160 let rcc_family = chip_family.strip_prefix("stm32").unwrap();
161 //.strip_prefix("stm32")
162 //.unwrap();
163 let rcc_reg_path = Path::new(&dir) 161 let rcc_reg_path = Path::new(&dir)
164 .join("registers") 162 .join("registers")
165 .join(&format!("rcc_{}.yaml", rcc_family)); 163 .join(&format!("rcc_{}.yaml", &rcc_family[0..2]));
166 let mut rcc: ir::IR = serde_yaml::from_reader(File::open(rcc_reg_path).unwrap()).unwrap(); 164 let rcc: ir::IR = serde_yaml::from_reader(File::open(rcc_reg_path).unwrap()).unwrap();
167 165
168 let mut peripheral_versions: HashMap<String, String> = HashMap::new(); 166 let mut peripheral_versions: HashMap<String, String> = HashMap::new();
169 let mut pin_table: Vec<Vec<String>> = Vec::new(); 167 let mut pin_table: Vec<Vec<String>> = Vec::new();