summaryrefslogtreecommitdiff
path: root/stm32-metapac
diff options
context:
space:
mode:
authorBob McWhirter <bmcwhirt@redhat.com>2021-06-03 11:09:29 -0400
committerBob McWhirter <bmcwhirt@redhat.com>2021-06-03 13:12:38 -0400
commit6958091b500a1104a3d9d3a2737b9fe756f25702 (patch)
treeb994b8184e813dd4bc644d5fd72c77fa924dc632 /stm32-metapac
parentd4d914ea502fcd1a50a4d1f509617c0783f91740 (diff)
downloadembassy-6958091b500a1104a3d9d3a2737b9fe756f25702.zip
Move DAC, I2C, SPI and RNG to macro-tables.
Diffstat (limited to 'stm32-metapac')
-rw-r--r--stm32-metapac/build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/stm32-metapac/build.rs b/stm32-metapac/build.rs
index 046bc11f..d33693f3 100644
--- a/stm32-metapac/build.rs
+++ b/stm32-metapac/build.rs
@@ -135,6 +135,7 @@ fn main() {
let mut cfgs: HashSet<String> = HashSet::new();
let mut pin_table: Vec<Vec<String>> = Vec::new();
let mut interrupt_table: Vec<Vec<String>> = Vec::new();
+ let mut peripherals_table: Vec<Vec<String>> = Vec::new();
let mut peripheral_pins_table: Vec<Vec<String>> = Vec::new();
let dma_base = chip
@@ -178,6 +179,10 @@ fn main() {
cfgs.insert(bi.module.clone());
cfgs.insert(format!("{}_{}", bi.module, bi.version));
+ let mut peripheral_row = Vec::new();
+ peripheral_row.push( bi.module.clone() );
+ peripheral_row.push( name.clone() );
+ peripherals_table.push( peripheral_row );
if let Some(old_version) =
peripheral_versions.insert(bi.module.clone(), bi.version.clone())
@@ -253,6 +258,7 @@ fn main() {
make_table(&mut extra, "pins", &pin_table);
make_table(&mut extra, "interrupts", &interrupt_table);
+ make_table(&mut extra, "peripherals", &peripherals_table);
make_table(&mut extra, "peripheral_versions", &peripheral_version_table);
make_table(&mut extra, "peripheral_pins", &peripheral_pins_table);