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:
@@ -67,10 +67,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* i2c settings */
|
||||
|
||||
#define I2C_DRIVER I2CD2
|
||||
#define I2C1_SCL_BANK GPIOB
|
||||
#define I2C1_SCL 10
|
||||
#define I2C1_SDA_BANK GPIOB
|
||||
#define I2C1_SDA 11
|
||||
#define I2C1_SCL_PIN B10
|
||||
#define I2C1_SDA_PIN B11
|
||||
#define I2C1_TIMINGR_PRESC 2U
|
||||
#define I2C1_TIMINGR_SCLDEL 1U
|
||||
#define I2C1_TIMINGR_SDADEL 0U
|
||||
|
@@ -59,11 +59,6 @@ extern i2c_status_t mcp23017_status;
|
||||
bool i2c_initialized = 0;
|
||||
i2c_status_t mcp23017_status = I2C_ADDR;
|
||||
|
||||
#define I2C2_SCL_BANK GPIOB
|
||||
#define I2C2_SCL 10
|
||||
#define I2C2_SDA_BANK GPIOB
|
||||
#define I2C2_SDA 11
|
||||
|
||||
uint8_t init_mcp23017(void) {
|
||||
print("init mcp23017\n");
|
||||
mcp23017_status = I2C_ADDR;
|
||||
|
Reference in New Issue
Block a user