/** * @file shim_globals.cpp * @brief Definitions of the shim globals that src/main.cpp normally owns. * * Both test binaries (NetDeck-tests, NetDeck-e2e) link this instead of * main.cpp, so they get the shim environment without the SDL window/event * host loop. The sketch itself is included by each test's own TU (single-TU * inclusion, same trick main.cpp uses). */ #include "Arduino.h" #include "TFT_eSPI.h" #include "Wire.h" #include "SPI.h" namespace emu { uint8_t pinLevels[64]; bool touchDown = false; int touchX = 0, touchY = 0; std::deque keyboard; bool quitRequested = false; } // namespace emu namespace emuGfx { uint32_t fb[320 * 240]; SDL_Texture *tex = nullptr; bool dirty = true; } // namespace emuGfx SerialSim Serial; TwoWire Wire; SPIClass SPI; const FreeFontStub FreeSansBold24pt7b {0}; const FreeFontStub FreeSansBold18pt7b {0}; const FreeFontStub FreeSansOblique12pt7b {0}; const FreeFontStub FreeSans12pt7b {0};