1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/esp32/esp-eth: model in Kconfig

This commit is contained in:
Leandro Lanzieri 2022-03-02 14:31:32 +01:00
parent ec32e41f02
commit 575e58dc5b
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
8 changed files with 47 additions and 0 deletions

View File

@ -20,4 +20,6 @@ config BOARD_ESP32_ETHERNET_KIT_V1_0
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI if !MODULE_ESP_JTAG
select HAVE_ESP_ETH
source "$(RIOTBOARD)/common/esp32/Kconfig"

View File

@ -21,4 +21,6 @@ config BOARD_ESP32_OLIMEX_EVB
select HAS_PERIPH_CAN
select HAS_PERIPH_IR
select HAVE_ESP_ETH
source "$(RIOTBOARD)/common/esp32/Kconfig"

View File

@ -24,6 +24,7 @@ ifneq (,$(filter esp_eth,$(USEMODULE)))
USEMODULE += esp_idf_spi_flash
USEMODULE += netdev_eth
USEMODULE += netopt
FEATURES_REQUIRED += periph_eth
USEMODULE += ztimer_msec
endif

25
cpu/esp32/esp-eth/Kconfig Normal file
View File

@ -0,0 +1,25 @@
# Copyright (c) 2022 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config MODULE_ESP_ETH
bool "ESP32 Ethernet device"
depends on TEST_KCONFIG
depends on CPU_FAM_ESP32
depends on HAS_PERIPH_ETH
select MODULE_ESP_FREERTOS
select MODULE_ESP_IDF_ETH
select MODULE_ESP_IDF_ETH_PHY
select MODULE_NETDEV_ETH
select MODULE_NETOPT
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
config HAVE_ESP_ETH
bool
select MODULE_ESP_ETH if MODULE_NETDEV_DEFAULT
help
Indicates that a ESP32 ethernet device is present.

View File

@ -13,6 +13,7 @@ rsource "ata8520e/Kconfig"
rsource "can_trx/Kconfig"
rsource "cc110x/Kconfig"
rsource "$(RIOTCPU)/cc2538/radio/Kconfig"
rsource "$(RIOTCPU)/esp32/esp-eth/Kconfig"
rsource "$(RIOTCPU)/nrf5x_common/radio/Kconfig.nrf5x"
rsource "dose/Kconfig"
rsource "enc28j60/Kconfig"

View File

@ -0,0 +1,12 @@
# Copyright (c) 2022 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
depends on HAS_ARCH_ESP32
depends on HAS_PERIPH_ETH

View File

@ -11,4 +11,6 @@ FEATURES_REQUIRED += periph_eth
INCLUDES += -I$(APPDIR)
SHOULD_RUN_KCONFIG =?
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,2 @@
CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y
CONFIG_MODULE_ESP_ETH=y