Merge pull request #284 from xoviat/rcc

rcc: more cleanup
This commit is contained in:
xoviat 2023-10-14 03:33:00 +00:00 committed by GitHub
commit e4a769aa67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

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

View File

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

View File

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