This commit is contained in:
刘可亮
2024-09-03 11:16:08 +08:00
parent cf270df8d6
commit 803cac77d5
2931 changed files with 614364 additions and 31222 deletions

View File

@@ -219,6 +219,11 @@ if LPKG_USING_LWIP
default n
select LPKG_LWIP_TCP
config LPKG_LWIP_USING_HTTP
bool "Using http protocol"
default n
select LPKG_LWIP_TCP
config LPKG_LWIP_USING_DHCPD
bool "Using dhcp server"
default n

View File

@@ -177,7 +177,7 @@ src/apps/http/httpd.c
# 8. MAKEFSDATA HTTP server host utility
lwipmakefsdata_SRCS = Split("""
src/apps/http/makefsdata/makefsdata.c
src/apps/http/makefsdata/fsdata.c
""")
# 9. IPERF server
@@ -262,6 +262,7 @@ contrib/ports/drv/aic/sys/ethernetif.c
lwipexample_SRCS = Split("""
contrib/examples/example_app/test.c
contrib/examples/example_app/netif_startup.c
contrib/examples/httpd/ssi_example/ssi_example.c
""")
# 21. nettools
@@ -332,6 +333,9 @@ if GetDepend(['LPKG_USING_NETTOOLS']):
if GetDepend(['LPKG_LWIP_USING_DHCPD']):
src += lwipdhcpd_SRCS
if GetDepend(['LPKG_LWIP_USING_HTTP']):
src += lwiphttp_SRCS
group = DefineGroup('lwIP', src, depend = ['LPKG_USING_LWIP'], CPPPATH = path)
Return('group')

View File

@@ -86,6 +86,10 @@
#include "netif_startup.h"
#ifdef AIC_USING_IPMANAGER
#include "ipmanager.h"
#endif
#if NO_SYS
/* ... then we need information about the timer intervals: */
#include "lwip/ip4_frag.h"
@@ -252,6 +256,10 @@ test_init(void * arg)
#if !NO_SYS
sys_sem_signal(init_sem);
#endif /* !NO_SYS */
#ifdef LPKG_LWIP_USING_HTTP
httpd_init();
#endif
}
/* This is somewhat different to other ports: we have a main loop here:
@@ -289,6 +297,10 @@ void lwip_test_example_main_loop(void * data)
netif_baremetal_poll();
}
#endif /* NO_SYS */
#ifdef AIC_USING_IPMANAGER
ipmanager_daemon_start();
#endif
}
#if defined(KERNEL_RTTHREAD)
@@ -298,7 +310,7 @@ void lwip_test_example_main_loop(void * data)
int lwip_test_example_init(void)
{
aicos_thread_create("lwip_test_example", 2048,
aicos_thread_create("lwip_test_example", 4096,
20, lwip_test_example_main_loop, NULL);
return 0;

View File

@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (c) 2022, Artinchip Technology Co., Ltd
*

View File

@@ -1,4 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (c) 2022, Artinchip Technology Co., Ltd
*

View File

@@ -665,6 +665,13 @@ MEM_SIZE and MEMP_NUM_XXX will be invalid */
#define LWIP_PBUF_CUSTOM_DATA u32_t second; u32_t nanosecond;
#endif
#ifdef LPKG_LWIP_USING_HTTP
#define LWIP_HTTPD_SSI 1
#define LWIP_HTTPD_CGI 1
#define LWIP_HTTPD_SSI_INCLUDE_TAG 0
#endif
#if 0