kopia lustrzana https://github.com/raspberrypi/pico-extras
remove lwip library in favor of pico_lwip which is now in the SDK
rodzic
0a221dfb0a
commit
5e594d417d
|
@ -9,7 +9,7 @@ See [pico-playground](https://github.com/raspberrypi/pico-playground) for builda
|
|||
Library|Description
|
||||
---|---
|
||||
[hardware_rosc](src/rp2_common/hardware_rosc)| API for the ring oscillator
|
||||
[lwip](src/rp2_common/lwip)| [LWIP Lightweight IP Library](https://savannah.nongnu.org/projects/lwip/) packed as an INTERFACE library for use with the Pico SDK
|
||||
[lwip](src/rp2_common/lwip)| Deprecated as of SDK 1.5.0; use `pico_lwip` and `pico_lwip_arch` from the SDK instead.
|
||||
[pico_audio](src/common/pico_audio)|Audio output support; this is highly functional, but the API is subject to change
|
||||
[pico_audio_i2s](src/rp2_common/pico_audio_i2s)|Audio output via I2S on 3 GPIOs using PIO. Arbitrary frequency
|
||||
[pico_audio_pwm](src/rp2_common/pico_audio_pwm)|Audio output via (PIO) PWM. Currently a bit limited in frequency support (it was developed on FPGA to do 22050Hz at 48Mhz system clock). It does however support error diffusion dithering and noise shaping with 16x oversampling to give surprisingly good audio quality. This code will be split to provide both a fixed frequencie(s) version and a slightly slower but rather better arbitrary frequency version supporting ever higher carrier frequencies
|
||||
|
|
1
lib/lwip
1
lib/lwip
|
@ -1 +0,0 @@
|
|||
Subproject commit c385f31076b27efb8ee37f00cb5568783a58f299
|
|
@ -1,6 +1,5 @@
|
|||
# This CMakeLists.txt intended to be included from other projectgs
|
||||
pico_add_subdirectory(hardware_rosc)
|
||||
pico_add_subdirectory(lwip)
|
||||
pico_add_subdirectory(pico_sleep)
|
||||
pico_add_subdirectory(pico_audio_i2s)
|
||||
pico_add_subdirectory(pico_audio_pwm)
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
set(LWIP_TEST_PATH "src/core/tcp.c")
|
||||
if (NOT LWIP_PATH)
|
||||
set(LWIP_PATH ${PICO_EXTRAS_PATH}/lib/lwip)
|
||||
if (NOT EXISTS ${LWIP_PATH}/${LWIP_TEST_PATH})
|
||||
message(WARNING "lwIP submodule has not been initialized; TCP/IP support will be unavailable
|
||||
hint: try 'git submodule update --init'.")
|
||||
endif()
|
||||
elseif (NOT EXISTS ${LWIP_PATH}/${LWIP_TEST_PATH})
|
||||
message(WARNING "LWIP_PATH specified but content not present.")
|
||||
endif()
|
||||
|
||||
if (EXISTS ${LWIP_PATH}/${LWIP_TEST_PATH})
|
||||
message("lwIP available at ${LWIP_PATH}/${LWIP_TEST_PATH}; TCP/IP support is available.")
|
||||
|
||||
add_library(lwip INTERFACE)
|
||||
target_sources(lwip INTERFACE
|
||||
${LWIP_PATH}/src/core/altcp.c
|
||||
${LWIP_PATH}/src/core/altcp_alloc.c
|
||||
${LWIP_PATH}/src/core/altcp_tcp.c
|
||||
${LWIP_PATH}/src/core/def.c
|
||||
${LWIP_PATH}/src/core/dns.c
|
||||
${LWIP_PATH}/src/core/inet_chksum.c
|
||||
${LWIP_PATH}/src/core/init.c
|
||||
${LWIP_PATH}/src/core/ip.c
|
||||
${LWIP_PATH}/src/core/mem.c
|
||||
${LWIP_PATH}/src/core/memp.c
|
||||
${LWIP_PATH}/src/core/netif.c
|
||||
${LWIP_PATH}/src/core/pbuf.c
|
||||
${LWIP_PATH}/src/core/raw.c
|
||||
${LWIP_PATH}/src/core/stats.c
|
||||
${LWIP_PATH}/src/core/sys.c
|
||||
${LWIP_PATH}/src/core/tcp.c
|
||||
${LWIP_PATH}/src/core/tcp_in.c
|
||||
${LWIP_PATH}/src/core/tcp_out.c
|
||||
${LWIP_PATH}/src/core/timeouts.c
|
||||
${LWIP_PATH}/src/core/udp.c
|
||||
${LWIP_PATH}/src/core/ipv4/autoip.c
|
||||
${LWIP_PATH}/src/core/ipv4/dhcp.c
|
||||
${LWIP_PATH}/src/core/ipv4/etharp.c
|
||||
${LWIP_PATH}/src/core/ipv4/icmp.c
|
||||
${LWIP_PATH}/src/core/ipv4/igmp.c
|
||||
${LWIP_PATH}/src/core/ipv4/ip4.c
|
||||
${LWIP_PATH}/src/core/ipv4/ip4_addr.c
|
||||
${LWIP_PATH}/src/core/ipv4/ip4_frag.c
|
||||
${LWIP_PATH}/src/netif/ethernet.c
|
||||
${LWIP_PATH}/src/netif/slipif.c
|
||||
${LWIP_PATH}/src/apps/http/httpd.c
|
||||
${LWIP_PATH}/src/apps/http/fs.c
|
||||
|
||||
${CMAKE_CURRENT_LIST_DIR}/lwip_arch.c
|
||||
)
|
||||
|
||||
target_include_directories(lwip INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}/include
|
||||
${LWIP_PATH}/src/include
|
||||
${LWIP_PATH}/src/include/ipv4
|
||||
${LWIP_PATH}/src/include/lwip/apps
|
||||
)
|
||||
endif()
|
|
@ -1 +0,0 @@
|
|||
This directory contains files required to get lwip working on the Pico platform without needing to fork lwIP
|
|
@ -1,75 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
||||
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
||||
* OF SUCH DAMAGE.
|
||||
*
|
||||
* This file is part of the lwIP TCP/IP stack.
|
||||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
*/
|
||||
#ifndef __CC_H__
|
||||
#define __CC_H__
|
||||
|
||||
//#include "cpu.h"
|
||||
|
||||
typedef int sys_prot_t;
|
||||
|
||||
|
||||
|
||||
/* define compiler specific symbols */
|
||||
#if defined (__ICCARM__)
|
||||
|
||||
#define PACK_STRUCT_BEGIN
|
||||
#define PACK_STRUCT_STRUCT
|
||||
#define PACK_STRUCT_END
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
#define PACK_STRUCT_USE_INCLUDES
|
||||
|
||||
#elif defined (__CC_ARM)
|
||||
|
||||
#define PACK_STRUCT_BEGIN __packed
|
||||
#define PACK_STRUCT_STRUCT
|
||||
#define PACK_STRUCT_END
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
|
||||
#elif defined (__GNUC__)
|
||||
|
||||
#define PACK_STRUCT_BEGIN
|
||||
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
|
||||
#define PACK_STRUCT_END
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
|
||||
#elif defined (__TASKING__)
|
||||
|
||||
#define PACK_STRUCT_BEGIN
|
||||
#define PACK_STRUCT_STRUCT
|
||||
#define PACK_STRUCT_END
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
|
||||
#endif
|
||||
|
||||
#define LWIP_PLATFORM_ASSERT(x) do { if(!(x)) while(1); } while(0)
|
||||
|
||||
#endif /* __CC_H__ */
|
|
@ -1,22 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include "lwip/init.h"
|
||||
#include "pico/stdlib.h"
|
||||
|
||||
/* lwip has provision for using a mutex, when applicable */
|
||||
sys_prot_t sys_arch_protect(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sys_arch_unprotect(sys_prot_t pval) {
|
||||
(void) pval;
|
||||
}
|
||||
|
||||
/* lwip needs a millisecond time source, and the TinyUSB board support code has one available */
|
||||
uint32_t sys_now(void) {
|
||||
return to_ms_since_boot(get_absolute_time());
|
||||
}
|
Ładowanie…
Reference in New Issue