From 4df6b7ba191f5cbfa9c2af8e7b79b7613722bd46 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 25 Jul 2018 08:26:10 -0700 Subject: Fix for the Split Common I2C code's SCL_CLOCK issue (#3474) * Fix the SLC_CLOCK setting for the Split Common code Make the SCL_CLOCK setting configurable per board, since some use different settings And change the Iris to use 100000L instead of 400000L * Add SCL_CLOCK variable to documentation * Change SCL_CLOCK default to 100000L --- quantum/split_common/i2c.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quantum/split_common') diff --git a/quantum/split_common/i2c.h b/quantum/split_common/i2c.h index b4c72bde0..b3cbe8c82 100644 --- a/quantum/split_common/i2c.h +++ b/quantum/split_common/i2c.h @@ -25,7 +25,9 @@ #define SLAVE_BUFFER_SIZE 0x20 // i2c SCL clock frequency -#define SCL_CLOCK 400000L +#ifndef SCL_CLOCK +#define SCL_CLOCK 100000L +#endif // Support 8bits right now (8 cols) will need to edit to take higher (code exists in delta split?) extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE]; -- cgit v1.2.3-24-g4f1b