Skip to content

Commit

Permalink
Add integration test for SPI supervisor, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchmela committed Nov 22, 2024
1 parent 57e60a6 commit 61c8644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/IntegrationTests/SpiSupervisor.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 61c8644

Please sign in to comment.