]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix for the Split Common I2C code's SCL_CLOCK issue (#3474)
authorDrashna Jaelre <drashna@live.com>
Wed, 25 Jul 2018 15:26:10 +0000 (08:26 -0700)
committerskullydazed <skullydazed@users.noreply.github.com>
Wed, 25 Jul 2018 15:26:10 +0000 (08:26 -0700)
* 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

docs/config_options.md
quantum/split_common/i2c.h

index d728a49c3eea378715692e14e4b396ca50b9f47d..afc29fae9c23d29c21a10f9afae108c3fa3c5c78 100644 (file)
@@ -91,6 +91,8 @@ This is a C header file that is one of the first things included, and will persi
   * key combination that allows the use of magic commands (useful for debugging)
 * `#define USB_MAX_POWER_CONSUMPTION`
   * sets the maximum power (in mA) over USB for the device (default: 500)
+* `#define SCL_CLOCK 100000L`
+  * sets the SCL_CLOCK speed for split keyboards. The default is `100000L` but some boards can be set to `400000L`.
 
 ## Features That Can Be Disabled
 
index b4c72bde0edb596261ec31e9e68cf89fbdf78a00..b3cbe8c826ab2db44ba4a9dbfb5fe69f64fe4d8f 100644 (file)
@@ -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];