summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-09-07 12:47:40 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-09-07 12:47:40 +0200
commit0248c6352f2117e50fac71dd632a79d8fa4f8737 (patch)
treea3a3f3079bbff203ca6c70544b4258742f5f152d /src/driver
parent667887a6f254347904b628ad22dabfcff44f426f (diff)
external pull-ups are only implemented on MSP430FR at the moment
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/Kconfig2
-rw-r--r--src/driver/soft_i2c.cc2
2 files changed, 3 insertions, 1 deletions
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"