Skip to content

Commit

Permalink
lwIP-1.4: use fixed locking functions (esp8266#6455)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored Aug 28, 2019
1 parent 45dbc65 commit 37bb628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 37bb628

Please sign in to comment.