Add LPC2368 demo.

This commit is contained in:
Richard Barry 2007-04-05 13:47:25 +00:00
parent 0a6d59a611
commit b36ba44e0d
43 changed files with 5064 additions and 2124 deletions

View file

@ -93,7 +93,7 @@ struct tcpip_hdr {
u16_t tcpchksum;
u8_t urgp[2];
u8_t optdata[4];
};
} PACK_STRUCT_END;
struct icmpip_hdr {
/* IP header. */
@ -112,7 +112,7 @@ struct icmpip_hdr {
u16_t icmpchksum;
u16_t id, seqno;
u8_t payload[1];
};
} PACK_STRUCT_END;
/* ICMP ECHO. */
#define ICMP_ECHO 8

View file

@ -135,7 +135,7 @@ struct uip_eth_addr uip_ethaddr = {{0,0,0,0,0,0}};
#endif
#ifndef UIP_CONF_EXTERNAL_BUFFER
u8_t uip_buf[UIP_BUFSIZE + 2]; /* The packet buffer that contains
u8_t uip_buf[UIP_BUFSIZE + 2] ALIGN_STRUCT_END; /* The packet buffer that contains
incoming packets. */
#endif /* UIP_CONF_EXTERNAL_BUFFER */

View file

@ -1417,7 +1417,7 @@ struct uip_tcpip_hdr {
u16_t tcpchksum;
u8_t urgp[2];
u8_t optdata[4];
};
} PACK_STRUCT_END;
/* The ICMP and IP headers. */
struct uip_icmpip_hdr {
@ -1453,7 +1453,7 @@ struct uip_icmpip_hdr {
u8_t icmp6data[16];
u8_t options[1];
#endif /* !UIP_CONF_IPV6 */
};
} PACK_STRUCT_END;
/* The UDP and IP headers. */
@ -1485,7 +1485,7 @@ struct uip_udpip_hdr {
destport;
u16_t udplen;
u16_t udpchksum;
};
} PACK_STRUCT_END;
@ -1541,7 +1541,7 @@ extern uip_ipaddr_t uip_hostaddr, uip_netmask, uip_draddr;
*/
struct uip_eth_addr {
u8_t addr[6];
};
} PACK_STRUCT_END;
/**
* Calculate the Internet checksum over a buffer.

View file

@ -74,7 +74,7 @@ struct arp_hdr {
u16_t sipaddr[2];
struct uip_eth_addr dhwaddr;
u16_t dipaddr[2];
};
} PACK_STRUCT_END;
struct ethip_hdr {
struct uip_eth_hdr ethhdr;
@ -89,7 +89,7 @@ struct ethip_hdr {
u16_t ipchksum;
u16_t srcipaddr[2],
destipaddr[2];
};
} PACK_STRUCT_END;
#define ARP_REQUEST 1
#define ARP_REPLY 2
@ -230,7 +230,7 @@ uip_arp_update(u16_t *ipaddr, struct uip_eth_addr *ethaddr)
* variable uip_len.
*/
/*-----------------------------------------------------------------------------------*/
#if 0
#if 1
void
uip_arp_ipin(void)
{

View file

@ -64,7 +64,7 @@ struct uip_eth_hdr {
struct uip_eth_addr dest;
struct uip_eth_addr src;
u16_t type;
};
}PACK_STRUCT_END;
#define UIP_ETHTYPE_ARP 0x0806
#define UIP_ETHTYPE_IP 0x0800
@ -80,8 +80,8 @@ void uip_arp_init(void);
inserts a new mapping if none exists. The function assumes that an
IP packet with an Ethernet header is present in the uip_buf buffer
and that the length of the packet is in the uip_len variable. */
/*void uip_arp_ipin(void);*/
#define uip_arp_ipin()
void uip_arp_ipin(void);
//#define uip_arp_ipin()
/* The uip_arp_arpin() should be called when an ARP packet is received
by the Ethernet driver. This function also assumes that the