From 1fdf6d2ccacc8b0ec45f9758be92b232bf72e35a Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Tue, 21 Apr 2026 21:56:23 +0200 Subject: [PATCH] i2c at 400kHz --- fw/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fw/main.c b/fw/main.c index a8b6b2c..37c2776 100644 --- a/fw/main.c +++ b/fw/main.c @@ -144,7 +144,7 @@ static inline void setup_i2c(void) // Enable AFIO (Alternate Function IO) RCC->APB2PCENR |= RCC_AFIOEN; // Init I2C - i2c_init(I2C_TARGET, FUNCONF_SYSTEM_CORE_CLOCK, 100000); + i2c_init(I2C_TARGET, FUNCONF_SYSTEM_CORE_CLOCK, 400000); // To utilize the I2C bus we need to disable SWD first, since the pins overlap AFIO->PCFR1 &= ~(0b0111 << 24);