Added SPI45SEL to RCC for STM32H7 devices.

RCC mux was missing the SPI45SEL selector. I had to add an extra rule to
the rcc.rs and fix the wrong SPI45SEL entries in rcc_h7ab.yaml and rcc_h7rs.yaml.
I confirmed that both default entries point to the PCLK2 instead of HCLK2.
This commit is contained in:
Alexandros Liarokapis 2024-05-15 22:20:10 +03:00
parent 273c875615
commit ac1adf946e
3 changed files with 4 additions and 4 deletions

View File

@ -4305,7 +4305,7 @@ enum/SPDIFRXSEL:
enum/SPI45SEL: enum/SPI45SEL:
bit_size: 3 bit_size: 3
variants: variants:
- name: HCLK2 - name: PCLK2
description: APB2 clock selected as peripheral clock description: APB2 clock selected as peripheral clock
value: 0 value: 0
- name: PLL2_Q - name: PLL2_Q

View File

@ -4095,7 +4095,7 @@ enum/SPI123SEL:
enum/SPI45SEL: enum/SPI45SEL:
bit_size: 3 bit_size: 3
variants: variants:
- name: HCLK2 - name: PCLK2
description: APB2 clock selected as peripheral clock description: APB2 clock selected as peripheral clock
value: 0 value: 0
- name: PLL2_Q - name: PLL2_Q

View File

@ -284,8 +284,8 @@ impl ParsedRccs {
("SPI1", &["SPI12", "SPI123"]), ("SPI1", &["SPI12", "SPI123"]),
("SPI2", &["SPI12", "SPI123"]), ("SPI2", &["SPI12", "SPI123"]),
("SPI3", &["SPI123"]), ("SPI3", &["SPI123"]),
("SPI4", &["SPI145"]), ("SPI4", &["SPI145", "SPI45"]),
("SPI5", &["SPI145"]), ("SPI5", &["SPI145", "SPI45"]),
("SAI1", &["SAI12"]), ("SAI1", &["SAI12"]),
("SAI2", &["SAI12", "SAI23"]), ("SAI2", &["SAI12", "SAI23"]),
("SAI3", &["SAI23"]), ("SAI3", &["SAI23"]),