Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested
Fork of F7_Ethernet by
Diff: lwip/include/netif/etharp.h
- Revision:
- 2:11660e6c9d7a
- Parent:
- 0:d26c1b55cfca
--- a/lwip/include/netif/etharp.h Thu Jun 23 09:04:23 2016 +0000 +++ b/lwip/include/netif/etharp.h Sun Aug 20 17:01:43 2017 +0000 @@ -37,13 +37,18 @@ #include "lwip/opt.h" -#if LWIP_ARP || LWIP_ETHERNET /* don't build if not configured for use in lwipopts.h */ +//by Pellini +#if LWIP_ARP || LWIP_ETHERNET || LWIP_GOOSE /* don't build if not configured for use in lwipopts.h */ #include "lwip/pbuf.h" #include "lwip/ip_addr.h" #include "lwip/netif.h" #include "lwip/ip.h" +//by Pellini +#include "gooseRcv.h" +#include "SerialDebug.h" + #ifdef __cplusplus extern "C" { #endif @@ -140,6 +145,10 @@ #define ETHTYPE_PPPOEDISC 0x8863U /* PPP Over Ethernet Discovery Stage */ #define ETHTYPE_PPPOE 0x8864U /* PPP Over Ethernet Session Stage */ +/**** added by Eduardo Pellini elpellini@usp.br ****/ +#define ETHTYPE_GOOSE 0x88B8U /* IEC 61850 GOOSE Messages */ +#define ETHTYPE_GOOSESV 0x88BAU /* IEC 61850 GOOSE Sampled Value Messages */ + /** MEMCPY-like macro to copy to/from struct eth_addr's that are local variables * or known to be 32-bit aligned within the protocol header. */ #ifndef ETHADDR32_COPY