rcc: more cleanup

This commit is contained in:
xoviat 2023-10-13 22:20:18 -05:00
parent fc4881f7b5
commit 8a09bbb62c
3 changed files with 3 additions and 4 deletions

View File

@ -2440,7 +2440,7 @@ enum/OCTOSPISEL:
- name: PLL2_R
description: pll2_r_ck selected as kernel clock
value: 2
- name: PER_CLK
- name: PER
description: per_ck selected as kernel clock
value: 3
enum/PLLDIV:

View File

@ -26,6 +26,7 @@ impl PeripheralToClock {
"HSI_KER",
"CSI_KER",
"LSI_KER",
"PER_CLK",
]);
let rcc_enum_map: HashMap<&String, HashMap<&String, &Enum>> = {

View File

@ -16,7 +16,7 @@ pub mod ir {
.blocks
.iter()
.map(|(name, block)| {
let mut items: Vec<_> = block
let items = block
.items
.iter()
.map(|item| BlockItem {
@ -54,8 +54,6 @@ pub mod ir {
})
.collect();
items.sort_by_key(|i| i.name.clone());
Block {
name: name.to_string(),
items: items,