1
0
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:
david gauchard 2019-06-19 19:01:20 +02:00 committed by GitHub
parent ec7bdfa284
commit 621a341234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -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 \

View File

@ -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*)
{
}

View File

@ -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