fsfw/osal/rtems/InitTask.cpp
Ulrich Mohr 575f70ba03 updating code from Flying Laptop
This is the framework of Flying Laptop OBSW version A.13.0.
2018-07-12 16:29:32 +02:00

28 lines
482 B
C++

#include "InitTask.h"
#include "RtemsBasic.h"
InitTask::InitTask() {
}
InitTask::~InitTask() {
}
void InitTask::deleteTask(){
rtems_task_delete(RTEMS_SELF);
}
ReturnValue_t InitTask::startTask() {
return HasReturnvaluesIF::RETURN_OK;
}
ReturnValue_t InitTask::sleepFor(uint32_t ms) {
rtems_status_code status = rtems_task_wake_after(RtemsBasic::convertMsToTicks(ms));
return RtemsBasic::convertReturnCode(status);
}
uint32_t InitTask::getPeriodMs() const {
return 0;
}