diff --git a/stm32-metapac-gen/src/lib.rs b/stm32-metapac-gen/src/lib.rs index 10d67869a..d167da49c 100644 --- a/stm32-metapac-gen/src/lib.rs +++ b/stm32-metapac-gen/src/lib.rs @@ -127,7 +127,6 @@ pub fn gen_chip( let mut peripherals_table: Vec> = Vec::new(); let mut peripheral_pins_table: Vec> = Vec::new(); let mut dma_channels_table: Vec> = Vec::new(); - let mut peripheral_dma_channels_table: Vec> = Vec::new(); let mut peripheral_counts: BTreeMap = BTreeMap::new(); let mut dma_channel_counts: BTreeMap = BTreeMap::new(); let mut dbgmcu_table: Vec> = Vec::new(); @@ -198,35 +197,6 @@ pub fn gen_chip( interrupt_table.push(row) } - for ch in &p.dma_channels { - let mut row = Vec::new(); - row.push(p.name.clone()); - row.push(bi.kind.clone()); - row.push(bi.block.clone()); - row.push(ch.signal.clone()); - row.push(if let Some(channel) = &ch.channel { - format!("{{channel: {}}}", channel) - } else if let Some(dmamux) = &ch.dmamux { - format!("{{dmamux: {}}}", dmamux) - } else { - unreachable!(); - }); - - row.push(if let Some(request) = ch.request { - request.to_string() - } else { - "()".to_string() - }); - - if peripheral_dma_channels_table - .iter() - .find(|a| a[..a.len() - 1] == row[..row.len() - 1]) - .is_none() - { - peripheral_dma_channels_table.push(row); - } - } - let mut peripheral_row = Vec::new(); peripheral_row.push(bi.kind.clone()); peripheral_row.push(p.name.clone()); @@ -388,11 +358,6 @@ pub fn gen_chip( 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, - "peripheral_dma_channels", - &peripheral_dma_channels_table, - ); make_table(&mut data, "dma_channels", &dma_channels_table); make_table(&mut data, "dbgmcu", &dbgmcu_table); make_peripheral_counts(&mut data, &peripheral_counts);