1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00

Add stack repainting call to ESP class (#5221)

Allow the unused stack to be reset to the check value at any time in
the application, allowing for delta-stack calculations to be done.

Add ESP.resetFreeContStack() class method for general use.

Add in some dumping in the BearSSL_Validation example to show the
usage for those that care.
This commit is contained in:
Earle F. Philhower, III
2018-10-11 08:55:30 -07:00
committed by GitHub
parent d17ffc2874
commit 1b1b0a28a8
5 changed files with 31 additions and 1 deletions

View File

@ -183,6 +183,11 @@ uint32_t EspClass::getFreeContStack()
return cont_get_free_stack(g_pcont);
}
void EspClass::resetFreeContStack()
{
cont_repaint_stack(g_pcont);
}
uint32_t EspClass::getChipId(void)
{
return system_get_chip_id();