aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/gpioperiph.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-12-18 19:11:17 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-12-23 22:15:25 -0500
commit6e8f28117b25a19c865b9ac8660c22339b2e2b76 (patch)
treee37fea89de43d846f9e726e71ca64f1aed54b096 /src/stm32/gpioperiph.c
parent4576b3918c09b1e4fc8b440459f62406c1addb21 (diff)
downloadkutter-6e8f28117b25a19c865b9ac8660c22339b2e2b76.tar.gz
kutter-6e8f28117b25a19c865b9ac8660c22339b2e2b76.tar.xz
kutter-6e8f28117b25a19c865b9ac8660c22339b2e2b76.zip
stm32: Initial support for stm32g0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/gpioperiph.c')
-rw-r--r--src/stm32/gpioperiph.c1
1 files changed, 1 insertions, 0 deletions
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);