8686#endif
8787
8888/* Setup LLMNR specific multicast address. */
89- #if ( defined( ipconfigUSE_LLMNR ) && ( ipconfigUSE_LLMNR == 1 ) )
89+ #if ( ipconfigUSE_LLMNR == 1 )
9090static uint8_t ucLLMNR_MAC_address [] = { 0x01 , 0x00 , 0x5E , 0x00 , 0x00 , 0xFC };
9191#endif
9292
@@ -122,13 +122,13 @@ static uint8_t ucLLMNR_MAC_address[] = { 0x01, 0x00, 0x5E, 0x00, 0x00, 0xFC };
122122 * static allocation with a non zero-copy driver.
123123 */
124124#define ipUSE_STATIC_ALLOCATION 0
125- #if ( defined( ipUSE_STATIC_ALLOCATION ) && ( ipUSE_STATIC_ALLOCATION == 1 ) )
125+ #if ( ipUSE_STATIC_ALLOCATION == 1 )
126126
127127/* 1536 bytes is more than needed, 1524 would be enough.
128128 * But 1536 is a multiple of 32, which gives a great alignment for cached memories. */
129129 #define NETWORK_BUFFER_SIZE 1536
130130 static uint8_t ucBuffers [ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ][ NETWORK_BUFFER_SIZE ];
131- #endif /* ( defined ( ipUSE_STATIC_ALLOCATION ) && ( ipUSE_STATIC_ALLOCATION == 1 ) ) */
131+ #endif /* if ( ipUSE_STATIC_ALLOCATION == 1 ) */
132132
133133
134134/* Holds the handle of the task used as a deferred interrupt processor. The
@@ -137,7 +137,7 @@ static uint8_t ucLLMNR_MAC_address[] = { 0x01, 0x00, 0x5E, 0x00, 0x00, 0xFC };
137137TaskHandle_t xEMACTaskHandle = NULL ;
138138
139139/* The PING response queue */
140- #if ( defined( ipconfigSUPPORT_OUTGOING_PINGS ) && ( ipconfigSUPPORT_OUTGOING_PINGS == 1 ) )
140+ #if ( ipconfigSUPPORT_OUTGOING_PINGS == 1 )
141141 QueueHandle_t xPingReplyQueue = NULL ;
142142#endif
143143
@@ -254,7 +254,7 @@ BaseType_t xATSAM5x_NetworkInterfaceInitialise( NetworkInterface_t * pxInterface
254254 prvPHYLinkReset ();
255255
256256 /* Initialize PING capability */
257- #if ( defined( ipconfigSUPPORT_OUTGOING_PINGS ) && ( ipconfigSUPPORT_OUTGOING_PINGS == 1 ) )
257+ #if ( ipconfigSUPPORT_OUTGOING_PINGS == 1 )
258258 xPingReplyQueue = xQueueCreate ( ipconfigPING_QUEUE_SIZE , sizeof ( uint16_t ) );
259259 #endif
260260
@@ -471,7 +471,7 @@ void xRxCallback( void )
471471 vTaskNotifyGiveFromISR ( xEMACTaskHandle , 0 );
472472}
473473
474- #if ( defined( ipUSE_STATIC_ALLOCATION ) && ( ipUSE_STATIC_ALLOCATION == 1 ) )
474+ #if ( ipUSE_STATIC_ALLOCATION == 1 )
475475
476476/* Next provide the vNetworkInterfaceAllocateRAMToBuffers() function, which
477477 * simply fills in the pucEthernetBuffer member of each descriptor. */
@@ -490,7 +490,7 @@ void xRxCallback( void )
490490 * ( ( uint32_t * ) & ucBuffers [ x ][ 0 ] ) = ( uint32_t ) & ( pxNetworkBuffers [ x ] );
491491 }
492492 }
493- #endif /* ( defined ( ipUSE_STATIC_ALLOCATION ) && ( ipUSE_STATIC_ALLOCATION == 1 ) ) */
493+ #endif /* if ( ipUSE_STATIC_ALLOCATION == 1 ) */
494494
495495
496496/*********************************************************************/
@@ -518,7 +518,7 @@ static void prvGMACInit()
518518 prvGMACEnableMulticastHashTable ( true );
519519
520520 /* Enable traffic for LLMNR, if defined. */
521- #if ( defined( ipconfigUSE_LLMNR ) && ( ipconfigUSE_LLMNR == 1 ) )
521+ #if ( ipconfigUSE_LLMNR == 1 )
522522 {
523523 mac_async_set_filter_ex ( & ETH_MAC , ucLLMNR_MAC_address );
524524 }
0 commit comments