Allocate some memories in SPIRAM first.

Try to allocate some WiFi and LWIP memories in SPIRAM first. If
    failed, try to allocate in internal RAM then.
This commit is contained in:
XiaXiaotian
2017-09-30 15:28:41 +08:00
parent 73462c052e
commit 5df39cd4b6
14 changed files with 245 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ static void dbg_lwip_tcp_pcb_cnt_show(struct tcp_pcb *pcb)
char *p;
int i;
buf = malloc(512);
buf = mem_malloc(512);
if (!buf) {
return;
}