summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-24 10:20:19 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-24 10:20:19 +0200
commitf6c24bc802f2cb5ec959a768b60dadc957f113cb (patch)
tree7052d5ad788702893e6002b3107dcd1883eeab0b /Makefile
parent7dac0cccc846d4452293b47b40d43f6b50ebcc33 (diff)
I2C: Add support for manual / always-on gpio pullups
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cbe93c8..3148fdc 100644
--- a/Makefile
+++ b/Makefile
@@ -71,8 +71,20 @@ ifneq (${timer_freq}, )
COMMON_FLAGS += -DF_TIMER=${timer_freq}
endif
-ifeq (${softi2c_pullup}, 1)
- COMMON_FLAGS += -DSOFTI2C_PULLUP
+ifeq (${softi2c_pullup}, internal)
+ COMMON_FLAGS += -DSOFTI2C_PULLUP_INTERNAL
+endif
+
+ifeq (${softi2c_pullup}, external)
+ COMMON_FLAGS += -DSOFTI2C_PULLUP_EXTERNAL
+endif
+
+ifeq (${softi2c_pullup}, gpio)
+ COMMON_FLAGS += -DSOFTI2C_PULLUP_FIXED_GPIO
+endif
+
+ifeq (${i2c_pullup}, gpio)
+ COMMON_FLAGS += -DI2C_PULLUP_FIXED_GPIO
endif
ifeq (${softi2c_timer}, 1)