This commit is contained in:
Richard Barry 2007-06-05 09:35:13 +00:00
parent 014d7f5b8f
commit 22e434dfaf
134 changed files with 39468 additions and 39401 deletions

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -135,8 +135,14 @@ struct uip_eth_addr uip_ethaddr = {{0,0,0,0,0,0}};
#endif #endif
#ifndef UIP_CONF_EXTERNAL_BUFFER #ifndef UIP_CONF_EXTERNAL_BUFFER
u8_t uip_buf[UIP_BUFSIZE + 2] ALIGN_STRUCT_END; /* The packet buffer that contains
incoming packets. */ #ifdef __ICCARM__
#pragma data_alignment=4
u8_t uip_buf[UIP_BUFSIZE + 2]; /* The packet buffer that contains incoming packets. */
#else
u8_t uip_buf[UIP_BUFSIZE + 2] ALIGN_STRUCT_END; /* The packet buffer that contains incoming packets. */
#endif
#endif /* UIP_CONF_EXTERNAL_BUFFER */ #endif /* UIP_CONF_EXTERNAL_BUFFER */
void *uip_appdata; /* The uip_appdata pointer points to void *uip_appdata; /* The uip_appdata pointer points to

View file

@ -419,7 +419,11 @@ void uip_setipid(u16_t id);
} }
\endcode \endcode
*/ */
#ifndef UIP_CONF_EXTERNAL_BUFFER
extern u8_t uip_buf[UIP_BUFSIZE+2]; extern u8_t uip_buf[UIP_BUFSIZE+2];
#else
extern unsigned char *uip_buf;
#endif
/** @} */ /** @} */
@ -1383,6 +1387,11 @@ void uip_process(u8_t flag);
#define UIP_STOPPED 16 #define UIP_STOPPED 16
/* The TCP and IP headers. */ /* The TCP and IP headers. */
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct uip_tcpip_hdr { struct uip_tcpip_hdr {
#if UIP_CONF_IPV6 #if UIP_CONF_IPV6
/* IPv6 header. */ /* IPv6 header. */
@ -1419,7 +1428,15 @@ struct uip_tcpip_hdr {
u8_t optdata[4]; u8_t optdata[4];
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
/* The ICMP and IP headers. */ /* The ICMP and IP headers. */
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct uip_icmpip_hdr { struct uip_icmpip_hdr {
#if UIP_CONF_IPV6 #if UIP_CONF_IPV6
/* IPv6 header. */ /* IPv6 header. */
@ -1455,8 +1472,16 @@ struct uip_icmpip_hdr {
#endif /* !UIP_CONF_IPV6 */ #endif /* !UIP_CONF_IPV6 */
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
/* The UDP and IP headers. */ /* The UDP and IP headers. */
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct uip_udpip_hdr { struct uip_udpip_hdr {
#if UIP_CONF_IPV6 #if UIP_CONF_IPV6
/* IPv6 header. */ /* IPv6 header. */
@ -1487,6 +1512,10 @@ struct uip_udpip_hdr {
u16_t udpchksum; u16_t udpchksum;
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
/** /**
@ -1539,10 +1568,18 @@ extern uip_ipaddr_t uip_hostaddr, uip_netmask, uip_draddr;
/** /**
* Representation of a 48-bit Ethernet address. * Representation of a 48-bit Ethernet address.
*/ */
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct uip_eth_addr { struct uip_eth_addr {
u8_t addr[6]; u8_t addr[6];
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
/** /**
* Calculate the Internet checksum over a buffer. * Calculate the Internet checksum over a buffer.
* *

View file

@ -63,6 +63,10 @@
#include <string.h> #include <string.h>
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct arp_hdr { struct arp_hdr {
struct uip_eth_hdr ethhdr; struct uip_eth_hdr ethhdr;
u16_t hwtype; u16_t hwtype;
@ -76,6 +80,14 @@ struct arp_hdr {
u16_t dipaddr[2]; u16_t dipaddr[2];
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct ethip_hdr { struct ethip_hdr {
struct uip_eth_hdr ethhdr; struct uip_eth_hdr ethhdr;
/* IP header. */ /* IP header. */
@ -91,6 +103,10 @@ struct ethip_hdr {
destipaddr[2]; destipaddr[2];
} PACK_STRUCT_END; } PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
#define ARP_REQUEST 1 #define ARP_REQUEST 1
#define ARP_REPLY 2 #define ARP_REPLY 2

View file

@ -60,12 +60,20 @@ extern struct uip_eth_addr uip_ethaddr;
/** /**
* The Ethernet header. * The Ethernet header.
*/ */
#ifdef __ICCARM__
#pragma pack(1)
#endif
struct uip_eth_hdr { struct uip_eth_hdr {
struct uip_eth_addr dest; struct uip_eth_addr dest;
struct uip_eth_addr src; struct uip_eth_addr src;
u16_t type; u16_t type;
}PACK_STRUCT_END; }PACK_STRUCT_END;
#ifdef __ICCARM__
#pragma pack()
#endif
#define UIP_ETHTYPE_ARP 0x0806 #define UIP_ETHTYPE_ARP 0x0806
#define UIP_ETHTYPE_IP 0x0800 #define UIP_ETHTYPE_IP 0x0800
#define UIP_ETHTYPE_IP6 0x86dd #define UIP_ETHTYPE_IP6 0x86dd

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS.org V4.2.1 - Copyright (C) 2003-2007 Richard Barry. FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.
This file is part of the FreeRTOS.org distribution. This file is part of the FreeRTOS.org distribution.