Skip to content

Commit bddae66

Browse files
author
Emil Popov
committed
Merge branch 'main' into MCast_PR
2 parents 7576531 + 1bc37d3 commit bddae66

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

source/FreeRTOS_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ void * FreeRTOS_GetUDPPayloadBuffer_Multi( size_t uxRequestedSizeBytes,
956956

957957
/* IF the following function should be declared in the NetworkInterface.c
958958
* linked in the project. */
959-
pxFillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
959+
( void ) pxFillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
960960
FreeRTOS_FillEndPoint( &( xInterfaces[ 0 ] ), &( xEndPoints[ 0 ] ), ucIPAddress, ucNetMask, ucGatewayAddress, ucDNSServerAddress, ucMACAddress );
961961
#if ( ipconfigUSE_DHCP != 0 )
962962
{

source/portable/NetworkInterface/DriverSAM/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,15 @@ static BaseType_t prvSAM_NetworkInterfaceInitialise( NetworkInterface_t * pxInte
522522
}
523523
/*-----------------------------------------------------------*/
524524

525-
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
525+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
526526

527527
/* Do not call the following function directly. It is there for downward compatibility.
528528
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point
529529
* objects. See the description in FreeRTOS_Routing.h. */
530530
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
531531
NetworkInterface_t * pxInterface )
532532
{
533-
pxSAM_FillInterfaceDescriptor( xEMACIndex, pxInterface );
533+
return pxSAM_FillInterfaceDescriptor( xEMACIndex, pxInterface );
534534
}
535535

536536
#endif

source/portable/NetworkInterface/MPS2_AN385/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,15 @@ static BaseType_t xMPS2_GetPhyLinkStatus( NetworkInterface_t * pxInterface )
398398

399399
/*-----------------------------------------------------------*/
400400

401-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
401+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
402402

403403
/* Do not call the following function directly. It is there for downward compatibility.
404404
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point
405405
* objects. See the description in FreeRTOS_Routing.h. */
406406
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
407407
NetworkInterface_t * pxInterface )
408408
{
409-
pxMPS2_FillInterfaceDescriptor( xEMACIndex, pxInterface );
409+
return pxMPS2_FillInterfaceDescriptor( xEMACIndex, pxInterface );
410410
}
411411

412412
#endif

source/portable/NetworkInterface/MPS3_AN552/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,15 @@ static BaseType_t xLAN91C111_GetPhyLinkStatus( NetworkInterface_t * pxInterface
507507

508508
/*-----------------------------------------------------------*/
509509

510-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
510+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
511511

512512
/* Do not call the following function directly. It is there for downward compatibility.
513513
* The function FreeRTOS_IPInit() will call it to initialise the interface and end-point
514514
* objects. See the description in FreeRTOS_Routing.h. */
515515
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
516516
NetworkInterface_t * pxInterface )
517517
{
518-
pxLAN91C111_FillInterfaceDescriptor( xEMACIndex, pxInterface );
518+
return pxLAN91C111_FillInterfaceDescriptor( xEMACIndex, pxInterface );
519519
}
520520

521521
#endif

source/portable/NetworkInterface/MPS4_CS315/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,15 @@ static BaseType_t xLAN91C111_GetPhyLinkStatus( NetworkInterface_t * pxInterface
507507

508508
/*-----------------------------------------------------------*/
509509

510-
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
510+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
511511

512512
/* Do not call the following function directly. It is there for downward compatibility.
513513
* The function FreeRTOS_IPInit() will call it to initialise the interface and end-point
514514
* objects. See the description in FreeRTOS_Routing.h. */
515515
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
516516
NetworkInterface_t * pxInterface )
517517
{
518-
pxLAN91C111_FillInterfaceDescriptor( xEMACIndex, pxInterface );
518+
return pxLAN91C111_FillInterfaceDescriptor( xEMACIndex, pxInterface );
519519
}
520520

521521
#endif

source/portable/NetworkInterface/NXP1060/NetworkInterface.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,18 @@ NetworkInterface_t * pxNXP1060_FillInterfaceDescriptor( BaseType_t xEMACIndex,
269269
NetworkInterface_t * pxInterface );
270270
/*-----------------------------------------------------------*/
271271

272-
#if ( ipconfigCOMPATIBLE_WITH_SINGLE != 0 )
272+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
273273

274274
/* Do not call the following function directly. It is there for downward compatibility.
275275
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point
276276
* objects. See the description in FreeRTOS_Routing.h. */
277277
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
278278
NetworkInterface_t * pxInterface )
279279
{
280-
pxNXP1060_FillInterfaceDescriptor( xEMACIndex, pxInterface );
280+
return pxNXP1060_FillInterfaceDescriptor( xEMACIndex, pxInterface );
281281
}
282282

283-
#endif /* ( ipconfigCOMPATIBLE_WITH_SINGLE != 0 ) */
283+
#endif /* ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 ) */
284284
/*-----------------------------------------------------------*/
285285

286286
NetworkInterface_t * pxNXP1060_FillInterfaceDescriptor( BaseType_t xEMACIndex,

source/portable/NetworkInterface/STM32Fxx/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ BaseType_t xNetworkInterfaceOutput( NetworkInterface_t * pxInterface,
353353
return xSTM32F_NetworkInterfaceOutput( pxInterface, pxBuffer, bReleaseAfterSend );
354354
}
355355

356-
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
356+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
357357

358358
/* Do not call the following function directly. It is there for downward compatibility.
359359
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point

source/portable/NetworkInterface/STM32Hxx/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static BaseType_t xSTM32H_GetPhyLinkStatus( NetworkInterface_t * pxInterface )
535535
}
536536
/*-----------------------------------------------------------*/
537537

538-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
538+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
539539

540540
/* Do not call the following function directly. It is there for downward compatibility.
541541
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point

source/portable/NetworkInterface/WinPCap/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static BaseType_t xWinPcap_GetPhyLinkStatus( NetworkInterface_t * pxInterface )
347347
}
348348
/*-----------------------------------------------------------*/
349349

350-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
350+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
351351

352352

353353
/* Do not call the following function directly. It is there for downward compatibility.
@@ -356,7 +356,7 @@ static BaseType_t xWinPcap_GetPhyLinkStatus( NetworkInterface_t * pxInterface )
356356
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
357357
NetworkInterface_t * pxInterface )
358358
{
359-
pxWinPcap_FillInterfaceDescriptor( xEMACIndex, pxInterface );
359+
return pxWinPcap_FillInterfaceDescriptor( xEMACIndex, pxInterface );
360360
}
361361

362362
#endif

source/portable/NetworkInterface/Zynq/NetworkInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,15 @@ static BaseType_t xZynqGetPhyLinkStatus( NetworkInterface_t * pxInterface )
523523
}
524524
/*-----------------------------------------------------------*/
525525

526-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
526+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE != 0 )
527527

528528
/* Do not call the following function directly. It is there for downward compatibility.
529529
* The function FreeRTOS_IPInit() will call it to initialice the interface and end-point
530530
* objects. See the description in FreeRTOS_Routing.h. */
531531
NetworkInterface_t * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
532532
NetworkInterface_t * pxInterface )
533533
{
534-
pxZynq_FillInterfaceDescriptor( xEMACIndex, pxInterface );
534+
return pxZynq_FillInterfaceDescriptor( xEMACIndex, pxInterface );
535535
}
536536

537537
#endif

0 commit comments

Comments
 (0)