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

Revert to nonos-sdk 2.2.1, new sdk-switching option in IDE menu for generic board only (#5763)

This commit allows switching SDK firmware:

nonos-sdk-pre-v3 shipped with release 2.5.0 has issues:

    * Some boards show erratic behavior (radio connection is quickly lost), with an unknown cause.
      These boards work well with previous nonos-sdk-2.2.1 firmware (#5736)

    * Overall performances seem to have decreased (#5513)

This PR restores sdk2.2.1 (as in core-2.4.2).

SDK-pre-3.0 - which has brought long awaited fixes (WiFi sleep modes) - is still available through a menu option available only with generic board.

BREAKING

    * new define `-DNONOSDK221=1` or `-DNONOSDK3V0=1`

    * for external build systems: new library directory: `tools/sdk/lib/<version>/lib`

    * PIO: variable `PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3` is needed for sdk-pre-v3.


Fix #5736
This commit is contained in:
david gauchard
2019-02-19 13:10:49 +01:00
committed by GitHub
parent 9790e1cb7c
commit 7745e99046
35 changed files with 74 additions and 191 deletions

View File

@ -253,7 +253,9 @@ struct station_config {
// with both ssid[] and bssid[] matched. Please check about this.
uint8 bssid[6];
wifi_fast_scan_threshold_t threshold;
#ifndef NONOSDK221
bool open_and_wep_mode_disable; // Can connect to open/wep router by default.
#endif
};
bool wifi_station_get_config(struct station_config *config);
@ -432,6 +434,8 @@ typedef enum {
MODEM_SLEEP_T
} sleep_type_t;
#ifndef NONOSDK221
typedef enum {
MIN_SLEEP_T,
MAX_SLEEP_T
@ -443,6 +447,8 @@ sleep_level_t wifi_get_sleep_level(void);
bool wifi_set_listen_interval(uint8 interval);
uint8 wifi_get_listen_interval(void);
#endif
bool wifi_set_sleep_type(sleep_type_t type);
sleep_type_t wifi_get_sleep_type(void);