mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/stm32/periph_eth: model in Kconfig
This commit is contained in:
parent
88df973783
commit
1716638792
@ -27,5 +27,6 @@ config BOARD_NUCLEO_F207ZG
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
select HAS_RIOTBOOT
|
||||
select HAVE_STM32_ETH
|
||||
|
||||
source "$(RIOTBOARD)/common/nucleo144/Kconfig"
|
||||
|
@ -28,5 +28,6 @@ config BOARD_NUCLEO_F746ZG
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
select HAS_RIOTBOOT
|
||||
select HAVE_STM32_ETH
|
||||
|
||||
source "$(RIOTBOARD)/common/nucleo144/Kconfig"
|
||||
|
@ -33,5 +33,6 @@ config BOARD_NUCLEO_F767ZI
|
||||
|
||||
# Put other features for this board (in alphabetical order)
|
||||
select HAS_RIOTBOOT
|
||||
select HAVE_STM32_ETH
|
||||
|
||||
source "$(RIOTBOARD)/common/nucleo144/Kconfig"
|
||||
|
@ -29,6 +29,7 @@ config BOARD_STM32F746G_DISCO
|
||||
select BOARD_HAS_LSE
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_STM32_ETH
|
||||
select HAVE_FT5X06
|
||||
|
||||
source "$(RIOTBOARD)/common/stm32/Kconfig"
|
||||
|
51
cpu/stm32/periph/Kconfig.eth
Normal file
51
cpu/stm32/periph/Kconfig.eth
Normal file
@ -0,0 +1,51 @@
|
||||
# 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.
|
||||
#
|
||||
|
||||
menuconfig MODULE_STM32_ETH
|
||||
bool
|
||||
prompt "STM32 ethernet peripheral" if !(HAVE_STM32_ETH && MODULE_NETDEV_DEFAULT)
|
||||
default (HAVE_STM32_ETH && MODULE_NETDEV_DEFAULT)
|
||||
depends on TEST_KCONFIG
|
||||
depends on CPU_STM32
|
||||
depends on HAS_PERIPH_ETH
|
||||
select MODULE_PERIPH_ETH
|
||||
select MODULE_NETDEV_ETH
|
||||
select MODULE_IOLIST
|
||||
select MODULE_ZTIMER
|
||||
select MODULE_ZTIMER_MSEC
|
||||
|
||||
if MODULE_STM32_ETH
|
||||
|
||||
config MODULE_STM32_ETH_AUTO
|
||||
bool "Link auto-negotiation"
|
||||
select MODULE_STM32_ETH_LINK_UP
|
||||
help
|
||||
Say y to enable link auto-negotiation. In general, it is highly
|
||||
recommended to use auto-negotiation, as this can avoid various
|
||||
communication issues on the PHY layer due to configuration mismatch of
|
||||
the link partners. Note that this feature depends on the link state
|
||||
events feature.
|
||||
|
||||
config MODULE_STM32_ETH_LINK_UP
|
||||
bool "Link state events"
|
||||
help
|
||||
Say y to enable link events.
|
||||
|
||||
endif # MODULE_STM32_ETH
|
||||
|
||||
config MODULE_PERIPH_ETH
|
||||
bool
|
||||
depends on HAS_PERIPH_ETH
|
||||
select MODULE_PERIPH_ETH_COMMON
|
||||
|
||||
config MODULE_PERIPH_ETH_COMMON
|
||||
bool
|
||||
|
||||
config HAVE_STM32_ETH
|
||||
bool
|
||||
help
|
||||
Indicates that a stm32 ethernet peripheral is present.
|
@ -27,6 +27,7 @@ rsource "rn2xx3/Kconfig"
|
||||
rsource "$(RIOTCPU)/sam0_common/sam0_eth/Kconfig"
|
||||
rsource "slipdev/Kconfig"
|
||||
rsource "$(RIOTCPU)/native/socket_zep/Kconfig"
|
||||
rsource "$(RIOTCPU)/stm32/periph/Kconfig.eth"
|
||||
rsource "sx126x/Kconfig"
|
||||
rsource "sx127x/Kconfig"
|
||||
rsource "sx1280/Kconfig"
|
||||
|
12
tests/driver_stm32_eth/Kconfig
Normal file
12
tests/driver_stm32_eth/Kconfig
Normal 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_CPU_STM32
|
||||
depends on HAS_PERIPH_ETH
|
2
tests/driver_stm32_eth/app.config.test
Normal file
2
tests/driver_stm32_eth/app.config.test
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y
|
||||
CONFIG_MODULE_STM32_ETH=y
|
Loading…
Reference in New Issue
Block a user