diff options
author | Andrew-Fahmy <andrewj.fahmy@gmail.com> | 2021-12-06 22:58:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 20:58:02 -0800 |
commit | 23554726c8d6495e8153c994ed4a58112a79be49 (patch) | |
tree | d62bb67617635c9e2161d0c28048055652958db7 /keyboards/k_type/i2c_master.h | |
parent | c0dcfcedf92c5950d3ce7d8eb19e27f2f057c596 (diff) | |
download | qmk_firmware-23554726c8d6495e8153c994ed4a58112a79be49.tar.gz qmk_firmware-23554726c8d6495e8153c994ed4a58112a79be49.zip |
[Keyboard] Update K type (#15405)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/k_type/i2c_master.h')
-rw-r--r-- | keyboards/k_type/i2c_master.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/k_type/i2c_master.h b/keyboards/k_type/i2c_master.h index 5a7893fae8..d4e9d6878f 100644 --- a/keyboards/k_type/i2c_master.h +++ b/keyboards/k_type/i2c_master.h @@ -58,11 +58,11 @@ # endif #endif -#ifndef I2C1_SCL -# define I2C1_SCL 6 +#ifndef I2C1_SCL_PIN +# define I2C1_SCL_PIN 6 #endif -#ifndef I2C1_SDA -# define I2C1_SDA 7 +#ifndef I2C1_SDA_PIN +# define I2C1_SDA_PIN 7 #endif #ifdef USE_I2CV1 @@ -118,7 +118,7 @@ typedef int16_t i2c_status_t; #define I2C_STATUS_ERROR (-1) #define I2C_STATUS_TIMEOUT (-2) -void i2c_init(I2CDriver *driver, ioportid_t scl_port, ioportid_t sda_port, iopadid_t scl_pad, iopadid_t sda_pad); +void i2c_init(I2CDriver *driver, ioline_t scl_pin, ioline_t sda_pin); i2c_status_t i2c_start(uint8_t index, uint8_t address); i2c_status_t i2c_transmit(uint8_t index, uint8_t address, const uint8_t* data, uint16_t length, uint16_t timeout); i2c_status_t i2c_receive(uint8_t index, uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout); |