aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/config_options.md2
-rw-r--r--quantum/split_common/i2c.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/config_options.md b/docs/config_options.md
index d728a49c3..afc29fae9 100644
--- a/docs/config_options.md
+++ b/docs/config_options.md
@@ -91,6 +91,8 @@ This is a C header file that is one of the first things included, and will persi
91 * key combination that allows the use of magic commands (useful for debugging) 91 * key combination that allows the use of magic commands (useful for debugging)
92* `#define USB_MAX_POWER_CONSUMPTION` 92* `#define USB_MAX_POWER_CONSUMPTION`
93 * sets the maximum power (in mA) over USB for the device (default: 500) 93 * sets the maximum power (in mA) over USB for the device (default: 500)
94* `#define SCL_CLOCK 100000L`
95 * sets the SCL_CLOCK speed for split keyboards. The default is `100000L` but some boards can be set to `400000L`.
94 96
95## Features That Can Be Disabled 97## Features That Can Be Disabled
96 98
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 @@
25#define SLAVE_BUFFER_SIZE 0x20 25#define SLAVE_BUFFER_SIZE 0x20
26 26
27// i2c SCL clock frequency 27// i2c SCL clock frequency
28#define SCL_CLOCK 400000L 28#ifndef SCL_CLOCK
29#define SCL_CLOCK 100000L
30#endif
29 31
30// Support 8bits right now (8 cols) will need to edit to take higher (code exists in delta split?) 32// Support 8bits right now (8 cols) will need to edit to take higher (code exists in delta split?)
31extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE]; 33extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE];