summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-09-25 16:04:51 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-09-25 16:04:51 +0200
commit52780526eef52d2f9bfa9838e2dd2786db053b23 (patch)
treedb52312821ab264f23a4581f04d6d21b84cecb8a /src/driver
parent0f882940d29febef2f7d17be4c8ef7d7b9ec34fd (diff)
softi2c: Add MSP430FR5994 support
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/soft_i2c.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc
index 76042f2..89f038b 100644
--- a/src/driver/soft_i2c.cc
+++ b/src/driver/soft_i2c.cc
@@ -69,6 +69,9 @@ signed char SoftI2C::setup()
#if MULTIPASS_ARCH_msp430fr5969lp
gpio.output(GPIO::p1_4, 1);
gpio.output(GPIO::p1_5, 1);
+#elif MULTIPASS_ARCH_msp430fr5994lp
+ gpio.output(GPIO::p8_2, 1);
+ gpio.output(GPIO::p8_3, 1);
#else
#error "softi2c_pullup=gpio not supported on this architecture"
#endif /* MULTIPASS_ARCH_* */
@@ -211,6 +214,8 @@ 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
+SoftI2C i2c(GPIO::p5_0, GPIO::p5_1, GPIO::p8_2, GPIO::p8_3);
#else
#error "softi2c_pullup = external not supported on this architecture"
#endif /* MULTIPASS_ARCH_* */
@@ -223,6 +228,8 @@ SoftI2C i2c(GPIO::pc4, GPIO::pc5);
SoftI2C i2c(GPIO::pc4, GPIO::pc5);
#elif MULTIPASS_ARCH_msp430fr5969lp
SoftI2C i2c(GPIO::p1_6, GPIO::p1_7);
+#elif MULTIPASS_ARCH_msp430fr5994lp
+SoftI2C i2c(GPIO::p5_0, GPIO::p5_1);
#elif MULTIPASS_ARCH_posix
SoftI2C i2c(GPIO::px00, GPIO::px01);
#endif /* MULTIPASS_ARCH_* */