We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87991ab commit 3fddf2aCopy full SHA for 3fddf2a
cores/esp8266/core_esp8266_main.cpp
@@ -156,11 +156,21 @@ void init_done() {
156
* Peripherals (except for SPI0 and UART0) are not initialized.
157
* This function does not return.
158
*/
159
+#define EXTRA_4K_HEAP 1
160
+
161
+#if !EXTRA_4K_HEAP
162
+cont_t g_cont __attribute__ ((aligned (16)));
163
+#endif
164
165
extern "C" void ICACHE_RAM_ATTR app_entry(void)
166
{
167
/* Allocate continuation context on this stack, and save pointer to it. */
168
+#if EXTRA_4K_HEAP
169
cont_t s_cont __attribute__((aligned(16)));
170
g_pcont = &s_cont;
171
+#else
172
+ g_pcont = &g_cont;
173
174
/* Call the entry point of the SDK code. */
175
call_user_start();
176
}
0 commit comments