diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index f049dfbaf6..0db93295b6 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -607,17 +607,3 @@ void doScheduleStopEngine(DECLARE_ENGINE_PARAMETER_SIGNATURE) { //backupRamFlush(); #endif // EFI_PROD_CODE } - -void action_s::execute() { - efiAssertVoid(CUSTOM_ERR_ASSERT, callback != NULL, "callback==null1"); - callback(param); -} - -schfunc_t action_s::getCallback() const { - return callback; -} - -void * action_s::getArgument() const { - return param; -} - diff --git a/firmware/controllers/system/system.mk b/firmware/controllers/system/system.mk index ffbd13f56d..4ed8ac0be2 100644 --- a/firmware/controllers/system/system.mk +++ b/firmware/controllers/system/system.mk @@ -5,5 +5,4 @@ SYSTEMSRC_CPP = \ $(PROJECT_DIR)/controllers/system/efi_gpio.cpp \ $(PROJECT_DIR)/controllers/system/periodic_task.cpp \ $(PROJECT_DIR)/controllers/system/dc_motor.cpp \ - - + $(PROJECT_DIR)/controllers/system/timer/scheduler.cpp \ diff --git a/firmware/controllers/system/timer/scheduler.cpp b/firmware/controllers/system/timer/scheduler.cpp new file mode 100644 index 0000000000..491ce498fc --- /dev/null +++ b/firmware/controllers/system/timer/scheduler.cpp @@ -0,0 +1,19 @@ +/** + * @file scheduler.h + * + * @date October 1, 2020 + */ +#include "scheduler.h" + +void action_s::execute() { + efiAssertVoid(CUSTOM_ERR_ASSERT, callback != NULL, "callback==null1"); + callback(param); +} + +schfunc_t action_s::getCallback() const { + return callback; +} + +void * action_s::getArgument() const { + return param; +}