Skip to content

Commit

Permalink
Set IsWorking wariables true in StartupTestThread(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchmela committed Sep 29, 2024
1 parent 609d1ed commit 09d9d18
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sts1CobcSw/CobcSoftware/FlashStartupTestThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class FlashStartupTestThread : public RODOS::StaticThread<stackSize>
DEBUG_PRINT(" failed to read correct flash JEDEC ID");
persistentVariables.template Store<"flashIsWorking">(false);
}
else
{
persistentVariables.template Store<"flashIsWorking">(true);
}
ResumeSpiStartupTestAndSupervisorThread();
SuspendUntil(endOfTime);
}
Expand Down
5 changes: 5 additions & 0 deletions Sts1CobcSw/CobcSoftware/FramEpsStartupTestThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ class FramEpsStartupTestThread : public RODOS::StaticThread<stackSize>
DEBUG_PRINT(" failed to read correct FRAM device ID");
fram::framIsWorking.Store(false);
}
else
{
fram::framIsWorking.Store(true);
}
eps::Initialize();
(void)eps::Read();
persistentVariables.template Store<"epsIsWorking">(true);
ResumeSpiStartupTestAndSupervisorThread();
SuspendUntil(endOfTime);
}
Expand Down
4 changes: 4 additions & 0 deletions Sts1CobcSw/CobcSoftware/RfStartupTestThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class RfStartupTestThread : public RODOS::StaticThread<stackSize>
DEBUG_PRINT(" failed to read correct RF part number");
persistentVariables.template Store<"rfIsWorking">(false);
}
else
{
persistentVariables.template Store<"rfIsWorking">(true);
}
ResumeSpiStartupTestAndSupervisorThread();
SuspendUntil(endOfTime);
}
Expand Down
4 changes: 4 additions & 0 deletions Sts1CobcSw/CobcSoftware/StartupTestStubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ namespace sts1cobcsw
// "rfIsWorking" to true.
auto ResumeFlashStartupTestThread() -> void
{
persistentVariables.template Store<"flashIsWorking">(true);
ResumeSpiStartupTestAndSupervisorThread();
}


auto ResumeFramEpsStartupTestThread() -> void
{
fram::framIsWorking.Store(true);
persistentVariables.template Store<"epsIsWorking">(true);
ResumeSpiStartupTestAndSupervisorThread();
}


auto ResumeRfStartupTestThread() -> void
{
persistentVariables.template Store<"rfIsWorking">(true);
ResumeSpiStartupTestAndSupervisorThread();
}
}

0 comments on commit 09d9d18

Please sign in to comment.