@@ -159,29 +159,26 @@ void init_done() {
159
159
/*
160
160
A bit of explanation for this entry point:
161
161
162
- SYS is the RTOS task/context used by the upperlying system to run its
162
+ SYS is the SDK task/context used by the upperlying system to run its
163
163
administrative tasks (at least WLAN and lwip's receive callbacks and
164
- Ticker). NONOS-SDK is designed to run users 's non-threaded code in
164
+ Ticker). NONOS-SDK is designed to run user 's non-threaded code in
165
165
another specific task/context with its own stack in BSS.
166
166
167
167
Some clever fellows found that the SYS stack was a large and quite unused
168
- piece of ram that we could use for the user stack, and proposed to use it
169
- to store the user stack instead of using the users' main memory, thus
170
- saving around 4KB on ram/heap.
168
+ piece of ram that we could use for the user's stack instead of using user's
169
+ main memory, thus saving around 4KB on ram/heap.
171
170
172
- A problem arose later, which is that this stack is heavily used by the
173
- system for some features. One of these features is WPS. We still don't
171
+ A problem arose later, which is that this stack can heavily be used by
172
+ the SDK for some features. One of these features is WPS. We still don't
174
173
know if other features are using this, or if this memory is going to be
175
- used in future releases.
174
+ used in future SDK releases.
176
175
177
176
WPS beeing flawed by its poor security, or not beeing used by lots of
178
177
users, it has been decided that we are still going to use that memory for
179
- the users's stack and disable the use of WPS, with an option to revert
180
- that back at the user's discretion. This selection can be done by using
181
- the board generator script. This could be also done by setting up a new
182
- option in the IDE's Tools menu.
183
-
184
- The behavior is controlled by the globally NO_EXTRA_4K_HEAP define below.
178
+ user's stack and disable the use of WPS, with an option to revert that
179
+ back at the user's discretion. This selection can be done with the
180
+ global define NO_EXTRA_4K_HEAP. An option has been added to the board
181
+ generator script.
185
182
186
183
References:
187
184
https://github.com/esp8266/Arduino/pull/4553
0 commit comments