-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from dexter93/i2c_fallback_fix
Fix I2C Fallback inclusion and build on more platforms
- Loading branch information
Showing
5 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_HAL_I2C_FALLBACK),yes) | ||
# Fallback SW driver. | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC_CONTRIB += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC_CONTRIB += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
PLATFORMINC_CONTRIB += $(CHIBIOS)/os/hal/lib/fallback/I2C | ||
else | ||
PLATFORMSRC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
|
||
PLATFORMINC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1 | ||
PLATFORMINC_CONTRIB += ${CHIBIOS_CONTRIB}/os/hal/ports/KINETIS/LLD/I2Cv1 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_HAL_I2C_FALLBACK),yes) | ||
# Fallback SW driver. | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
PLATFORMINC += $(CHIBIOS)/os/hal/lib/fallback/I2C | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
|
||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1 | ||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/NUMICRO/LLD/I2Cv1 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_HAL_I2C_FALLBACK),yes) | ||
# Fallback SW driver. | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
PLATFORMINC += $(CHIBIOS)/os/hal/lib/fallback/I2C | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c | ||
endif | ||
|
||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1 | ||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/RP/LLD/I2Cv1 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_HAL_I2C_FALLBACK),yes) | ||
# Fallback SW driver. | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS)/os/hal/lib/fallback/I2C/hal_i2c_lld.c | ||
endif | ||
PLATFORMINC += $(CHIBIOS)/os/hal/lib/fallback/I2C | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c | ||
endif | ||
ifeq ($(USE_SMART_BUILD),yes) | ||
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),) | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c | ||
endif | ||
else | ||
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c | ||
endif | ||
|
||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C | ||
PLATFORMINC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/I2C | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters