Skip to content

update firmware to espressif branch nonos-sdk 2.2.x (19.03.13) #5873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ generic.menu.led.14=14
generic.menu.led.14.build.led=-DLED_BUILTIN=14
generic.menu.led.15=15
generic.menu.led.15.build.led=-DLED_BUILTIN=15
generic.menu.sdk.nonosdk221=nonos-sdk 2.2.1
generic.menu.sdk.nonosdk221=nonos-sdk 2.2.1 (legacy)
generic.menu.sdk.nonosdk221.build.sdk=NONOSDK221
generic.menu.sdk.nonosdk3v0=nonos-sdk pre-3
generic.menu.sdk.nonosdk222=nonos-sdk 2.2.2-190313 (testing)
generic.menu.sdk.nonosdk222.build.sdk=NONOSDK22x
generic.menu.sdk.nonosdk3v0=nonos-sdk pre-3 (known issues)
generic.menu.sdk.nonosdk3v0.build.sdk=NONOSDK3V0
generic.menu.ip.lm2f=v2 Lower Memory
generic.menu.ip.lm2f.build.lwip_include=lwip2/include
Expand Down
10 changes: 5 additions & 5 deletions libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ int32_t ESP8266WiFiGenericClass::channel(void) {
* @param type sleep_type_t
* @return bool
*/
#ifdef NONOSDK221
#ifndef NONOSDK3V0
bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenInterval) {
(void)type;
(void)listenInterval;
return false;
}
#else // !defined(NONOSDK221)
#else // defined(NONOSDK3V0)
bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenInterval) {

/**
Expand Down Expand Up @@ -322,7 +322,7 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
}
return ret;
}
#endif // !defined(NONOSDK221)
#endif // defined(NONOSDK3V0)

/**
* get Sleep mode
Expand Down Expand Up @@ -507,7 +507,7 @@ bool ESP8266WiFiGenericClass::forceSleepWake() {
* @return interval
*/
uint8_t ESP8266WiFiGenericClass::getListenInterval () {
#ifdef NONOSDK221
#ifndef NONOSDK3V0
return 0;
#else
return wifi_get_listen_interval();
Expand All @@ -519,7 +519,7 @@ uint8_t ESP8266WiFiGenericClass::getListenInterval () {
* @return true if max level
*/
bool ESP8266WiFiGenericClass::isSleepLevelMax () {
#ifdef NONOSDK221
#ifndef NONOSDK3V0
return false;
#else
return wifi_get_sleep_level() == MAX_SLEEP_T;
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
}

conf.threshold.rssi = -127;
#ifndef NONOSDK221
#ifdef NONOSDK3V0
conf.open_and_wep_mode_disable = !(_useInsecureWEP || *conf.password == 0);
#endif

Expand Down
2 changes: 1 addition & 1 deletion package/package_esp8266com_index.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@
]
}
]
}
}
6 changes: 3 additions & 3 deletions tests/host/common/user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool wifi_station_get_config (struct station_config *config)
config->bssid[i] = i;
config->threshold.rssi = 1;
config->threshold.authmode = AUTH_WPA_PSK;
#ifndef NONOSDK221
#ifdef NONOSDK3V0
config->open_and_wep_mode_disable = true;
#endif
return true;
Expand Down Expand Up @@ -192,7 +192,7 @@ uint8 wifi_get_opmode_default (void)
return STATION_MODE;
}

#ifndef NONOSDK221
#ifdef NONOSDK3V0

sleep_level_t wifi_get_sleep_level (void)
{
Expand Down Expand Up @@ -248,7 +248,7 @@ bool wifi_set_phy_mode (phy_mode_t mode)
return true;
}

#ifndef NONOSDK221
#ifdef NONOSDK3V0

bool wifi_set_sleep_level (sleep_level_t level)
{
Expand Down
6 changes: 4 additions & 2 deletions tools/boards.txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,11 @@ def led (default,max):

def sdk ():
return { 'sdk': collections.OrderedDict([
('.menu.sdk.nonosdk221', 'nonos-sdk 2.2.1'),
('.menu.sdk.nonosdk221', 'nonos-sdk 2.2.1 (legacy)'),
('.menu.sdk.nonosdk221.build.sdk', 'NONOSDK221'),
('.menu.sdk.nonosdk3v0', 'nonos-sdk pre-3'),
('.menu.sdk.nonosdk222', 'nonos-sdk 2.2.2-190313 (testing)'),
('.menu.sdk.nonosdk222.build.sdk', 'NONOSDK22x'),
('.menu.sdk.nonosdk3v0', 'nonos-sdk pre-3 (known issues)'),
('.menu.sdk.nonosdk3v0.build.sdk', 'NONOSDK3V0'),
])
}
Expand Down
7 changes: 6 additions & 1 deletion tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ def scons_patched_match_splitext(path, suffixes=None):
CPPDEFINES=[("NONOSDK3V0", 1)],
LIBPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lib", "NONOSDK3V0"),]
)
# PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK221 (default)
elif "PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x" in flatten_cppdefines:
env.Append(
CPPDEFINES=[("NONOSDK22x", 1)],
LIBPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lib", "NONOSDK22x"),]
)
# PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x (default)
else:
env.Append(
CPPDEFINES=[("NONOSDK221", 1)],
Expand Down
4 changes: 2 additions & 2 deletions tools/sdk/include/user_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ struct station_config {
// with both ssid[] and bssid[] matched. Please check about this.
uint8 bssid[6];
wifi_fast_scan_threshold_t threshold;
#ifndef NONOSDK221
#ifdef NONOSDK3V0
bool open_and_wep_mode_disable; // Can connect to open/wep router by default.
#endif
};
Expand Down Expand Up @@ -434,7 +434,7 @@ typedef enum {
MODEM_SLEEP_T
} sleep_type_t;

#ifndef NONOSDK221
#ifdef NONOSDK3V0

typedef enum {
MIN_SLEEP_T,
Expand Down
Binary file added tools/sdk/lib/NONOSDK22x/libairkiss.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libcrypto.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libdriver.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libespnow.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libmain.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libnet80211.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libphy.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libpp.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libsmartconfig.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libwpa.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libwpa2.a
Binary file not shown.
Binary file added tools/sdk/lib/NONOSDK22x/libwps.a
Binary file not shown.
1 change: 1 addition & 0 deletions tools/sdk/lib/NONOSDK22x/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2.2.1-61-gc7b580c (shows as SDK:2.2.2-dev(c0eb301) in debug mode)