Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested
Fork of F7_Ethernet by
Diff: lwip/netif/etharp.c
- Revision:
- 2:11660e6c9d7a
- Parent:
- 0:d26c1b55cfca
diff -r 28ba13dd96f7 -r 11660e6c9d7a lwip/netif/etharp.c --- a/lwip/netif/etharp.c Thu Jun 23 09:04:23 2016 +0000 +++ b/lwip/netif/etharp.c Sun Aug 20 17:01:43 2017 +0000 @@ -45,7 +45,8 @@ #include "lwip/opt.h" -#if LWIP_ARP || LWIP_ETHERNET +//By Pellini +#if LWIP_ARP || LWIP_ETHERNET || LWIP_GOOSE #include "lwip/ip_addr.h" #include "lwip/def.h" @@ -1300,6 +1301,7 @@ (unsigned)htons(ethhdr->type))); type = ethhdr->type; + #if ETHARP_SUPPORT_VLAN if (type == PP_HTONS(ETHTYPE_VLAN)) { struct eth_vlan_hdr *vlan = (struct eth_vlan_hdr*)(((char*)ethhdr) + SIZEOF_ETH_HDR); @@ -1344,6 +1346,13 @@ } switch (type) { +#if LWIP_GOOSE //by Pellini + /* IEC 61850 fixed GOOSE reception - described in GOOSE.C */ + case PP_HTONS(ETHTYPE_GOOSE): + gooseRcv_input(netif, p); + break; +#endif + #if LWIP_ARP /* IP packet? */ case PP_HTONS(ETHTYPE_IP):