From cfa48fe39f1bb87a6b2766edd953c77c205ba7f5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 31 May 2025 02:01:39 -0400 Subject: stm32: Run stm32g431 at 170Mhz The chip supports 170Mhz, so no need to run at 150Mhz. Signed-off-by: Kevin O'Connor --- src/stm32/stm32h7_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stm32/stm32h7_adc.c') diff --git a/src/stm32/stm32h7_adc.c b/src/stm32/stm32h7_adc.c index 0d7d00f9..ca50b0c1 100644 --- a/src/stm32/stm32h7_adc.c +++ b/src/stm32/stm32h7_adc.c @@ -164,7 +164,7 @@ static const uint8_t adc_pins[] = { // 520Mhz stm32h723: clock=32.5Mhz, Tsamp=387.5, Tconv=394, total=12.12us // 520Mhz stm32h723 adc3: clock=65Mhz, Tsamp=640.5, Tconv=653, total=10.05us // 80Mhz stm32l4: clock=20Mhz, Tsamp=247.5, Tconv=260, total=13.0us -// 150Mhz stm32g4: clock=37.5Mhz, Tsamp=247.5, Tconv=260, total=6.933us +// 170Mhz stm32g4: clock=42.5Mhz, Tsamp=247.5, Tconv=260, total=6.118us // Handle register name differences between chips #if CONFIG_MACH_STM32H723 -- cgit v1.2.3-70-g09d2