From 6e8f28117b25a19c865b9ac8660c22339b2e2b76 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 18 Dec 2021 19:11:17 -0500 Subject: stm32: Initial support for stm32g0 Signed-off-by: Kevin O'Connor --- src/stm32/gpioperiph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stm32/gpioperiph.c') diff --git a/src/stm32/gpioperiph.c b/src/stm32/gpioperiph.c index e003e9f0..06cdaa05 100644 --- a/src/stm32/gpioperiph.c +++ b/src/stm32/gpioperiph.c @@ -31,6 +31,7 @@ gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup) // stm32f0 is ~10Mhz at 50pF // stm32f2 is ~25Mhz at 40pF // stm32f4 is ~50Mhz at 40pF + // stm32g0 is ~30Mhz at 50pF // stm32h7 is ~85Mhz at 50pF uint32_t ospeed = CONFIG_MACH_STM32F0 ? 0x01 : 0x02; regs->OSPEEDR = (regs->OSPEEDR & ~m_msk) | (ospeed << m_shift); -- cgit v1.2.3-70-g09d2