First set of changes for from-source esp-lwip
This commit is contained in:
parent
2449914df1
commit
e4bc8fab7a
6 changed files with 91 additions and 7 deletions
|
@ -1 +0,0 @@
|
|||
#pragma pack(push,1)
|
|
@ -59,7 +59,7 @@ typedef uint32_t u32_t;
|
|||
typedef int32_t s32_t;
|
||||
|
||||
typedef size_t mem_ptr_t;
|
||||
typedef u32_t sys_prot_t;
|
||||
typedef int sys_prot_t;
|
||||
|
||||
/* Define (sn)printf formatters for these lwIP types */
|
||||
#define X8_F "02x"
|
||||
|
@ -84,4 +84,9 @@ typedef u32_t sys_prot_t;
|
|||
printf("Assertion \"%s\" failed at line %d in %s\n", message, __LINE__, __FILE__); \
|
||||
handler;} } while(0)
|
||||
|
||||
#define LWIP_PLATFORM_BYTESWAP 1
|
||||
|
||||
#define LWIP_PLATFORM_HTONS(_n) ((u16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))
|
||||
#define LWIP_PLATFORM_HTONL(_n) ((u32_t)( (((_n) & 0xff) << 24) | (((_n) & 0xff00) << 8) | (((_n) >> 8) & 0xff00) | (((_n) >> 24) & 0xff) ))
|
||||
|
||||
#endif /* __ARCH_CC_H__ */
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
#ifndef __LWIPOPTS_H__
|
||||
#define __LWIPOPTS_H__
|
||||
|
||||
#define LWIP_ESP 1
|
||||
#define ESP_RTOS 1
|
||||
#define PBUF_RSV_FOR_WLAN 1
|
||||
#define EBUF_LWIP 1
|
||||
#define ESP_TIMEWAIT_THRESHOLD 10000
|
||||
|
||||
/*
|
||||
-----------------------------------------------
|
||||
---------- Platform specific locking ----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue