mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
host emulation: improve udp, persistent spiffs (#5605)
This commit is contained in:
17
tests/host/common/ArduinoMainSpiffs.cpp
Normal file
17
tests/host/common/ArduinoMainSpiffs.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
#include "spiffs_mock.h"
|
||||
|
||||
SpiffsMock* spiffs_mock = nullptr;
|
||||
|
||||
void mock_start_spiffs (const String& fname, size_t size_kb, size_t block_kb, size_t page_b)
|
||||
{
|
||||
spiffs_mock = new SpiffsMock(size_kb * 1024, block_kb * 1024, page_b, fname);
|
||||
}
|
||||
|
||||
void mock_stop_spiffs ()
|
||||
{
|
||||
if (spiffs_mock)
|
||||
delete spiffs_mock;
|
||||
spiffs_mock = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user