stm32: add stm32g4 support.

This commit is contained in:
Dario Nieuwenhuis
2021-11-27 02:21:53 +01:00
parent c7d9729028
commit 88d4b0c00d
17 changed files with 466 additions and 9 deletions

View File

@ -2,12 +2,13 @@
use std::{iter::FilterMap, path::Path, slice::Iter};
const SUPPORTED_FAMILIES: [&str; 12] = [
const SUPPORTED_FAMILIES: &[&str] = &[
"stm32f0",
"stm32f1",
"stm32f4",
"stm32f7",
"stm32g0",
"stm32g4",
"stm32l0",
"stm32l1",
"stm32l4",
@ -99,7 +100,7 @@ pub fn embassy_stm32_needed_data(names_and_cores: &[(String, Vec<String>)]) -> S
if cores.len() > 1 {
for core_name in cores.iter() {
result += &format!(
"{chip}_{core} = [ \"stm32-metapac/{chip}_{core}\" ]\n",
"{chip}-{core} = [ \"stm32-metapac/{chip}-{core}\" ]\n",
chip = chip_name,
core = core_name
);