diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-02-23 20:22:16 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-02-23 20:22:16 +0100 |
commit | 93a3323ed94a255b40cb1353515d01bc3c339a7b (patch) | |
tree | 5b6088965d9d254874d6cfdf434272bcc753c4a1 /stm32-metapac-gen | |
parent | 052f370de9863df171e48d88a24e89b420b23ff7 (diff) | |
download | embassy-93a3323ed94a255b40cb1353515d01bc3c339a7b.zip |
stm32-metapac: remove peripehral_pins! macrotable.
Diffstat (limited to 'stm32-metapac-gen')
-rw-r--r-- | stm32-metapac-gen/src/lib.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/stm32-metapac-gen/src/lib.rs b/stm32-metapac-gen/src/lib.rs index fc262f9c..575be9e4 100644 --- a/stm32-metapac-gen/src/lib.rs +++ b/stm32-metapac-gen/src/lib.rs @@ -125,7 +125,6 @@ pub fn gen_chip( 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 mut dma_channels_table: Vec<Vec<String>> = Vec::new(); let mut peripheral_counts: BTreeMap<String, u8> = BTreeMap::new(); let mut dma_channel_counts: BTreeMap<String, u8> = BTreeMap::new(); @@ -174,19 +173,6 @@ pub fn gen_chip( peripheral_counts.get(&bi.kind).map_or(1, |v| v + 1), ); - for pin in &p.pins { - let mut row = Vec::new(); - row.push(p.name.clone()); - row.push(bi.kind.clone()); - row.push(bi.block.clone()); - row.push(pin.pin.clone()); - row.push(pin.signal.clone()); - if let Some(ref af) = pin.af { - row.push(format!("{}", af)); - } - peripheral_pins_table.push(row); - } - for irq in &p.interrupts { let mut row = Vec::new(); row.push(p.name.clone()); @@ -357,7 +343,6 @@ pub fn gen_chip( make_table(&mut data, "interrupts", &interrupt_table); make_table(&mut data, "peripherals", &peripherals_table); make_table(&mut data, "peripheral_versions", &peripheral_version_table); - make_table(&mut data, "peripheral_pins", &peripheral_pins_table); make_table(&mut data, "dma_channels", &dma_channels_table); make_table(&mut data, "dbgmcu", &dbgmcu_table); make_peripheral_counts(&mut data, &peripheral_counts); |