From 0248c6352f2117e50fac71dd632a79d8fa4f8737 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Sep 2020 12:47:40 +0200 Subject: external pull-ups are only implemented on MSP430FR at the moment --- src/driver/Kconfig | 2 ++ src/driver/soft_i2c.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/driver/Kconfig b/src/driver/Kconfig index 9fdc1b2..3d7760f 100644 --- a/src/driver/Kconfig +++ b/src/driver/Kconfig @@ -95,11 +95,13 @@ help config driver_softi2c_pullup_dynamic_external bool "GPIO Dynamic Pull-Up" +depends on arch_msp430fr5969lp || arch_msp430fr5994lp help Pull-Up resistors connected to GPIO, disabled when transmitting LOW config driver_softi2c_pullup_external bool "GPIO Static Pull-Up" +depends on arch_msp430fr5969lp || arch_msp430fr5994lp help Pull-Up resistors connected to GPIO, always on diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc index b03b9e1..e1cff47 100644 --- a/src/driver/soft_i2c.cc +++ b/src/driver/soft_i2c.cc @@ -227,7 +227,7 @@ ON_TIMER_INTERRUPT_tail #if SOFTI2C_PULLUP_EXTERNAL #ifdef MULTIPASS_ARCH_msp430fr5969lp SoftI2C i2c(GPIO::p1_6, GPIO::p1_7, GPIO::p1_4, GPIO::p1_5); -#elif MULTIPASS_ARCH_msp430fr5969lp +#elif MULTIPASS_ARCH_msp430fr5994lp SoftI2C i2c(GPIO::p5_0, GPIO::p5_1, GPIO::p8_2, GPIO::p8_3); #else #error "softi2c_pullup = external not supported on this architecture" -- cgit v1.2.3