From 4fbca251bc6f1996c1f6bfad5a5264b029639d2e Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 16 Dec 2019 19:45:57 +0100 Subject: [PATCH] boards/same54-xpro: use 48 MHz GCLK6 for I2C We can't run I2C off the 120 MHz main clock as the availiable dividers are too small. Use the 48 MHz GCLK 6 instead which offers an appropriate frequency. fixes #12037 --- boards/same54-xpro/include/periph_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/same54-xpro/include/periph_conf.h b/boards/same54-xpro/include/periph_conf.h index e6093a99ff..a4c3cf7ffa 100644 --- a/boards/same54-xpro/include/periph_conf.h +++ b/boards/same54-xpro/include/periph_conf.h @@ -131,7 +131,7 @@ static const i2c_conf_t i2c_config[] = { .scl_pin = GPIO_PIN(PD, 9), .sda_pin = GPIO_PIN(PD, 8), .mux = GPIO_MUX_C, - .gclk_src = 0, + .gclk_src = 6, .flags = I2C_FLAG_NONE } };