updating code from Flying Laptop
This is the framework of Flying Laptop OBSW version A.13.0.
This commit is contained in:
27
osal/rtems/InitTask.cpp
Normal file
27
osal/rtems/InitTask.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user