mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-19 04:37:54 -06:00
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>
This commit is contained in:
parent
97a5b39aab
commit
989d0f8097
2 changed files with 34 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue