Skip to content

Commit c18bfe7

Browse files
HTRamseybjsowa
andauthored
Apply suggestions from code review
Co-authored-by: Błażej Sowa <[email protected]>
1 parent c614c67 commit c18bfe7

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

source/portable/NetworkInterface/STM32/CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,35 @@ endif()
55
#------------------------------------------------------------------------------
66
add_library( freertos_plus_tcp_network_if STATIC )
77

8+
set( FREERTOS_PLUS_TCP_STM32_IF_DRIVER "None" CACHE STRING "The driver sources to use with STM32 Network interface" )
9+
810
target_sources( freertos_plus_tcp_network_if
911
PRIVATE
1012
NetworkInterface.c
13+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},F4>:
14+
Drivers/F4/stm32f4xx_hal_eth.c>
15+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},F7>:
16+
Drivers/F7/stm32f7xx_hal_eth.c>
17+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H5>:
18+
Drivers/H5/stm32h5xx_hal_eth_ex.c>
19+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H5>:
20+
Drivers/H5/stm32h5xx_hal_eth.c>
21+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H7>:
22+
Drivers/H7/stm32h7xx_hal_eth_ex.c>
23+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H7>:
24+
Drivers/H7/stm32h7xx_hal_eth.c>
25+
)
26+
27+
target_include_directories( freertos_plus_tcp_network_if
28+
PUBLIC
29+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},F4>:
30+
Drivers/F4>
31+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},F7>:
32+
Drivers/F7>
33+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H5>:
34+
Drivers/H5>
35+
$<$<STREQUAL:${FREERTOS_PLUS_TCP_STM32_IF_DRIVER},H7>:
36+
Drivers/H7>
1137
)
1238

1339
target_link_libraries( freertos_plus_tcp_network_if

source/portable/NetworkInterface/STM32/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ static void prvInitMacAddresses( ETH_HandleTypeDef * pxEthHandle,
11941194
#endif
11951195

11961196
#if ipconfigIS_ENABLED( ipconfigUSE_IPv6 )
1197-
prvAddAllowedMACAddress( pxInterface, pcLOCAL_ALL_NODES_MULTICAST_MAC.ucBytes );
1197+
prvAddAllowedMACAddress( pxInterface, pcLOCAL_ALL_NODES_MULTICAST_MAC );
11981198
#if ipconfigIS_ENABLED( ipconfigUSE_MDNS )
11991199
prvAddAllowedMACAddress( pxInterface, xMDNS_MacAddressIPv6.ucBytes );
12001200
#endif

0 commit comments

Comments
 (0)