]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Set default I2C clock speed to 100kHz for split_common (#6161)
authorDanny <nooges@users.noreply.github.com>
Thu, 20 Jun 2019 05:02:20 +0000 (01:02 -0400)
committerDrashna Jaelre <drashna@live.com>
Thu, 20 Jun 2019 05:02:20 +0000 (22:02 -0700)
* Set default I2C clock rate for split_common boards to 100kHz

Default from I2C driver is 400kHz.

* Update documentation for setting I2C clock speed

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

index 55d25d4c88dd612f485429966f1014b50c5afb9d..7418e8dbf99ce36f278677e0e63858cbf542fc35 100644 (file)
@@ -93,8 +93,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`.
+* `#define F_SCL 100000L`
+  * sets the I2C clock rate speed for keyboards using I2C. The default is `400000L`, except for keyboards using `split_common`, where the default is `100000L`.
 
 ## Features That Can Be Disabled
 
index 0e59df3d06d9bf0b593302850e6b2e1790411a9c..ff0fc5e1930dcf68b9b4755c9a689279582ff127 100644 (file)
@@ -4,6 +4,10 @@
     #define RGBLIGHT_SPLIT
   #endif
 
+  #ifndef F_SCL
+    #define F_SCL 100000UL  // SCL frequency
+  #endif
+
 #else  // use serial
   // When using serial, the user must define RGBLIGHT_SPLIT explicitly
   //  in config.h as needed.