diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-24 10:20:19 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-24 10:20:19 +0200 |
commit | f6c24bc802f2cb5ec959a768b60dadc957f113cb (patch) | |
tree | 7052d5ad788702893e6002b3107dcd1883eeab0b /Makefile | |
parent | 7dac0cccc846d4452293b47b40d43f6b50ebcc33 (diff) |
I2C: Add support for manual / always-on gpio pullups
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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) |