Skip to content

Commit 1ea132d

Browse files
erwangocarlescufi
authored andcommitted
drivers: ethernet: stm32: Set API V2 as default
Set STM32CubeHAL ethernet version in use as V2 by default, on series supporting it (H7, F7, F4). Not yet available on F2 series. Add a choice symbol to explicit V1 version as deprecated. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 parent b9a5d0d commit 1ea132d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/ethernet/Kconfig.stm32_hal

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,23 @@ menuconfig ETH_STM32_HAL
1717

1818
if ETH_STM32_HAL
1919

20+
choice ETH_STM32_HAL_API_VERSION
21+
prompt "STM32Cube HAL Ethernet version"
22+
2023
config ETH_STM32_HAL_API_V2
2124
bool "Use new HAL driver"
2225
depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
2326
help
2427
Use the new HAL driver instead of the legacy one.
2528

29+
config ETH_STM32_HAL_API_V1
30+
bool "Use new HAL driver"
31+
select DEPRECATED if SOC_SERIES_STM32H7X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
32+
help
33+
Driver version based on legacy HAL version. Deprecated unless using STM32F2 series.
34+
35+
endchoice
36+
2637
config ETH_STM32_HAL_RX_THREAD_STACK_SIZE
2738
int "RX thread stack size"
2839
default 1500

0 commit comments

Comments
 (0)