1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

implement EspClass::getFreeContStack method (#5133)

* implement EspClass::getFreeContStack method

* Remove unneeded extern

* Really remove unneeded extern
This commit is contained in:
Develo 2018-09-13 16:02:53 -03:00 committed by GitHub
parent 7e1bdb225d
commit 0e0e34c614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "interrupts.h" #include "interrupts.h"
#include "MD5Builder.h" #include "MD5Builder.h"
#include "umm_malloc/umm_malloc.h" #include "umm_malloc/umm_malloc.h"
#include "cont.h"
extern "C" { extern "C" {
#include "user_interface.h" #include "user_interface.h"
@ -177,6 +178,11 @@ uint16_t EspClass::getMaxFreeBlockSize(void)
return umm_max_block_size(); return umm_max_block_size();
} }
uint32_t EspClass::getFreeContStack()
{
return cont_get_free_stack(g_pcont);
}
uint32_t EspClass::getChipId(void) uint32_t EspClass::getChipId(void)
{ {
return system_get_chip_id(); return system_get_chip_id();

View File

@ -110,6 +110,8 @@ class EspClass {
uint8_t getHeapFragmentation(); // in % uint8_t getHeapFragmentation(); // in %
void getHeapStats(uint32_t* free = nullptr, uint16_t* max = nullptr, uint8_t* frag = nullptr); void getHeapStats(uint32_t* free = nullptr, uint16_t* max = nullptr, uint8_t* frag = nullptr);
uint32_t getFreeContStack();
const char * getSdkVersion(); const char * getSdkVersion();
String getCoreVersion(); String getCoreVersion();
String getFullVersion(); String getFullVersion();