diff --git a/source/portable/NetworkInterface/DriverSAM/NetworkInterface.c b/source/portable/NetworkInterface/DriverSAM/NetworkInterface.c index 33d986ca48..1c7993d6f1 100644 --- a/source/portable/NetworkInterface/DriverSAM/NetworkInterface.c +++ b/source/portable/NetworkInterface/DriverSAM/NetworkInterface.c @@ -742,10 +742,10 @@ static BaseType_t prvGMACInit( NetworkInterface_t * pxInterface ) } #endif /* ipconfigUSE_MDNS */ - // Register the Link-Local All-Nodes address - // FF02::1 --> 33-33-00-00-00-01 + /* Register the Link-Local All-Nodes address */ + /* FF02::1 --> 33-33-00-00-00-01 */ uint8_t pcLOCAL_ALL_NODES_MULTICAST_MAC[ ipMAC_ADDRESS_LENGTH_BYTES ] = { 0x33, 0x33, 0x00, 0x00, 0x00, 0x01 }; - prvAddMulticastMACAddress(pcLOCAL_ALL_NODES_MULTICAST_MAC); + prvAddMulticastMACAddress( pcLOCAL_ALL_NODES_MULTICAST_MAC ); for( pxEndPoint = FreeRTOS_FirstEndPoint( pxMyInterface ); pxEndPoint != NULL; @@ -753,7 +753,7 @@ static BaseType_t prvGMACInit( NetworkInterface_t * pxInterface ) { if( pxEndPoint->bits.bIPv6 != pdFALSE_UNSIGNED ) { - // Since this is an IPv6 end point, add the solicited-node MAC address. + /* Since this is an IPv6 end point, add the solicited-node MAC address. */ uint8_t ucMACAddress[ 6 ] = { 0x33, 0x33, 0xff, 0, 0, 0 }; ucMACAddress[ 3 ] = pxEndPoint->ipv6_settings.xIPAddress.ucBytes[ 13 ]; @@ -800,9 +800,9 @@ static BaseType_t prvGMACInit( NetworkInterface_t * pxInterface ) } /*-----------------------------------------------------------*/ -#define GMAC_ADDRESS_HASH_BITS ( 64U ) -#define GMAC_ADDRESS_HASH_MASK ( GMAC_ADDRESS_HASH_BITS - 1 ) -#define GMAC_ADDRESS_HASH_COUNTERS_MAX_VALUE ( 255U ) + #define GMAC_ADDRESS_HASH_BITS ( 64U ) + #define GMAC_ADDRESS_HASH_MASK ( GMAC_ADDRESS_HASH_BITS - 1 ) + #define GMAC_ADDRESS_HASH_COUNTERS_MAX_VALUE ( 255U ) static uint8_t prvAddressHashCounters[ GMAC_ADDRESS_HASH_BITS ] = { 0 }; static uint64_t prvAddressHashBitMask = ( 0 ); @@ -1159,9 +1159,9 @@ static uint32_t prvEMACRxPoll( void ) /*-----------------------------------------------------------*/ volatile UBaseType_t uxLastMinBufferCount = 0; -#if ( ipconfigCHECK_IP_QUEUE_SPACE != 0 ) + #if ( ipconfigCHECK_IP_QUEUE_SPACE != 0 ) volatile UBaseType_t uxLastMinQueueSpace; -#endif + #endif volatile UBaseType_t uxCurrentSemCount; volatile UBaseType_t uxLowestSemCount;