Skip to content

Commit 235b02e

Browse files
Merge branch 'master' into wifi_mesh_update_2.2
2 parents d20177a + 19d09ea commit 235b02e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+416
-228
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Please provide as much context as possible, as well as the information requested
114114

115115
### Contributing
116116

117-
For minor fixes of code and documentation, please go ahead and submit a pull request.
117+
For minor fixes of code and documentation, please go ahead and submit a pull request. A gentle introduction to the process can be found [here](https://www.freecodecamp.org/news/a-simple-git-guide-and-cheat-sheet-for-open-source-contributors/).
118118

119119
Check out the list of issues that are easy to fix — [easy issues pending](https://github.com/esp8266/Arduino/issues?q=is%3Aopen+is%3Aissue+label%3A%22level%3A+easy%22). Working on them is a great way to move the project forward.
120120

boards.txt

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ generic.menu.led.14=14
365365
generic.menu.led.14.build.led=-DLED_BUILTIN=14
366366
generic.menu.led.15=15
367367
generic.menu.led.15.build.led=-DLED_BUILTIN=15
368+
generic.menu.led.16=16
369+
generic.menu.led.16.build.led=-DLED_BUILTIN=16
368370
generic.menu.sdk.nonosdk222_100=nonos-sdk 2.2.1+100 (testing)
369371
generic.menu.sdk.nonosdk222_100.build.sdk=NONOSDK22y
370372
generic.menu.sdk.nonosdk221=nonos-sdk 2.2.1 (legacy)
@@ -466,8 +468,6 @@ generic.menu.wipe.all=All Flash Contents
466468
generic.menu.wipe.all.upload.erase_cmd=erase_flash
467469
generic.menu.baud.115200=115200
468470
generic.menu.baud.115200.upload.speed=115200
469-
generic.menu.baud.9600=9600
470-
generic.menu.baud.9600.upload.speed=9600
471471
generic.menu.baud.57600=57600
472472
generic.menu.baud.57600.upload.speed=57600
473473
generic.menu.baud.230400.linux=230400
@@ -641,6 +641,8 @@ esp8285.menu.led.14=14
641641
esp8285.menu.led.14.build.led=-DLED_BUILTIN=14
642642
esp8285.menu.led.15=15
643643
esp8285.menu.led.15.build.led=-DLED_BUILTIN=15
644+
esp8285.menu.led.16=16
645+
esp8285.menu.led.16.build.led=-DLED_BUILTIN=16
644646
esp8285.menu.ip.lm2f=v2 Lower Memory
645647
esp8285.menu.ip.lm2f.build.lwip_include=lwip2/include
646648
esp8285.menu.ip.lm2f.build.lwip_lib=-llwip2-536-feat
@@ -736,8 +738,6 @@ esp8285.menu.wipe.all=All Flash Contents
736738
esp8285.menu.wipe.all.upload.erase_cmd=erase_flash
737739
esp8285.menu.baud.115200=115200
738740
esp8285.menu.baud.115200.upload.speed=115200
739-
esp8285.menu.baud.9600=9600
740-
esp8285.menu.baud.9600.upload.speed=9600
741741
esp8285.menu.baud.57600=57600
742742
esp8285.menu.baud.57600.upload.speed=57600
743743
esp8285.menu.baud.230400.linux=230400
@@ -932,8 +932,6 @@ espduino.menu.wipe.all=All Flash Contents
932932
espduino.menu.wipe.all.upload.erase_cmd=erase_flash
933933
espduino.menu.baud.115200=115200
934934
espduino.menu.baud.115200.upload.speed=115200
935-
espduino.menu.baud.9600=9600
936-
espduino.menu.baud.9600.upload.speed=9600
937935
espduino.menu.baud.57600=57600
938936
espduino.menu.baud.57600.upload.speed=57600
939937
espduino.menu.baud.230400.linux=230400
@@ -1120,8 +1118,6 @@ huzzah.menu.wipe.all=All Flash Contents
11201118
huzzah.menu.wipe.all.upload.erase_cmd=erase_flash
11211119
huzzah.menu.baud.115200=115200
11221120
huzzah.menu.baud.115200.upload.speed=115200
1123-
huzzah.menu.baud.9600=9600
1124-
huzzah.menu.baud.9600.upload.speed=9600
11251121
huzzah.menu.baud.57600=57600
11261122
huzzah.menu.baud.57600.upload.speed=57600
11271123
huzzah.menu.baud.230400.linux=230400
@@ -1308,8 +1304,6 @@ inventone.menu.wipe.all=All Flash Contents
13081304
inventone.menu.wipe.all.upload.erase_cmd=erase_flash
13091305
inventone.menu.baud.115200=115200
13101306
inventone.menu.baud.115200.upload.speed=115200
1311-
inventone.menu.baud.9600=9600
1312-
inventone.menu.baud.9600.upload.speed=9600
13131307
inventone.menu.baud.57600=57600
13141308
inventone.menu.baud.57600.upload.speed=57600
13151309
inventone.menu.baud.230400.linux=230400
@@ -1499,8 +1493,6 @@ cw01.menu.wipe.all=All Flash Contents
14991493
cw01.menu.wipe.all.upload.erase_cmd=erase_flash
15001494
cw01.menu.baud.115200=115200
15011495
cw01.menu.baud.115200.upload.speed=115200
1502-
cw01.menu.baud.9600=9600
1503-
cw01.menu.baud.9600.upload.speed=9600
15041496
cw01.menu.baud.57600=57600
15051497
cw01.menu.baud.57600.upload.speed=57600
15061498
cw01.menu.baud.230400.linux=230400
@@ -1690,8 +1682,6 @@ espresso_lite_v1.menu.wipe.all=All Flash Contents
16901682
espresso_lite_v1.menu.wipe.all.upload.erase_cmd=erase_flash
16911683
espresso_lite_v1.menu.baud.115200=115200
16921684
espresso_lite_v1.menu.baud.115200.upload.speed=115200
1693-
espresso_lite_v1.menu.baud.9600=9600
1694-
espresso_lite_v1.menu.baud.9600.upload.speed=9600
16951685
espresso_lite_v1.menu.baud.57600=57600
16961686
espresso_lite_v1.menu.baud.57600.upload.speed=57600
16971687
espresso_lite_v1.menu.baud.230400.linux=230400
@@ -1881,8 +1871,6 @@ espresso_lite_v2.menu.wipe.all=All Flash Contents
18811871
espresso_lite_v2.menu.wipe.all.upload.erase_cmd=erase_flash
18821872
espresso_lite_v2.menu.baud.115200=115200
18831873
espresso_lite_v2.menu.baud.115200.upload.speed=115200
1884-
espresso_lite_v2.menu.baud.9600=9600
1885-
espresso_lite_v2.menu.baud.9600.upload.speed=9600
18861874
espresso_lite_v2.menu.baud.57600=57600
18871875
espresso_lite_v2.menu.baud.57600.upload.speed=57600
18881876
espresso_lite_v2.menu.baud.230400.linux=230400
@@ -2072,8 +2060,6 @@ phoenix_v1.menu.wipe.all=All Flash Contents
20722060
phoenix_v1.menu.wipe.all.upload.erase_cmd=erase_flash
20732061
phoenix_v1.menu.baud.115200=115200
20742062
phoenix_v1.menu.baud.115200.upload.speed=115200
2075-
phoenix_v1.menu.baud.9600=9600
2076-
phoenix_v1.menu.baud.9600.upload.speed=9600
20772063
phoenix_v1.menu.baud.57600=57600
20782064
phoenix_v1.menu.baud.57600.upload.speed=57600
20792065
phoenix_v1.menu.baud.230400.linux=230400
@@ -2263,8 +2249,6 @@ phoenix_v2.menu.wipe.all=All Flash Contents
22632249
phoenix_v2.menu.wipe.all.upload.erase_cmd=erase_flash
22642250
phoenix_v2.menu.baud.115200=115200
22652251
phoenix_v2.menu.baud.115200.upload.speed=115200
2266-
phoenix_v2.menu.baud.9600=9600
2267-
phoenix_v2.menu.baud.9600.upload.speed=9600
22682252
phoenix_v2.menu.baud.57600=57600
22692253
phoenix_v2.menu.baud.57600.upload.speed=57600
22702254
phoenix_v2.menu.baud.230400.linux=230400
@@ -2451,8 +2435,6 @@ nodemcu.menu.wipe.all=All Flash Contents
24512435
nodemcu.menu.wipe.all.upload.erase_cmd=erase_flash
24522436
nodemcu.menu.baud.115200=115200
24532437
nodemcu.menu.baud.115200.upload.speed=115200
2454-
nodemcu.menu.baud.9600=9600
2455-
nodemcu.menu.baud.9600.upload.speed=9600
24562438
nodemcu.menu.baud.57600=57600
24572439
nodemcu.menu.baud.57600.upload.speed=57600
24582440
nodemcu.menu.baud.230400.linux=230400
@@ -2639,8 +2621,6 @@ nodemcuv2.menu.wipe.all=All Flash Contents
26392621
nodemcuv2.menu.wipe.all.upload.erase_cmd=erase_flash
26402622
nodemcuv2.menu.baud.115200=115200
26412623
nodemcuv2.menu.baud.115200.upload.speed=115200
2642-
nodemcuv2.menu.baud.9600=9600
2643-
nodemcuv2.menu.baud.9600.upload.speed=9600
26442624
nodemcuv2.menu.baud.57600=57600
26452625
nodemcuv2.menu.baud.57600.upload.speed=57600
26462626
nodemcuv2.menu.baud.230400.linux=230400
@@ -2847,8 +2827,6 @@ modwifi.menu.wipe.all=All Flash Contents
28472827
modwifi.menu.wipe.all.upload.erase_cmd=erase_flash
28482828
modwifi.menu.baud.115200=115200
28492829
modwifi.menu.baud.115200.upload.speed=115200
2850-
modwifi.menu.baud.9600=9600
2851-
modwifi.menu.baud.9600.upload.speed=9600
28522830
modwifi.menu.baud.57600=57600
28532831
modwifi.menu.baud.57600.upload.speed=57600
28542832
modwifi.menu.baud.230400.linux=230400
@@ -3035,8 +3013,6 @@ thing.menu.wipe.all=All Flash Contents
30353013
thing.menu.wipe.all.upload.erase_cmd=erase_flash
30363014
thing.menu.baud.115200=115200
30373015
thing.menu.baud.115200.upload.speed=115200
3038-
thing.menu.baud.9600=9600
3039-
thing.menu.baud.9600.upload.speed=9600
30403016
thing.menu.baud.57600=57600
30413017
thing.menu.baud.57600.upload.speed=57600
30423018
thing.menu.baud.230400.linux=230400
@@ -3223,8 +3199,6 @@ thingdev.menu.wipe.all=All Flash Contents
32233199
thingdev.menu.wipe.all.upload.erase_cmd=erase_flash
32243200
thingdev.menu.baud.115200=115200
32253201
thingdev.menu.baud.115200.upload.speed=115200
3226-
thingdev.menu.baud.9600=9600
3227-
thingdev.menu.baud.9600.upload.speed=9600
32283202
thingdev.menu.baud.57600=57600
32293203
thingdev.menu.baud.57600.upload.speed=57600
32303204
thingdev.menu.baud.230400.linux=230400
@@ -3411,8 +3385,6 @@ esp210.menu.wipe.all=All Flash Contents
34113385
esp210.menu.wipe.all.upload.erase_cmd=erase_flash
34123386
esp210.menu.baud.57600=57600
34133387
esp210.menu.baud.57600.upload.speed=57600
3414-
esp210.menu.baud.9600=9600
3415-
esp210.menu.baud.9600.upload.speed=9600
34163388
esp210.menu.baud.115200=115200
34173389
esp210.menu.baud.115200.upload.speed=115200
34183390
esp210.menu.baud.230400.linux=230400
@@ -3599,8 +3571,6 @@ d1_mini.menu.wipe.all=All Flash Contents
35993571
d1_mini.menu.wipe.all.upload.erase_cmd=erase_flash
36003572
d1_mini.menu.baud.921600=921600
36013573
d1_mini.menu.baud.921600.upload.speed=921600
3602-
d1_mini.menu.baud.9600=9600
3603-
d1_mini.menu.baud.9600.upload.speed=9600
36043574
d1_mini.menu.baud.57600=57600
36053575
d1_mini.menu.baud.57600.upload.speed=57600
36063576
d1_mini.menu.baud.115200=115200
@@ -3770,8 +3740,6 @@ d1_mini_pro.menu.wipe.all=All Flash Contents
37703740
d1_mini_pro.menu.wipe.all.upload.erase_cmd=erase_flash
37713741
d1_mini_pro.menu.baud.921600=921600
37723742
d1_mini_pro.menu.baud.921600.upload.speed=921600
3773-
d1_mini_pro.menu.baud.9600=9600
3774-
d1_mini_pro.menu.baud.9600.upload.speed=9600
37753743
d1_mini_pro.menu.baud.57600=57600
37763744
d1_mini_pro.menu.baud.57600.upload.speed=57600
37773745
d1_mini_pro.menu.baud.115200=115200
@@ -3998,8 +3966,6 @@ d1_mini_lite.menu.wipe.all=All Flash Contents
39983966
d1_mini_lite.menu.wipe.all.upload.erase_cmd=erase_flash
39993967
d1_mini_lite.menu.baud.921600=921600
40003968
d1_mini_lite.menu.baud.921600.upload.speed=921600
4001-
d1_mini_lite.menu.baud.9600=9600
4002-
d1_mini_lite.menu.baud.9600.upload.speed=9600
40033969
d1_mini_lite.menu.baud.57600=57600
40043970
d1_mini_lite.menu.baud.57600.upload.speed=57600
40053971
d1_mini_lite.menu.baud.115200=115200
@@ -4186,8 +4152,6 @@ d1.menu.wipe.all=All Flash Contents
41864152
d1.menu.wipe.all.upload.erase_cmd=erase_flash
41874153
d1.menu.baud.921600=921600
41884154
d1.menu.baud.921600.upload.speed=921600
4189-
d1.menu.baud.9600=9600
4190-
d1.menu.baud.9600.upload.speed=9600
41914155
d1.menu.baud.57600=57600
41924156
d1.menu.baud.57600.upload.speed=57600
41934157
d1.menu.baud.115200=115200
@@ -4377,8 +4341,6 @@ espino.menu.wipe.all=All Flash Contents
43774341
espino.menu.wipe.all.upload.erase_cmd=erase_flash
43784342
espino.menu.baud.115200=115200
43794343
espino.menu.baud.115200.upload.speed=115200
4380-
espino.menu.baud.9600=9600
4381-
espino.menu.baud.9600.upload.speed=9600
43824344
espino.menu.baud.57600=57600
43834345
espino.menu.baud.57600.upload.speed=57600
43844346
espino.menu.baud.230400.linux=230400
@@ -4565,8 +4527,6 @@ espinotee.menu.wipe.all=All Flash Contents
45654527
espinotee.menu.wipe.all.upload.erase_cmd=erase_flash
45664528
espinotee.menu.baud.115200=115200
45674529
espinotee.menu.baud.115200.upload.speed=115200
4568-
espinotee.menu.baud.9600=9600
4569-
espinotee.menu.baud.9600.upload.speed=9600
45704530
espinotee.menu.baud.57600=57600
45714531
espinotee.menu.baud.57600.upload.speed=57600
45724532
espinotee.menu.baud.230400.linux=230400
@@ -4813,8 +4773,6 @@ wifinfo.menu.wipe.all=All Flash Contents
48134773
wifinfo.menu.wipe.all.upload.erase_cmd=erase_flash
48144774
wifinfo.menu.baud.115200=115200
48154775
wifinfo.menu.baud.115200.upload.speed=115200
4816-
wifinfo.menu.baud.9600=9600
4817-
wifinfo.menu.baud.9600.upload.speed=9600
48184776
wifinfo.menu.baud.57600=57600
48194777
wifinfo.menu.baud.57600.upload.speed=57600
48204778
wifinfo.menu.baud.230400.linux=230400
@@ -5013,8 +4971,6 @@ arduino-esp8266.menu.wipe.all=All Flash Contents
50134971
arduino-esp8266.menu.wipe.all.upload.erase_cmd=erase_flash
50144972
arduino-esp8266.menu.baud.115200=115200
50154973
arduino-esp8266.menu.baud.115200.upload.speed=115200
5016-
arduino-esp8266.menu.baud.9600=9600
5017-
arduino-esp8266.menu.baud.9600.upload.speed=9600
50184974
arduino-esp8266.menu.baud.57600=57600
50194975
arduino-esp8266.menu.baud.57600.upload.speed=57600
50204976
arduino-esp8266.menu.baud.230400.linux=230400
@@ -5202,8 +5158,6 @@ gen4iod.menu.wipe.all=All Flash Contents
52025158
gen4iod.menu.wipe.all.upload.erase_cmd=erase_flash
52035159
gen4iod.menu.baud.115200=115200
52045160
gen4iod.menu.baud.115200.upload.speed=115200
5205-
gen4iod.menu.baud.9600=9600
5206-
gen4iod.menu.baud.9600.upload.speed=9600
52075161
gen4iod.menu.baud.57600=57600
52085162
gen4iod.menu.baud.57600.upload.speed=57600
52095163
gen4iod.menu.baud.230400.linux=230400
@@ -5391,8 +5345,6 @@ oak.menu.wipe.all=All Flash Contents
53915345
oak.menu.wipe.all.upload.erase_cmd=erase_flash
53925346
oak.menu.baud.921600=921600
53935347
oak.menu.baud.921600.upload.speed=921600
5394-
oak.menu.baud.9600=9600
5395-
oak.menu.baud.9600.upload.speed=9600
53965348
oak.menu.baud.57600=57600
53975349
oak.menu.baud.57600.upload.speed=57600
53985350
oak.menu.baud.115200=115200
@@ -5579,8 +5531,6 @@ wifiduino.menu.wipe.all=All Flash Contents
55795531
wifiduino.menu.wipe.all.upload.erase_cmd=erase_flash
55805532
wifiduino.menu.baud.921600=921600
55815533
wifiduino.menu.baud.921600.upload.speed=921600
5582-
wifiduino.menu.baud.9600=9600
5583-
wifiduino.menu.baud.9600.upload.speed=9600
55845534
wifiduino.menu.baud.57600=57600
55855535
wifiduino.menu.baud.57600.upload.speed=57600
55865536
wifiduino.menu.baud.115200=115200
@@ -5877,8 +5827,6 @@ wifi_slot.menu.wipe.all=All Flash Contents
58775827
wifi_slot.menu.wipe.all.upload.erase_cmd=erase_flash
58785828
wifi_slot.menu.baud.115200=115200
58795829
wifi_slot.menu.baud.115200.upload.speed=115200
5880-
wifi_slot.menu.baud.9600=9600
5881-
wifi_slot.menu.baud.9600.upload.speed=9600
58825830
wifi_slot.menu.baud.57600=57600
58835831
wifi_slot.menu.baud.57600.upload.speed=57600
58845832
wifi_slot.menu.baud.230400.linux=230400
@@ -6065,8 +6013,6 @@ wiolink.menu.wipe.all=All Flash Contents
60656013
wiolink.menu.wipe.all.upload.erase_cmd=erase_flash
60666014
wiolink.menu.baud.115200=115200
60676015
wiolink.menu.baud.115200.upload.speed=115200
6068-
wiolink.menu.baud.9600=9600
6069-
wiolink.menu.baud.9600.upload.speed=9600
60706016
wiolink.menu.baud.57600=57600
60716017
wiolink.menu.baud.57600.upload.speed=57600
60726018
wiolink.menu.baud.230400.linux=230400
@@ -6253,8 +6199,6 @@ espectro.menu.wipe.all=All Flash Contents
62536199
espectro.menu.wipe.all.upload.erase_cmd=erase_flash
62546200
espectro.menu.baud.115200=115200
62556201
espectro.menu.baud.115200.upload.speed=115200
6256-
espectro.menu.baud.9600=9600
6257-
espectro.menu.baud.9600.upload.speed=9600
62586202
espectro.menu.baud.57600=57600
62596203
espectro.menu.baud.57600.upload.speed=57600
62606204
espectro.menu.baud.230400.linux=230400

cores/esp8266/AddrList.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ class AddressListIterator
167167
bool operator== (AddressListIterator& o) { return netIf.equal(*o); }
168168
bool operator!= (AddressListIterator& o) { return !netIf.equal(*o); }
169169

170-
AddressListIterator& operator= (const AddressListIterator& o) { netIf = o.netIf; return *this; }
171-
172170
AddressListIterator operator++ (int)
173171
{
174172
AddressListIterator ret = *this;

cores/esp8266/Arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void ets_intr_unlock();
159159
// level 15 will disable ALL interrupts,
160160
// level 0 will enable ALL interrupts,
161161
//
162-
#define xt_rsil(level) (__extension__({uint32_t state; __asm__ __volatile__("rsil %0," __STRINGIFY(level) : "=a" (state)); state;}))
162+
#define xt_rsil(level) (__extension__({uint32_t state; __asm__ __volatile__("rsil %0," __STRINGIFY(level) : "=a" (state) :: "memory"); state;}))
163163
#define xt_wsr_ps(state) __asm__ __volatile__("wsr %0,ps; isync" :: "a" (state) : "memory")
164164

165165
#define interrupts() xt_rsil(0)

cores/esp8266/FS.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ bool FS::gc() {
272272
return _impl->gc();
273273
}
274274

275+
bool FS::check() {
276+
if (!_impl) {
277+
return false;
278+
}
279+
return _impl->check();
280+
}
281+
275282
bool FS::format() {
276283
if (!_impl) {
277284
return false;

cores/esp8266/FS.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ class FS
221221
bool rmdir(const char* path);
222222
bool rmdir(const String& path);
223223

224+
// Low-level FS routines, not needed by most applications
224225
bool gc();
226+
bool check();
225227

226228
friend class ::SDClass; // More of a frenemy, but SD needs internal implementation to get private FAT bits
227229
protected:
@@ -241,6 +243,7 @@ using fs::SeekCur;
241243
using fs::SeekEnd;
242244
using fs::FSInfo;
243245
using fs::FSConfig;
246+
using fs::SPIFFSConfig;
244247
#endif //FS_NO_GLOBALS
245248

246249
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SPIFFS)

cores/esp8266/FSImpl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class FSImpl {
8585
virtual bool mkdir(const char* path) = 0;
8686
virtual bool rmdir(const char* path) = 0;
8787
virtual bool gc() { return true; } // May not be implemented in all file systems.
88+
virtual bool check() { return true; } // May not be implemented in all file systems.
8889
};
8990

9091
} // namespace fs

cores/esp8266/IPAddress.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define IP_SET_TYPE_VAL(x,y) do { (void)0; } while (0)
3737
#define IP_ANY_TYPE (&ip_addr_any)
3838
#define IP4_ADDR_ANY IPADDR_ANY
39-
#define IP4_ADDR_ANY4 IPADDR_ANY
39+
#define IP4_ADDR_ANY4 IP_ADDR_ANY
4040
#define IPADDR4_INIT(x) { x }
4141
#define CONST /* nothing: lwIP-v1 does not use const */
4242
#define ip4_addr_netcmp ip_addr_netcmp
@@ -136,6 +136,7 @@ class IPAddress: public Printable {
136136
// Overloaded copy operators to allow initialisation of IPAddress objects from other types
137137
IPAddress& operator=(const uint8_t *address);
138138
IPAddress& operator=(uint32_t address);
139+
IPAddress& operator=(const IPAddress&) = default;
139140

140141
virtual size_t printTo(Print& p) const;
141142
String toString() const;

0 commit comments

Comments
 (0)