mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
emulation on host: minor updates (#8454)
* emulation on host: minor fixes merge MockDigital.cpp and HostWiring.cpp * emulation: share mockverbose between CI-on-host and emulation * mock: add missing recently overridden method * remove extern variable, use weak function
This commit is contained in:
@ -142,6 +142,15 @@ void EspClass::getHeapStats(uint32_t* hfree, uint16_t* hmax, uint8_t* hfrag) {
|
||||
if (hfrag) *hfrag = 100 - (sqrt(hm) * 100) / hf;
|
||||
}
|
||||
|
||||
void EspClass::getHeapStats(uint32_t* hfree, uint32_t* hmax, uint8_t* hfrag) {
|
||||
uint32_t hf = 10 * 1024;
|
||||
float hm = 1 * 1024;
|
||||
|
||||
if (hfree) *hfree = hf;
|
||||
if (hmax) *hmax = hm;
|
||||
if (hfrag) *hfrag = 100 - (sqrt(hm) * 100) / hf;
|
||||
}
|
||||
|
||||
bool EspClass::flashEraseSector(uint32_t sector)
|
||||
{
|
||||
(void) sector;
|
||||
@ -263,3 +272,8 @@ void EspClass::setExternalHeap()
|
||||
void EspClass::resetHeap()
|
||||
{
|
||||
}
|
||||
|
||||
void EspClass::reset ()
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
Reference in New Issue
Block a user