Adding Code for Linux

This commit is contained in:
Steffen Gaisser
2018-12-19 19:42:00 +01:00
parent db1f93a155
commit fd782b20c0
90 changed files with 2411 additions and 1497 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ ReturnValue_t PUSDistributor::registerService(AcceptsTelecommandsIF* service) {
errorCode = this->queueMap.insert(
std::pair<uint32_t, MessageQueueId_t>(serviceId, queue)).second;
if (errorCode == false) {
returnValue = OperatingSystemIF::RESOURCE_IN_USE;
//TODO Return Code
returnValue = MessageQueueIF::NO_QUEUE;
}
return returnValue;
}
+1 -1
View File
@@ -20,7 +20,7 @@ ReturnValue_t TcDistributor::performOperation(uint8_t opCode) {
status = tcQueue->receiveMessage(&currentMessage)) {
status = handlePacket();
}
if (status == OperatingSystemIF::QUEUE_EMPTY) {
if (status == MessageQueueIF::EMPTY) {
return RETURN_OK;
} else {
return status;
-1
View File
@@ -2,7 +2,6 @@
#define TCDISTRIBUTOR_H_
#include <framework/objectmanager/ObjectManagerIF.h>
#include <framework/objectmanager/SystemObject.h>
#include <framework/osal/OperatingSystemIF.h>
#include <framework/returnvalues/HasReturnvaluesIF.h>
#include <framework/storagemanager/StorageManagerIF.h>
#include <framework/tasks/ExecutableObjectIF.h>