Skip to content

Commit

Permalink
Changes needed for autovalidation (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljahn committed Jan 13, 2025
1 parent eedcaf4 commit 111372c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "components/datetime/DateTimeController.h"
#include "components/heartrate/HeartRateController.h"
#include "components/fs/FS.h"
#include "components/firmwarevalidator/FirmwareValidator.h"
#include "drivers/Spi.h"
#include "drivers/SpiMaster.h"
#include "drivers/SpiNorFlash.h"
Expand Down Expand Up @@ -352,6 +353,7 @@ Pinetime::Applications::HeartRateTask heartRateApp(heartRateSensor, heartRateCon

Pinetime::Controllers::FS fs {spiNorFlash};
Pinetime::Controllers::Settings settingsController {fs};
Pinetime::Controllers::FirmwareValidator validator;
Pinetime::Controllers::MotorController motorController {};

Pinetime::Controllers::DateTime dateTimeController {settingsController};
Expand Down Expand Up @@ -380,6 +382,7 @@ Pinetime::Applications::DisplayApp displayApp(lcd,
notificationManager,
heartRateController,
settingsController,
validator,
motorController,
motionController,
#if defined(INFINITIME_TIMERCONTROLLER)
Expand Down Expand Up @@ -408,6 +411,7 @@ Pinetime::System::SystemTask systemTask(spi,
motionController,
motionSensor,
settingsController,
validator,
heartRateController,
displayApp,
heartRateApp,
Expand Down
2 changes: 2 additions & 0 deletions sim/components/firmwarevalidator/FirmwareValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ void FirmwareValidator::Validate() {
void FirmwareValidator::Reset() {
// NVIC_SystemReset();
}

void FirmwareValidator::AutoValidate() {}
1 change: 1 addition & 0 deletions sim/components/firmwarevalidator/FirmwareValidator.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace Pinetime {
class FirmwareValidator {
public:
void Validate();
void AutoValidate();
bool IsValidated() const;

void Reset();
Expand Down

0 comments on commit 111372c

Please sign in to comment.