Skip to content

Commit 264227c

Browse files
author
fpr
committed
Move LwIP in library
Signed-off-by: fpr <[email protected]>
1 parent 6d5e18d commit 264227c

File tree

302 files changed

+27
-27532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+27
-27532
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

libraries/LwIP/library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=LwIP
2+
version=2.0.0
3+
author=Adam Dunkels <[email protected]>
4+
maintainer=See url
5+
sentence=A Lightweight TCP/IP stack
6+
paragraph=lwIP is a small independent implementation of the TCP/IP protocol suite that has been developed by Adam Dunkels at the Computer and Networks Architectures (CNA) lab at the Swedish Institute of Computer Science (SICS). The focus of the lwIP TCP/IP implementation is to reduce the RAM usage while still having a full scale TCP. This making lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM.category=Communication
7+
category=Communication
8+
url=http://git.savannah.gnu.org/cgit/lwip.git
9+
architectures=stm32

libraries/Native_Ethernet/src/utility/LwIP.h renamed to libraries/LwIP/src/LwIP.h

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -39,48 +39,7 @@
3939
#ifndef __LWIP_H__
4040
#define __LWIP_H__
4141

42-
/* Includes ------------------------------------------------------------------*/
43-
44-
#ifdef __cplusplus
45-
extern "C" {
46-
#endif
47-
48-
//Include LwIP source files
49-
50-
#include "api/err.c"
51-
52-
#include "core/ipv4/autoip.c"
53-
#include "core/ipv4/dhcp.c"
54-
#include "core/ipv4/etharp.c"
55-
#include "core/ipv4/icmp.c"
56-
#include "core/ipv4/igmp.c"
57-
#include "core/ipv4/ip4_addr.c"
58-
#include "core/ipv4/ip4_frag.c"
59-
#include "core/ipv4/ip4.c"
60-
61-
#include "core/def.c"
62-
#include "core/dns.c"
63-
#include "core/inet_chksum.c"
64-
#include "core/init.c"
65-
#include "core/ip.c"
66-
#include "core/mem.c"
67-
#include "core/memp.c"
68-
#include "core/netif.c"
69-
#include "core/pbuf.c"
70-
#include "core/raw.c"
71-
#include "core/stats.c"
72-
#include "core/sys.c"
73-
#include "core/tcp_in.c"
74-
#include "core/tcp_out.c"
75-
#include "core/tcp.c"
76-
#include "core/timeouts.c"
77-
#include "core/udp.c"
78-
79-
#include "netif/ethernet.c"
80-
81-
#ifdef __cplusplus
82-
}
83-
#endif
42+
/* This file is the enter point of the library for Arduino */
8443

8544
#endif /* __LWIP_H__ */
8645

system/Middlewares/Third_Party/LwIP/system/arch/cc.h renamed to libraries/LwIP/src/arch/cc.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
3-
* All rights reserved.
4-
*
5-
* Redistribution and use in source and binary forms, with or without modification,
3+
* All rights reserved.
4+
*
5+
* Redistribution and use in source and binary forms, with or without modification,
66
* are permitted provided that the following conditions are met:
77
*
88
* 1. Redistributions of source code must retain the above copyright notice,
@@ -11,21 +11,21 @@
1111
* this list of conditions and the following disclaimer in the documentation
1212
* and/or other materials provided with the distribution.
1313
* 3. The name of the author may not be used to endorse or promote products
14-
* derived from this software without specific prior written permission.
14+
* derived from this software without specific prior written permission.
1515
*
16-
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17-
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19-
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21-
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23-
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24-
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
16+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19+
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21+
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24+
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
2525
* OF SUCH DAMAGE.
2626
*
2727
* This file is part of the lwIP TCP/IP stack.
28-
*
28+
*
2929
* Author: Adam Dunkels <[email protected]>
3030
*
3131
*/
@@ -46,15 +46,15 @@ typedef int sys_prot_t;
4646
#if defined (__ICCARM__)
4747

4848
#define PACK_STRUCT_BEGIN
49-
#define PACK_STRUCT_STRUCT
49+
#define PACK_STRUCT_STRUCT
5050
#define PACK_STRUCT_END
5151
#define PACK_STRUCT_FIELD(x) x
5252
#define PACK_STRUCT_USE_INCLUDES
5353

5454
#elif defined (__CC_ARM)
5555

5656
#define PACK_STRUCT_BEGIN __packed
57-
#define PACK_STRUCT_STRUCT
57+
#define PACK_STRUCT_STRUCT
5858
#define PACK_STRUCT_END
5959
#define PACK_STRUCT_FIELD(x) x
6060

libraries/Native_Ethernet/src/Native_Ethernet.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <inttypes.h>
55
#include "IPAddress.h"
6+
#include <LwIP.h>
67
#include "EthernetClient.h"
78
#include "EthernetServer.h"
89
#include "Dhcp.h"

system/Middlewares/Third_Party/LwIP/doc/FILES

Lines changed: 0 additions & 9 deletions
This file was deleted.

system/Middlewares/Third_Party/LwIP/doc/NO_SYS_SampleCode.c

Lines changed: 0 additions & 117 deletions
This file was deleted.

system/Middlewares/Third_Party/LwIP/doc/contrib.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.

system/Middlewares/Third_Party/LwIP/doc/doxygen/generate.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

system/Middlewares/Third_Party/LwIP/doc/doxygen/generate.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)