Skip to content

Commit 7e8e535

Browse files
author
Me No Dev
committed
revert some changes and fix wl_definitions
1 parent c1711aa commit 7e8e535

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

cores/esp8266/libc_replacements.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@
3939
#include "user_interface.h"
4040
#include "debug.h"
4141

42-
extern void *__real_pvPortMalloc(size_t xWantedSize, const char* file, int line);
43-
extern void *__wrap_pvPortMalloc(size_t xWantedSize, const char* file, int line){
44-
return __real_pvPortMalloc(((xWantedSize + 3) & ~((size_t)0x3)), file, line);
45-
}
46-
47-
extern void *__real_pvPortRealloc(void* ptr, size_t xWantedSize, const char* file, int line);
48-
extern void *__wrap_pvPortRealloc(void* ptr, size_t xWantedSize, const char* file, int line){
49-
return __real_pvPortRealloc(ptr, ((xWantedSize + 3) & ~((size_t)0x3)), file, line);
50-
}
51-
5242
void* ICACHE_RAM_ATTR malloc(size_t size) {
5343
size = ((size + 3) & ~((size_t)0x3));
5444
return os_malloc(size);

libraries/ESP8266WiFi/src/include/wl_definitions.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,22 @@ enum wl_enc_type { /* Values map to 802.11 encryption suites... */
6868
ENC_TYPE_AUTO = 8
6969
};
7070

71+
#ifndef __LWIP_TCP_H__
72+
#ifndef LWIP_INTERNAL
73+
enum wl_tcp_state {
74+
CLOSED = 0,
75+
LISTEN = 1,
76+
SYN_SENT = 2,
77+
SYN_RCVD = 3,
78+
ESTABLISHED = 4,
79+
FIN_WAIT_1 = 5,
80+
FIN_WAIT_2 = 6,
81+
CLOSE_WAIT = 7,
82+
CLOSING = 8,
83+
LAST_ACK = 9,
84+
TIME_WAIT = 10
85+
};
86+
#endif
87+
#endif
88+
7189
#endif /* WL_DEFINITIONS_H_ */

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ compiler.c.flags=-c {compiler.warning_flags} -Os -g -Wpointer-arith -Wno-implici
2727
compiler.S.cmd=xtensa-lx106-elf-gcc
2828
compiler.S.flags=-c -g -x assembler-with-cpp -MMD -mlongcalls
2929

30-
compiler.c.elf.flags=-g {compiler.warning_flags} -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" "-T{build.flash_ld}" -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,register_chipv6_phy -Wl,-wrap,pvPortMalloc -Wl,-wrap,pvPortRealloc
30+
compiler.c.elf.flags=-g {compiler.warning_flags} -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" "-T{build.flash_ld}" -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,register_chipv6_phy
3131

3232
compiler.c.elf.cmd=xtensa-lx106-elf-gcc
3333
compiler.c.elf.libs=-lm -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lcrypto -lmain -lwps -laxtls -lsmartconfig -lmesh

0 commit comments

Comments
 (0)