Skip to content

Commit

Permalink
cpu/esp32: additional module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed May 1, 2019
1 parent 6b76e64 commit 94a1af3
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions cpu/esp32/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ ifneq (,$(filter riot_freertos,$(USEMODULE)))
USEMODULE += xtimer
endif

ifneq (,$(filter esp_i2c_hw,$(USEMODULE)))
USEMODULE += xtimer
else
# PLEASE NOTE: because of the very poor and faulty hardware implementation
# we use software implementation by default for the moment (if module
# esp_i2c_hw is not explicitly used)
USEMODULE += esp_i2c_sw
ifneq (,$(filter periph_i2c,$(USEMODULE)))
ifneq (,$(filter esp_i2c_hw,$(USEMODULE)))
USEMODULE += core_thread_flags
USEMODULE += xtimer
USEMODULE += periph_i2c_hw
else
# PLEASE NOTE: because of the very poor and faulty hardware implementation
# we use software implementation by default for the moment (if module
# esp_i2c_hw is not explicitly used)
USEMODULE += esp_i2c_sw
USEMODULE += periph_i2c_sw
endif
endif

ifneq (, $(filter esp_spi_ram, $(DISABLE_MODULE)))
Expand Down

0 comments on commit 94a1af3

Please sign in to comment.