Skip to content

lwIP-1.4: use fixed locking functions #6455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified tools/sdk/lib/liblwip_gcc.a
Binary file not shown.
8 changes: 5 additions & 3 deletions tools/sdk/lwip/include/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "osapi.h"
#define EFAULT 14
#include <sys/pgmspace.h>
#include <../../../cores/esp8266/core_esp8266_features.h>

//#define LWIP_PROVIDE_ERRNO

Expand Down Expand Up @@ -84,9 +85,10 @@ typedef unsigned long mem_ptr_t;
#define LWIP_PLATFORM_ASSERT(x)
#endif

#define SYS_ARCH_DECL_PROTECT(x)
#define SYS_ARCH_PROTECT(x)
#define SYS_ARCH_UNPROTECT(x)
typedef uint32_t sys_prot_t;
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
#define SYS_ARCH_PROTECT(lev) lev = xt_rsil(15)
#define SYS_ARCH_UNPROTECT(lev) xt_wsr_ps(lev)

#define LWIP_PLATFORM_BYTESWAP 1
#define LWIP_PLATFORM_HTONS(_n) ((u16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))
Expand Down