Malloc support for allocating to DRAM and/or IRAM.
This commit is contained in:
parent
9d57176d8e
commit
cc4bd3c58f
18 changed files with 113 additions and 56 deletions
|
|
@ -178,7 +178,9 @@ size_t ooseq_bytes_limit(struct tcp_pcb *pcb)
|
|||
ooseq_blen += p->tot_len;
|
||||
}
|
||||
|
||||
uint32_t malloc_mask = set_malloc_regions(MALLOC_MASK_DRAM);
|
||||
size_t free = xPortGetFreeHeapSize();
|
||||
set_malloc_regions(malloc_mask);
|
||||
ssize_t target = ((ssize_t)free - 8000) + ooseq_blen;
|
||||
|
||||
if (target < 0) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit d74e9ad2f7c9db996fb398cd41bf59ef463ae6fe
|
||||
Subproject commit c1d247296af423741f901bcfd4a8c2739e881565
|
||||
Loading…
Add table
Add a link
Reference in a new issue