A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: link/nicdefs.h
- Revision:
- 136:8a65abb0dc63
- Parent:
- 70:74c11fb71a15
- Child:
- 137:cf6e7db0e985
--- a/link/nicdefs.h Sat Mar 23 12:25:48 2019 +0000 +++ b/link/nicdefs.h Sat Apr 06 11:20:20 2019 +0000 @@ -1,27 +1,35 @@ -__packed struct RX_DESC_TypeDef { /* RX Descriptor struct */ +__packed struct RX_DESC_TypeDef +{ unsigned int Packet; unsigned int Ctrl; }; typedef struct RX_DESC_TypeDef RX_DESC_TypeDef; -__packed struct RX_STAT_TypeDef { /* RX Status struct */ + +__packed struct RX_STAT_TypeDef +{ unsigned int Info; unsigned int HashCRC; }; typedef struct RX_STAT_TypeDef RX_STAT_TypeDef; -__packed struct TX_DESC_TypeDef { /* TX Descriptor struct */ + +__packed struct TX_DESC_TypeDef +{ unsigned int Packet; unsigned int Ctrl; }; typedef struct TX_DESC_TypeDef TX_DESC_TypeDef; -__packed struct TX_STAT_TypeDef { /* TX Status struct */ + +__packed struct TX_STAT_TypeDef +{ unsigned int Info; }; typedef struct TX_STAT_TypeDef TX_STAT_TypeDef; + //Registers #define MAC1 (*((volatile unsigned *) 0x50000000)) #define MAC2 (*((volatile unsigned *) 0x50000004))