diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-11-27 02:21:53 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2021-11-27 02:34:23 +0100 |
commit | 88d4b0c00d5164f2fe6307bacce74887b3f8d4da (patch) | |
tree | a74fe2a9024167880d4ee4c7ac4f748ce5415f76 /stm32-gen-features | |
parent | c7d97290284d2637c1eb89f65ff18f913342a71b (diff) | |
download | embassy-88d4b0c00d5164f2fe6307bacce74887b3f8d4da.zip |
stm32: add stm32g4 support.
Diffstat (limited to 'stm32-gen-features')
-rw-r--r-- | stm32-gen-features/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stm32-gen-features/src/lib.rs b/stm32-gen-features/src/lib.rs index 29ea94a4..50c33485 100644 --- a/stm32-gen-features/src/lib.rs +++ b/stm32-gen-features/src/lib.rs @@ -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 ); |