From 61c864464bd81deea6c80bedda83cb7eb2e28101 Mon Sep 17 00:00:00 2001 From: kamilchmela Date: Fri, 22 Nov 2024 11:20:06 +0000 Subject: [PATCH] Add integration test for SPI supervisor, part 2 --- Tests/IntegrationTests/SpiSupervisor.test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tests/IntegrationTests/SpiSupervisor.test.cpp b/Tests/IntegrationTests/SpiSupervisor.test.cpp index 42e6061c..7bf08dd3 100644 --- a/Tests/IntegrationTests/SpiSupervisor.test.cpp +++ b/Tests/IntegrationTests/SpiSupervisor.test.cpp @@ -38,8 +38,15 @@ class SpiSupervisorTest : public RODOS::StaticThread<> void run() override { + constexpr auto suspendTime = 1 * ms; SuspendFor(1 * s); RODOS::PRINTF("Starting SPI supervisor test\n"); + flashSpi_.SetWrite([](suspendTime) { SuspendFor(suspendTime); }); + framEpsSpi_.SetWrite([](suspendTime) { SuspendFor(suspendTime); }); + rfSpi_.SetWrite([](suspendTime) { SuspendFor(suspendTime); }); + RODOS::PRINTF("SPI supervisor test: happy part works\n"); + constexpr auto suspendTime = 200 * ms; + flashSpi_.SetWrite([](suspendTime) { SuspendFor(suspendTime); }) } } spiSupervisorTest; }