summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/Kconfig2
-rw-r--r--src/driver/soft_i2c.cc4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/driver/Kconfig b/src/driver/Kconfig
index dbf70e0..0b1b98b 100644
--- a/src/driver/Kconfig
+++ b/src/driver/Kconfig
@@ -6,6 +6,8 @@ config meta_driver_adc
bool
config meta_driver_counter
bool
+config meta_driver_hardware_i2c
+bool
config meta_driver_i2c
bool
config meta_driver_neopixel
diff --git a/src/driver/soft_i2c.cc b/src/driver/soft_i2c.cc
index 975fa2e..8b87e93 100644
--- a/src/driver/soft_i2c.cc
+++ b/src/driver/soft_i2c.cc
@@ -235,6 +235,8 @@ ON_TIMER_INTERRUPT_head
ON_TIMER_INTERRUPT_tail
#endif
+#ifndef DRIVER_HARDWARE_I2C
+
#if SOFTI2C_PULLUP_EXTERNAL
#ifdef MULTIPASS_ARCH_msp430fr5969lp
SoftI2C i2c(GPIO::p1_6, GPIO::p1_7, GPIO::p1_4, GPIO::p1_5);
@@ -258,3 +260,5 @@ SoftI2C i2c(GPIO::p5_0, GPIO::p5_1);
SoftI2C i2c(GPIO::px00, GPIO::px01);
#endif /* MULTIPASS_ARCH_* */
#endif /* !SOFTI2C_PULLUP_EXTERNAL */
+
+#endif /* !DRIVER_HARDWARE_I2C */