mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	W5500 features an Ethernet MAC+PHY, plus a HW SOCKET implementation. But in IDF, we only use software TCP/IP stack, which means we have to bypass the HW TCP/IP stack in W5500. So we enables the MAC RAW mode in W5500.
		
			
				
	
	
		
			25 lines
		
	
	
		
			576 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			576 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# Component Makefile
 | 
						|
#
 | 
						|
COMPONENT_ADD_INCLUDEDIRS := include
 | 
						|
COMPONENT_SRCDIRS := src
 | 
						|
 | 
						|
ifndef CONFIG_ETH_USE_ESP32_EMAC
 | 
						|
    COMPONENT_OBJEXCLUDE += src/esp_eth_mac_esp32.o
 | 
						|
endif
 | 
						|
 | 
						|
ifndef CONFIG_ETH_SPI_ETHERNET_DM9051
 | 
						|
    COMPONENT_OBJEXCLUDE += src/esp_eth_mac_dm9051.o src/esp_eth_phy_dm9051.o
 | 
						|
endif
 | 
						|
 | 
						|
ifndef CONFIG_ETH_SPI_ETHERNET_W5500
 | 
						|
    COMPONENT_OBJEXCLUDE += src/esp_eth_mac_w5500.o src/esp_eth_phy_w5500.o
 | 
						|
endif
 | 
						|
 | 
						|
ifndef CONFIG_ETH_USE_OPENETH
 | 
						|
    COMPONENT_OBJEXCLUDE += src/esp_eth_mac_openeth.o
 | 
						|
endif
 | 
						|
 | 
						|
# uses C11 atomic feature
 | 
						|
src/esp_eth.o: CFLAGS += -std=gnu11
 |