New total reboot counter handling #708
@ -1696,7 +1696,7 @@ void CoreController::performRebootWatchdogHandling(bool recreateFile) {
|
|||||||
bool doReboot = false;
|
bool doReboot = false;
|
||||||
xsc::Chip tgtChip = xsc::NO_CHIP;
|
xsc::Chip tgtChip = xsc::NO_CHIP;
|
||||||
xsc::Copy tgtCopy = xsc::NO_COPY;
|
xsc::Copy tgtCopy = xsc::NO_COPY;
|
||||||
rebootWatchdogAlgorithm((rebootFile, doReboot, tgtChip, tgtCopy);
|
rebootWatchdogAlgorithm(rebootWatchdogFile, doReboot, tgtChip, tgtCopy);
|
||||||
if (doReboot) {
|
if (doReboot) {
|
||||||
rebootWatchdogFile.bootFlag = true;
|
rebootWatchdogFile.bootFlag = true;
|
||||||
#if OBSW_VERBOSE_LEVEL >= 1
|
#if OBSW_VERBOSE_LEVEL >= 1
|
||||||
@ -1715,8 +1715,8 @@ void CoreController::performRebootWatchdogHandling(bool recreateFile) {
|
|||||||
rewriteRebootWatchdogFile(rebootWatchdogFile);
|
rewriteRebootWatchdogFile(rebootWatchdogFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreController::rebootWatchdogAlgorithm(RebootFile &rf, bool &needsReboot,
|
void CoreController::rebootWatchdogAlgorithm(RebootWatchdogFile &rf, bool &needsReboot,
|
||||||
xsc::Chip &tgtChip, xsc::Copy &tgtCopy) {
|
xsc::Chip &tgtChip, xsc::Copy &tgtCopy) {
|
||||||
tgtChip = xsc::CHIP_0;
|
tgtChip = xsc::CHIP_0;
|
||||||
tgtCopy = xsc::COPY_0;
|
tgtCopy = xsc::COPY_0;
|
||||||
needsReboot = false;
|
needsReboot = false;
|
||||||
|
@ -377,8 +377,8 @@ class CoreController : public ExtendedControllerBase, public ReceivesParameterMe
|
|||||||
int handleBootCopyProtAtIndex(xsc::Chip targetChip, xsc::Copy targetCopy, bool protect,
|
int handleBootCopyProtAtIndex(xsc::Chip targetChip, xsc::Copy targetCopy, bool protect,
|
||||||
bool& protOperationPerformed, bool selfChip, bool selfCopy,
|
bool& protOperationPerformed, bool selfChip, bool selfCopy,
|
||||||
bool allChips, bool allCopies, uint8_t arrIdx);
|
bool allChips, bool allCopies, uint8_t arrIdx);
|
||||||
void rebootWatchdogAlgorithm(RebootFile& rf, bool& needsReboot, xsc::Chip& tgtChip,
|
void rebootWatchdogAlgorithm(RebootWatchdogFile& rf, bool& needsReboot, xsc::Chip& tgtChip,
|
||||||
xsc::Copy& tgtCopy);
|
xsc::Copy& tgtCopy);
|
||||||
void resetRebootWatchdogCounters(xsc::Chip tgtChip, xsc::Copy tgtCopy);
|
void resetRebootWatchdogCounters(xsc::Chip tgtChip, xsc::Copy tgtCopy);
|
||||||
void setRebootMechanismLock(bool lock, xsc::Chip tgtChip, xsc::Copy tgtCopy);
|
void setRebootMechanismLock(bool lock, xsc::Chip tgtChip, xsc::Copy tgtCopy);
|
||||||
bool parseRebootWatchdogFile(std::string path, RebootWatchdogFile& file);
|
bool parseRebootWatchdogFile(std::string path, RebootWatchdogFile& file);
|
||||||
|
Loading…
Reference in New Issue
Block a user