aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32g0.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-08-25 17:33:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-09-11 21:18:32 -0400
commit989d0f8097a6b16e10ba66c7b8fae7cde41ab070 (patch)
tree1ca1273afb192252e27320903b9192f992cad384 /src/stm32/stm32g0.c
parent97a5b39aab9bb61aaf2181760886033a569626f7 (diff)
downloadkutter-989d0f8097a6b16e10ba66c7b8fae7cde41ab070.tar.gz
kutter-989d0f8097a6b16e10ba66c7b8fae7cde41ab070.tar.xz
kutter-989d0f8097a6b16e10ba66c7b8fae7cde41ab070.zip
stm32: Fix i2c on stm32g0
Fix the gpio function. Also, add buses found only on stm32g0. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32g0.c')
-rw-r--r--src/stm32/stm32g0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32/stm32g0.c b/src/stm32/stm32g0.c
index 1964d89f..c243743b 100644
--- a/src/stm32/stm32g0.c
+++ b/src/stm32/stm32g0.c
@@ -38,6 +38,8 @@ lookup_clock_line(uint32_t periph_base)
return (struct cline){.en=&RCC->APBENR1,.rst=&RCC->APBRSTR1,.bit=1<<13};
if (periph_base == CRS_BASE)
return (struct cline){.en=&RCC->APBENR1,.rst=&RCC->APBRSTR1,.bit=1<<16};
+ if (periph_base == I2C3_BASE)
+ return (struct cline){.en=&RCC->APBENR1,.rst=&RCC->APBRSTR1,.bit=1<<23};
if (periph_base == TIM1_BASE)
return (struct cline){.en=&RCC->APBENR2,.rst=&RCC->APBRSTR2,.bit=1<<11};
if (periph_base == SPI1_BASE)