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
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,