From f6c24bc802f2cb5ec959a768b60dadc957f113cb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Oct 2018 10:20:19 +0200 Subject: I2C: Add support for manual / always-on gpio pullups --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3