1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

lwIP-1.4: use fixed locking functions (#6455)

This commit is contained in:
david gauchard
2019-08-28 16:11:00 +02:00
committed by GitHub
parent 45dbc65dba
commit 37bb628019
2 changed files with 5 additions and 3 deletions

View File

@ -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
@ -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)))