Skip to content

Commit 86b16eb

Browse files
Fix use of removed macro in ATSAME5x network interface (#1138)
Co-authored-by: Tony Josi <[email protected]>
1 parent 0a5f7fb commit 86b16eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/portable/NetworkInterface/ATSAME5x/NetworkInterface.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void prvEMACDeferredInterruptHandlerTask( void * pvParameters )
336336
{
337337
/* the Atmel SAM GMAC peripheral does not support hardware CRC offloading for ICMP packets.
338338
* It must therefore be implemented in software. */
339-
pxIPPacket = ipCAST_CONST_PTR_TO_CONST_TYPE_PTR( IPPacket_t, pxBufferDescriptor->pucEthernetBuffer );
339+
pxIPPacket = ( IPPacket_t const * ) pxBufferDescriptor->pucEthernetBuffer;
340340

341341
if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP )
342342
{
@@ -440,7 +440,7 @@ BaseType_t xATSAM5x_NetworkInterfaceOutput( NetworkInterface_t * pxInterface,
440440
{
441441
/* the Atmel SAM GMAC peripheral does not support hardware CRC offloading for ICMP packets.
442442
* It must therefore be implemented in software. */
443-
const IPPacket_t * pxIPPacket = ipCAST_CONST_PTR_TO_CONST_TYPE_PTR( IPPacket_t, pxDescriptor->pucEthernetBuffer );
443+
const IPPacket_t * pxIPPacket = ( IPPacket_t const * ) pxDescriptor->pucEthernetBuffer;
444444

445445
if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP )
446446
{

0 commit comments

Comments
 (0)