Rewrite from scratch a TCP/IP stack for mbed. So far the following parts are usable: Drivers: - EMAC driver (from CMSIS 2.0) Protocols: - Ethernet protocol - ARP over ethernet for IPv4 - IPv4 over Ethernet - ICMPv4 over IPv4 - UDPv4 over IPv4 APIs: - Sockets for UDPv4 The structure of this stack is designed to be very modular. Each protocol can register one or more protocol to handle its payload, and in each protocol, an API can be hooked (like Sockets for example). This is an early release.

Revision:
1:f4040665bc61
Parent:
0:19f5f51584de
Child:
4:cb3dc3361be5
--- a/lpc17xx_emac.h	Sun Jun 12 11:23:03 2011 +0000
+++ b/lpc17xx_emac.h	Sun Jun 12 19:17:11 2011 +0000
@@ -68,8 +68,8 @@
 
 
 /* EMAC Memory Buffer configuration for 16K Ethernet RAM */
-#define EMAC_NUM_RX_FRAG         4           /**< Num.of RX Fragments 4*1536= 6.0kB */
-#define EMAC_NUM_TX_FRAG         3           /**< Num.of TX Fragments 3*1536= 4.6kB */
+#define EMAC_NUM_RX_FRAG         6           /**< Num.of RX Fragments 6*1536= 9kB */
+#define EMAC_NUM_TX_FRAG         4           /**< Num.of TX Fragments 4*1536= 6kB */
 #define EMAC_ETH_MAX_FLEN        1536        /**< Max. Ethernet Frame Size          */
 #define EMAC_TX_FRAME_TOUT       0x00100000  /**< Frame Transmit timeout count      */
 
@@ -673,8 +673,8 @@
 IntStatus EMAC_IntGetStatus(uint32_t ulIntType);
 
 /* EMAC Index functions -----------*/
-bool EMAC_CheckReceiveIndex(void);
-bool EMAC_CheckTransmitIndex(void);
+Bool EMAC_CheckReceiveIndex(void);
+Bool EMAC_CheckTransmitIndex(void);
 void EMAC_UpdateRxConsumeIndex(void);
 void EMAC_UpdateTxProduceIndex(void);