1
0
forked from fsfw/fsfw

implemented fixed timeslot task

This commit is contained in:
2020-06-05 23:18:00 +02:00
parent d74f2c7560
commit 87f64d99cd
5 changed files with 330 additions and 8 deletions

View File

@ -1,3 +1,4 @@
#include <framework/osal/host/FixedTimeslotTask.h>
#include <framework/osal/host/PeriodicTask.h>
#include <framework/tasks/TaskFactory.h>
#include <framework/returnvalues/HasReturnvaluesIF.h>
@ -36,9 +37,8 @@ FixedTimeslotTaskIF* TaskFactory::createFixedTimeslotTask(TaskName name_,
TaskDeadlineMissedFunction deadLineMissedFunction_) {
// This is going to be interesting. Time now learn the C++ threading library
// :-)
sif::warning << "TaskFactory::createFixedTimeslotTask: Not implemented "
"yet" << std::endl;
return nullptr;
return new FixedTimeslotTask(name_, taskPriority_, stackSize_,
periodInSeconds_, deadLineMissedFunction_);
}
ReturnValue_t TaskFactory::deleteTask(PeriodicTaskIF* task) {