Merge pull request #269 from xoviat/sbs

rename sbs to syscfg
This commit is contained in:
xoviat 2023-09-29 00:09:13 +00:00 committed by GitHub
commit 735cab337a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
block/SBS:
block/SYSCFG:
description: SBS register block
items:
- name: HDPLCR

View File

@ -1,4 +1,4 @@
block/SBS:
block/SYSCFG:
description: System configuration, boot and security
items:
- name: HDPLCR

View File

@ -228,8 +228,8 @@ impl PeriMatcher {
("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")),
("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")),
("STM32WLE.*:SYSCFG:.*", ("syscfg", "wle", "SYSCFG")),
("STM32H50.*:SBS:.*", ("sbs", "h50", "SBS")),
("STM32H5.*:SBS:.*", ("sbs", "h5", "SBS")),
("STM32H50.*:SBS:.*", ("syscfg", "h50", "SYSCFG")),
("STM32H5.*:SBS:.*", ("syscfg", "h5", "SYSCFG")),
(".*:IWDG:iwdg1_v1_1", ("iwdg", "v1", "IWDG")),
(".*:IWDG:iwdg1_v2_0", ("iwdg", "v2", "IWDG")),
(".*:WWDG:wwdg1_v1_0", ("wwdg", "v1", "WWDG")),
@ -946,7 +946,11 @@ fn process_core(
};
let mut p = stm32_data_serde::chip::core::Peripheral {
name: pname.clone(),
name: if pname == "SBS" {
"SYSCFG".to_string()
} else {
pname.clone()
},
address: addr,
registers: None,
rcc: None,