Skip to content

Commit d1d1e57

Browse files
erwangojhedberg
authored andcommitted
drivers: ethernet: stm32: Split v1 and v2 code
Split V1 and V2 code from the common file of STM32 ethernet driver. Whenever it is possible, make use of v1 or v2 version of functions that are call from the common file in order to maximize factorization. Review definitions to put them where they are used. Review header inclusions to minimize them. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 2f23eb2 commit d1d1e57

File tree

5 files changed

+1069
-937
lines changed

5 files changed

+1069
-937
lines changed

drivers/ethernet/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ endif()
5454

5555
if(CONFIG_ETH_STM32_HAL)
5656
zephyr_library_sources(eth_stm32_hal_common.c)
57+
zephyr_library_sources_ifdef(CONFIG_ETH_STM32_HAL_API_V1 eth_stm32_hal_v1.c)
58+
zephyr_library_sources_ifdef(CONFIG_ETH_STM32_HAL_API_V2 eth_stm32_hal_v2.c)
5759
zephyr_library_sources_ifdef(CONFIG_PTP_CLOCK_STM32_HAL eth_stm32_hal_ptp.c)
5860
endif()
5961

0 commit comments

Comments
 (0)