mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
emulation: add fake cont_yield (#6210)
* emulation: add fake cont_yield (temporarily disable littleFS mock due to missing file) * fix makefile
This commit is contained in:
parent
ec7bdfa284
commit
621a341234
@ -106,9 +106,9 @@ MOCK_CPP_FILES_EMU := $(MOCK_CPP_FILES_COMMON) $(addprefix common/,\
|
|||||||
ArduinoMain.cpp \
|
ArduinoMain.cpp \
|
||||||
ArduinoMainUdp.cpp \
|
ArduinoMainUdp.cpp \
|
||||||
ArduinoMainSpiffs.cpp \
|
ArduinoMainSpiffs.cpp \
|
||||||
ArduinoMainLittlefs.cpp \
|
|
||||||
user_interface.cpp \
|
user_interface.cpp \
|
||||||
)
|
)
|
||||||
|
#(not in tree) ArduinoMainLittlefs.cpp
|
||||||
|
|
||||||
MOCK_C_FILES := $(addprefix common/,\
|
MOCK_C_FILES := $(addprefix common/,\
|
||||||
md5.c \
|
md5.c \
|
||||||
|
@ -63,3 +63,9 @@ extern "C" void delayMicroseconds(unsigned int us)
|
|||||||
{
|
{
|
||||||
usleep(us);
|
usleep(us);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "cont.h"
|
||||||
|
cont_t* g_pcont = NULL;
|
||||||
|
extern "C" void cont_yield(cont_t*)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -152,7 +152,7 @@ static struct option options[] =
|
|||||||
void cleanup ()
|
void cleanup ()
|
||||||
{
|
{
|
||||||
mock_stop_spiffs();
|
mock_stop_spiffs();
|
||||||
mock_stop_littlefs();
|
// mock_stop_littlefs();
|
||||||
mock_stop_uart();
|
mock_stop_uart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ int main (int argc, char* const argv [])
|
|||||||
name += "-littlefs";
|
name += "-littlefs";
|
||||||
name += String(littlefs_kb > 0? littlefs_kb: -littlefs_kb, DEC);
|
name += String(littlefs_kb > 0? littlefs_kb: -littlefs_kb, DEC);
|
||||||
name += "KB";
|
name += "KB";
|
||||||
mock_start_littlefs(name, littlefs_kb);
|
// mock_start_littlefs(name, littlefs_kb);
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup global global_ipv4_netfmt
|
// setup global global_ipv4_netfmt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user