diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-07-25 08:26:10 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2018-07-25 08:26:10 -0700 |
| commit | 4df6b7ba191f5cbfa9c2af8e7b79b7613722bd46 (patch) | |
| tree | 2e05c2d1f8080ed332750c8c268140004dd8a55a /quantum/split_common/i2c.h | |
| parent | 56ed2d495d28e5f3a0d4fe3513834896d095cf38 (diff) | |
| download | qmk_firmware-4df6b7ba191f5cbfa9c2af8e7b79b7613722bd46.tar.gz qmk_firmware-4df6b7ba191f5cbfa9c2af8e7b79b7613722bd46.zip | |
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
Diffstat (limited to 'quantum/split_common/i2c.h')
| -rw-r--r-- | quantum/split_common/i2c.h | 4 |
1 files changed, 3 insertions, 1 deletions
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?) |
| 31 | extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE]; | 33 | extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE]; |
