Skip to content

Commit 429f40d

Browse files
committed
sdk: update to 2.2.0
- update libraries and header files - remove libmesh - update PHY init data
1 parent f9ac524 commit 429f40d

17 files changed

+268
-178
lines changed

Diff for: cores/esp8266/core_esp8266_phy.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
static const uint8_t ICACHE_FLASH_ATTR phy_init_data[128] =
3232
{
3333
[0] = 5, // Reserved, do not change
34-
[1] = 0, // Reserved, do not change
34+
[1] = 8, // Reserved, do not change
3535
[2] = 4, // Reserved, do not change
3636
[3] = 2, // Reserved, do not change
3737
[4] = 5, // Reserved, do not change
@@ -68,12 +68,12 @@ static const uint8_t ICACHE_FLASH_ATTR phy_init_data[128] =
6868
[32] = 0xf8, // Reserved, do not change
6969
[33] = 0xf8, // Reserved, do not change
7070

71-
[34] = 82, // target_power_qdb_0, 82 means target power is 82/4=20.5dbm
72-
[35] = 78, // target_power_qdb_1, 78 means target power is 78/4=19.5dbm
73-
[36] = 74, // target_power_qdb_2, 74 means target power is 74/4=18.5dbm
74-
[37] = 68, // target_power_qdb_3, 68 means target power is 68/4=17dbm
75-
[38] = 64, // target_power_qdb_4, 64 means target power is 64/4=16dbm
76-
[39] = 56, // target_power_qdb_5, 56 means target power is 56/4=14dbm
71+
[34] = 78, // target_power_qdb_0, target power is 78/4=19.5dbm
72+
[35] = 74, // target_power_qdb_1, target power is 74/4=18.5dbm
73+
[36] = 70, // target_power_qdb_2, target power is 70/4=17.5dbm
74+
[37] = 64, // target_power_qdb_3, target power is 64/4=16dbm
75+
[38] = 60, // target_power_qdb_4, target power is 60/4=15dbm
76+
[39] = 56, // target_power_qdb_5, target power is 56/4=14dbm
7777

7878
[40] = 0, // target_power_index_mcs0
7979
[41] = 0, // target_power_index_mcs1

Diff for: platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ compiler.S.flags=-c -g -x assembler-with-cpp -MMD -mlongcalls
3838
compiler.c.elf.flags=-g {compiler.warning_flags} -Os -nostdlib -Wl,--no-check-sections -u call_user_start {build.float} -Wl,-static "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" "-L{compiler.libc.path}/lib" "-T{build.flash_ld}" -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read
3939

4040
compiler.c.elf.cmd=xtensa-lx106-elf-gcc
41-
compiler.c.elf.libs=-lhal -lphy -lpp -lnet80211 {build.lwip_lib} -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lmesh -lwpa2 -lstdc++ -lm -lc -lgcc
41+
compiler.c.elf.libs=-lhal -lphy -lpp -lnet80211 {build.lwip_lib} -lwpa -lcrypto -lmain -lwps -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc
4242

4343
compiler.cpp.cmd=xtensa-lx106-elf-g++
4444
compiler.cpp.flags=-c {compiler.warning_flags} -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections

Diff for: tools/platformio-build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
join(FRAMEWORK_DIR, "tools", "sdk", "libc", "xtensa-lx106-elf", "lib")
5454
],
5555
LIBS=[
56-
"mesh", "wpa2", "smartconfig", "espnow", "pp", "main", "wpa", "lwip_gcc",
56+
"wpa2", "smartconfig", "espnow", "pp", "main", "wpa", "lwip_gcc",
5757
"net80211", "wps", "crypto", "phy", "hal", "axtls", "gcc",
5858
"m", "c", "stdc++"
5959
]

Diff for: tools/sdk/include/espconn.h

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ enum espconn_option{
127127
ESPCONN_NODELAY = 0x02,
128128
ESPCONN_COPY = 0x04,
129129
ESPCONN_KEEPALIVE = 0x08,
130+
ESPCONN_MANUALRECV = 0x10,
130131
ESPCONN_END
131132
};
132133

0 commit comments

Comments
 (0)