Undo special-casing FOO1 -> FOO in RCC searching.

This commit is contained in:
Bob McWhirter 2021-07-12 14:02:37 -04:00
parent c28bc5a8da
commit d31e30f382
2 changed files with 1 additions and 6 deletions

@ -1 +1 @@
Subproject commit f5eb7fbb53e46f7b2995d5f4f0b295a68476f1a3
Subproject commit 5c3d2df911c8530d4584c731a5de99951858fccd

View file

@ -393,11 +393,6 @@ pub fn gen(options: Options) {
let mut en = find_reg_for_field(&rcc, clock_prefix, &format!("{}EN", name));
let mut rst = find_reg_for_field(&rcc, clock_prefix, &format!("{}RST", name));
if en.is_none() && rst.is_none() && name.ends_with("1") {
en = find_reg_for_field(&rcc, clock_prefix, &format!("{}EN", name.strip_suffix("1").unwrap()));
rst = find_reg_for_field(&rcc, clock_prefix, &format!("{}RST", name.strip_suffix("1").unwrap()));
}
match (en, rst) {
(Some((enable_reg, enable_field)), Some((reset_reg, reset_field))) => {
let clock = if clock_prefix.is_empty() {