Align ChibiOS I2C defs with other drivers (#14399)
* Align ChibiOS I2C defs with other drivers * Update keyboards/xelus/valor_frl_tkl/config.h Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
void board_init(void) {
|
||||
// B9 is configured as I2C1_SDA in the board file; that function must be
|
||||
// B9 is configured as I2C1_SDA_PIN in the board file; that function must be
|
||||
// disabled before using B7 as I2C1_SDA.
|
||||
setPinInputHigh(B9);
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#define UNUSED_PINS
|
||||
|
||||
// i2c_master defines
|
||||
#define I2C1_SCL 0 // A2 on pinout = B0
|
||||
#define I2C1_SDA 1 // A3 on pinout = B1
|
||||
#define I2C1_SCL_PIN B0 // A2 on pinout = B0
|
||||
#define I2C1_SDA_PIN B1 // A3 on pinout = B1
|
||||
#define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2
|
||||
#define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#define UNUSED_PINS
|
||||
|
||||
// i2c_master defines
|
||||
#define I2C1_SCL 0 // A2 on pinout = B0
|
||||
#define I2C1_SDA 1 // A3 on pinout = B1
|
||||
#define I2C1_SCL_PIN B0 // A2 on pinout = B0
|
||||
#define I2C1_SDA_PIN B1 // A3 on pinout = B1
|
||||
#define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2
|
||||
#define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2
|
||||
|
Reference in New Issue
Block a user