mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +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 \
|
||||
ArduinoMainUdp.cpp \
|
||||
ArduinoMainSpiffs.cpp \
|
||||
ArduinoMainLittlefs.cpp \
|
||||
user_interface.cpp \
|
||||
)
|
||||
#(not in tree) ArduinoMainLittlefs.cpp
|
||||
|
||||
MOCK_C_FILES := $(addprefix common/,\
|
||||
md5.c \
|
||||
|
@ -63,3 +63,9 @@ extern "C" void delayMicroseconds(unsigned int 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 ()
|
||||
{
|
||||
mock_stop_spiffs();
|
||||
mock_stop_littlefs();
|
||||
// mock_stop_littlefs();
|
||||
mock_stop_uart();
|
||||
}
|
||||
|
||||
@ -239,7 +239,7 @@ int main (int argc, char* const argv [])
|
||||
name += "-littlefs";
|
||||
name += String(littlefs_kb > 0? littlefs_kb: -littlefs_kb, DEC);
|
||||
name += "KB";
|
||||
mock_start_littlefs(name, littlefs_kb);
|
||||
// mock_start_littlefs(name, littlefs_kb);
|
||||
}
|
||||
|
||||
// setup global global_ipv4_netfmt
|
||||
|
Loading…
x
Reference in New Issue
Block a user