Skip to content

Commit 390f69a

Browse files
committed
Merge branch 'main' into dev-stm32
2 parents b278985 + 297cce5 commit 390f69a

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cmake_minimum_required(VERSION 3.15)
2+
cmake_minimum_required(VERSION 3.21)
33
cmake_policy(SET CMP0048 NEW) # project version
44
cmake_policy(SET CMP0076 NEW) # full paths
55

@@ -173,4 +173,6 @@ add_subdirectory(source)
173173
add_subdirectory(tools)
174174
add_subdirectory(test)
175175

176-
FetchContent_MakeAvailable(freertos_kernel cmock)
176+
if(PROJECT_IS_TOP_LEVEL)
177+
FetchContent_MakeAvailable(freertos_kernel cmock)
178+
endif()

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ FetchContent_Declare( freertos_plus_tcp
6060
- this particular example supports a native and cross-compiled build option.
6161

6262
```cmake
63-
set( FREERTOS_PLUS_FAT_DEV_SUPPORT OFF CACHE BOOL "" FORCE)
6463
# Select the native compile PORT
65-
set( FREERTOS_PLUS_FAT_PORT "POSIX" CACHE STRING "" FORCE)
66-
# Select the cross-compile PORT
64+
set( FREERTOS_PLUS_TCP_NETWORK_IF "POSIX" CACHE STRING "" FORCE)
65+
# Or: select a cross-compile PORT
6766
if (CMAKE_CROSSCOMPILING)
68-
# Eg. Zynq 2019_3 version of port
69-
set(FREERTOS_PLUS_FAT_PORT "ZYNQ_2019_3" CACHE STRING "" FORCE)
67+
# Eg. STM32Hxx version of port
68+
set(FREERTOS_PLUS_TCP_NETWORK_IF "STM32HXX" CACHE STRING "" FORCE)
7069
endif()
7170
7271
FetchContent_MakeAvailable(freertos_plus_tcp)

source/FreeRTOS_DNS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
* The MAC-addresses are provided here in case a network
151151
* interface needs it.
152152
*/
153-
const MACAddress_t xMDNS_MACAddressIPv6 = { { 0x33, 0x33, 0x00, 0x00, 0x00, 0xFB } };
153+
const MACAddress_t xMDNS_MacAddressIPv6 = { { 0x33, 0x33, 0x00, 0x00, 0x00, 0xFB } };
154154
#endif /* ( ipconfigUSE_MDNS == 1 ) && ( ipconfigUSE_IPv6 != 0 ) */
155155

156156

source/include/FreeRTOS_DNS.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ uint32_t ulDNSHandlePacket( const NetworkBufferDescriptor_t * pxNetworkBuffer );
7171
extern const IPv6_Address_t ipMDNS_IP_ADDR_IPv6;
7272

7373
/* The MDNS IPv6 MAC address is 33:33:00:01:00:03 */
74-
extern const MACAddress_t xMDNS_MACAddressIPv6;
74+
75+
/* This type-name was formally "misspelled" as
76+
* xMDNS_MACAddressIPv6 with "MAC": */
77+
extern const MACAddress_t xMDNS_MacAddressIPv6;
78+
/* Guarantee backward compatibility. */
79+
#define xMDNS_MACAddressIPv6 xMDNS_MacAddressIPv6
7580
#endif /* ipconfigUSE_MDNS */
7681

7782
/** @brief While doing integration tests, it is necessary to influence the choice

source/portable/NetworkInterface/DriverSAM/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ static BaseType_t prvGMACInit( NetworkInterface_t * pxInterface )
787787

788788
#if ( ipconfigUSE_MDNS == ipconfigENABLE )
789789
{
790-
prvAddAllowedMACAddress( pxInterface, xMDNS_MACAddressIPv6.ucBytes );
790+
prvAddAllowedMACAddress( pxInterface, xMDNS_MacAddressIPv6.ucBytes );
791791
}
792792
#endif /* ipconfigUSE_MDNS */
793793
}

source/portable/NetworkInterface/STM32/Legacy/STM32Fxx/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ BaseType_t xSTM32F_NetworkInterfaceInitialise( NetworkInterface_t * pxInterface
537537
#endif
538538
#if ( ( ipconfigUSE_MDNS == 1 ) && ( ipconfigUSE_IPv6 != 0 ) )
539539
{
540-
prvMACAddressConfig( &xETH, xMACEntry, ( uint8_t * ) xMDNS_MACAddressIPv6.ucBytes );
540+
prvMACAddressConfig( &xETH, xMACEntry, ( uint8_t * ) xMDNS_MacAddressIPv6.ucBytes );
541541
xMACEntry += 8;
542542
}
543543
#endif

source/portable/NetworkInterface/Zynq/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static BaseType_t xZynqNetworkInterfaceInitialise( NetworkInterface_t * pxInterf
288288

289289
#if ( ( ipconfigUSE_MDNS == 1 ) && ( ipconfigUSE_IPv6 != 0 ) )
290290
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddress.ucBytes );
291-
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MACAddressIPv6.ucBytes );
291+
XEmacPs_SetHash( pxEMAC_PS, ( void * ) xMDNS_MacAddressIPv6.ucBytes );
292292
#endif
293293

294294
pxEndPoint = FreeRTOS_NextEndPoint( pxInterface, pxEndPoint );

0 commit comments

Comments
 (0)