mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
77dfc7e2a5
The ESP32 Ethernet Kit has only a single GPIO pin exposed to SAUL via `saul_gpio`, but that GPIO doubles as PHY clock input when `esp32_eth` is used. Hence, the `saul_gpio` dep should be optional and only kick in when `esp32_eth` is not used.
17 lines
452 B
Makefile
17 lines
452 B
Makefile
include $(RIOTBOARD)/common/esp32/Makefile.dep
|
|
|
|
# enables esp_eth as default network device
|
|
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
|
USEMODULE += esp_eth
|
|
endif
|
|
|
|
# saul_gpio does conflict eth, as the only SAUL enabled GPIO is the boot button.
|
|
# But that GPIO doubles as phy clock input.
|
|
ifneq (,$(filter esp_eth,$(USEMODULE)))
|
|
DISABLE_MODULE += saul_gpio
|
|
endif
|
|
|
|
ifneq (,$(filter saul_default,$(USEMODULE)))
|
|
DEFAULT_MODULE += saul_gpio
|
|
endif
|