updating code from Flying Laptop
This is the framework of Flying Laptop OBSW version A.13.0.
This commit is contained in:
LICENSENOTICETHANKYOU
action
ActionHelper.cppActionHelper.hActionMessage.cppActionMessage.hCommandActionHelper.cppCommandActionHelper.hCommandsActionsIF.hHasActionsIF.hSimpleActionHelper.cppSimpleActionHelper.h
container
ArrayList.hBinaryTree.hFIFO.hFixedMap.hFixedOrderedMultimap.hIndexedRingMemoryArray.hLinkedElementDecorator.hPlacementFactory.hRingBufferBase.hRingBufferTest.cpp.ignoreSimpleRingBuffer.cppSimpleRingBuffer.hSinglyLinkedList.h
contrib/sgp4
controller
coordinates
CoordinateTransformations.cppCoordinateTransformations.hJgm3Model.hSgp4Propagator.cppSgp4Propagator.h
datalinklayer
CCSDSReturnValuesIF.hDataLinkLayer.cppDataLinkLayer.hFarm1StateOpen.cppFarm1StateOpen.hMapPacketExtraction.cppMapPacketExtraction.hVirtualChannelReception.cppVirtualChannelReception.hVirtualChannelReceptionIF.h
datapool
ControllerSet.cppControllerSet.hDataPool.cppDataPool.hDataPoolAdmin.cppDataPoolAdmin.hDataPoolParameterWrapper.cppDataPoolParameterWrapper.hDataSet.cppDataSet.hDataSetIF.hHkSwitchHelper.cppHkSwitchHelper.hMakefilePIDReader.hPIDReaderList.hPoolEntry.cppPoolEntry.hPoolEntryIF.hPoolRawAccess.cppPoolRawAccess.hPoolVarList.h
devicehandlers
AcceptsDeviceResponsesIF.hAssemblyBase.cppAssemblyBase.hChildHandlerBase.cppChildHandlerBase.hChildHandlerFDIR.cppChildHandlerFDIR.hDeviceCommunicationIF.hDeviceHandlerBase.cppDeviceHandlerBase.hDeviceHandlerFailureIsolation.cppDeviceHandlerFailureIsolation.hDeviceHandlerIF.hDeviceHandlerMessage.cppDeviceHandlerMessage.hFixedSequenceSlot.cppFixedSequenceSlot.hFixedSlotSequence.cppFixedSlotSequence.hHealthDevice.cppHealthDevice.hMakefilePollingSequence.cppPollingSequenceExecutableIF.hPollingSlot.cppPollingTask.cpp
events
Event.cppEvent.hEventManager.cppEventManager.hEventManagerIF.hEventMessage.hEventReportingProxyIF.h
eventmatching
EventIdRangeMatcher.cppEventIdRangeMatcher.hEventMatchTree.cppEventMatchTree.hEventRangeMatcherBase.hReporterRangeMatcher.cppReporterRangeMatcher.hSeverityRangeMatcher.cppSeverityRangeMatcher.h
fwSubsystemIdRanges.hfdir
ConfirmsFailuresIF.hEventCorrelation.cppEventCorrelation.hFailureIsolationBase.cppFailureIsolationBase.hFaultCounter.cppFaultCounter.h
framework.mkglobalfunctions
AsciiConverter.hMakefileconstants.hconversion.cppconversion.hcrc_ccitt.cppcrc_ccitt.h
matching
math
timevalOperations.cpptimevalOperations.hhealth
HasHealthIF.hHealthHelper.cppHealthMessage.cppHealthMessage.hHealthTable.cppHealthTable.hHealthTableIF.hManagesHealthIF.h
internalError
ipc
CommandMessage.cppCommandMessage.hFwMessageTypes.hMakefileMessageProxy.cppMessageProxy.hMessageQueue.cppMessageQueueIF.hMessageQueueMessage.cppMessageQueueMessage.hMessageQueueSender.cppMessageQueueSender.hMessageQueueSenderIF.hMutexFactory.hMutexIF.hQueueFactory.hReplyMessage.h
memory
AcceptsMemoryMessagesIF.hHasMemoryIF.hLocalMemory.cppLocalMemory.hMemoryHelper.cppMemoryHelper.hMemoryListAdapter.hMemoryMessage.cppMemoryMessage.hMemoryProxyIF.h
modes
monitoring
AbsLimitMonitor.hDeltaCheckMonitor.hHasMonitorsIF.hLimitCheckMonitor.hLimitMonitor.hLimitViolationReporter.cppLimitViolationReporter.hMonitorBase.hMonitorReporter.hMonitoringHelper.cppMonitoringHelper.hMonitoringIF.hMonitoringListAdapter.cppMonitoringListAdapter.hMonitoringMessage.cppMonitoringMessage.hMonitoringMessageContent.hOneParameterMonitorList.hReceivesMonitoringReportsIF.hTriplexMonitor.hTwoValueLimitMonitor.h
objectmanager
ObjectManager.cppObjectManager.hObjectManagerIF.hSystemObject.cppSystemObject.hSystemObjectIF.hframeworkObjects.h
osal
parameters
HasParametersIF.hParameterHelper.cppParameterHelper.hParameterMessage.cppParameterMessage.hParameterWrapper.cppParameterWrapper.hReceivesParameterMessagesIF.h
power
Fuse.cppFuse.hHasPowerSwitchIF.hPowerComponent.cppPowerComponent.hPowerComponentIF.hPowerSensor.cppPowerSensor.hPowerSwitchIF.hPowerSwitcher.cppPowerSwitcher.h
privatepool
returnvalues
rmap
RMAP.cppRMAP.hRMAPChannelIF.hRMAPCookie.cppRMAPCookie.hRmapSPWChannel.cppRmapSPWChannel.hrmapStructs.h
serialize
EndianSwapper.hSerialArrayListAdapter.hSerialBufferAdapter.cppSerialBufferAdapter.hSerialFixedArrayListAdapter.hSerializeAdapter.hSerializeElement.hSerializeIF.h
serviceinterface
MakefileServiceInterfaceBuffer.cppServiceInterfaceBuffer.hServiceInterfaceStream.cppServiceInterfaceStream.h
storagemanager
subsystem
tasks
ExecutableObjectIF.hFixedTimeslotTaskIF.hMakefileMultiObjectTask.cppObjectTask.cppObjectTask.hPeriodicTask.cppPeriodicTask.hPeriodicTaskIF.hTaskBase.cppTaskBase.hTaskFactory.hTaskIF.hTypedef.h
tcdistribution
CCSDSDistributor.cppCCSDSDistributor.hCCSDSDistributorIF.hMakefilePUSDistributor.cppPUSDistributor.hPUSDistributorIF.hTcDistributor.cppTcDistributor.hTcPacketCheck.cppTcPacketCheck.h
thermal
AbstractTemperatureSensor.cppAbstractTemperatureSensor.hCoreComponent.cppCoreComponent.hHeater.cppHeater.hRedundantHeater.cppRedundantHeater.hTemperatureSensor.hThermalComponent.cppThermalComponent.hThermalComponentIF.hThermalModule.cppThermalModule.hThermalModuleIF.hThermalMonitor.cppThermalMonitor.htcsDefinitions.h
timemanager
CCSDSTime.cppCCSDSTime.hClock.hCountdown.cppCountdown.hReceivesTimeInfoIF.hTimeMessage.cppTimeMessage.hTimeStamperIF.h
tmstorage
TmStore.cppTmStore.hTmStoreBackendIF.hTmStoreFrontendIF.hTmStoreInfo.hTmStoreManager.cppTmStoreManager.hTmStoreMessage.cppTmStoreMessage.hTmStorePackets.h
tmtcpacket
tmtcservices
AcceptsTelecommandsIF.hAcceptsTelemetryIF.hAcceptsVerifyMessageIF.hCommandingServiceBase.hPusServiceBase.cppPusServiceBase.hPusVerificationReport.cppPusVerificationReport.hTmTcMessage.cppVerificationCodes.hVerificationReporter.cppVerificationReporter.h
watchdog
59
osal/rtems/InternalErrorCodes.cpp
Normal file
59
osal/rtems/InternalErrorCodes.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
#include <framework/osal/InternalErrorCodes.h>
|
||||
#include <rtems/score/interr.h>
|
||||
|
||||
ReturnValue_t InternalErrorCodes::translate(uint8_t code) {
|
||||
switch (code) {
|
||||
case INTERNAL_ERROR_NO_CONFIGURATION_TABLE:
|
||||
return NO_CONFIGURATION_TABLE;
|
||||
case INTERNAL_ERROR_NO_CPU_TABLE:
|
||||
return NO_CPU_TABLE;
|
||||
case INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS:
|
||||
return INVALID_WORKSPACE_ADDRESS;
|
||||
case INTERNAL_ERROR_TOO_LITTLE_WORKSPACE:
|
||||
return TOO_LITTLE_WORKSPACE;
|
||||
case INTERNAL_ERROR_WORKSPACE_ALLOCATION:
|
||||
return WORKSPACE_ALLOCATION;
|
||||
case INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL:
|
||||
return INTERRUPT_STACK_TOO_SMALL;
|
||||
case INTERNAL_ERROR_THREAD_EXITTED:
|
||||
return THREAD_EXITTED;
|
||||
case INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION:
|
||||
return INCONSISTENT_MP_INFORMATION;
|
||||
case INTERNAL_ERROR_INVALID_NODE:
|
||||
return INVALID_NODE;
|
||||
case INTERNAL_ERROR_NO_MPCI:
|
||||
return NO_MPCI;
|
||||
case INTERNAL_ERROR_BAD_PACKET:
|
||||
return BAD_PACKET;
|
||||
case INTERNAL_ERROR_OUT_OF_PACKETS:
|
||||
return OUT_OF_PACKETS;
|
||||
case INTERNAL_ERROR_OUT_OF_GLOBAL_OBJECTS:
|
||||
return OUT_OF_GLOBAL_OBJECTS;
|
||||
case INTERNAL_ERROR_OUT_OF_PROXIES:
|
||||
return OUT_OF_PROXIES;
|
||||
case INTERNAL_ERROR_INVALID_GLOBAL_ID:
|
||||
return INVALID_GLOBAL_ID;
|
||||
case INTERNAL_ERROR_BAD_STACK_HOOK:
|
||||
return BAD_STACK_HOOK;
|
||||
case INTERNAL_ERROR_BAD_ATTRIBUTES:
|
||||
return BAD_ATTRIBUTES;
|
||||
case INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY:
|
||||
return IMPLEMENTATION_KEY_CREATE_INCONSISTENCY;
|
||||
case INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL:
|
||||
return IMPLEMENTATION_BLOCKING_OPERATION_CANCEL;
|
||||
case INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE:
|
||||
return MUTEX_OBTAIN_FROM_BAD_STATE;
|
||||
case INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0:
|
||||
return UNLIMITED_AND_MAXIMUM_IS_0;
|
||||
default:
|
||||
return HasReturnvaluesIF::RETURN_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
InternalErrorCodes::InternalErrorCodes() {
|
||||
}
|
||||
|
||||
InternalErrorCodes::~InternalErrorCodes() {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user