1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Fix VM Address mask (#8440)

* Fix VM Address mask

Adjust VM Address mask to allow up to 8M Byte parts.
Allow for free heap size values over 64K
  ESP.getHeapStats(, uint32_t,)
  uint32_t getMaxFreeBlockSize();

* Fix example

* Update MockEsp.cpp for uint32_t on EspClass::getMaxFreeBlockSize()

* Added comment about heap size limitation and static_assert to verify.
Updated boards.txt to show correct External memory size and Heap size.
This commit is contained in:
M Hightower
2022-01-11 14:35:46 -08:00
committed by GitHub
parent 378fcfcda4
commit 9fcf14f81f
10 changed files with 178 additions and 138 deletions

View File

@ -108,7 +108,7 @@ uint32_t EspClass::getFreeHeap()
return 30000;
}
uint16_t EspClass::getMaxFreeBlockSize()
uint32_t EspClass::getMaxFreeBlockSize()
{
return 20000;
}