mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 17:47:10 -06:00
27 lines
977 B
C++
27 lines
977 B
C++
// ======================================================================
|
|
// \title FatalHandlerImpl.cpp
|
|
// \author lestarch
|
|
// \brief cpp file for FatalHandler component implementation class
|
|
// ======================================================================
|
|
|
|
#include <stdlib.h>
|
|
#include <Os/Log.hpp>
|
|
#include <Svc/FatalHandler/FatalHandlerComponentImpl.hpp>
|
|
#include "Fw/Types/BasicTypes.hpp"
|
|
|
|
namespace Svc {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Handler implementations for user-defined typed input ports
|
|
// ----------------------------------------------------------------------
|
|
|
|
void FatalHandlerComponentImpl::FatalReceive_handler(
|
|
const NATIVE_INT_TYPE portNum,
|
|
FwEventIdType Id) {
|
|
// for **nix, delay then exit with error code
|
|
Os::Log::logMsg("FATAL %d handled.\n",(U32)Id,0,0,0,0,0);
|
|
while (1) {} // Returning might be bad
|
|
}
|
|
|
|
} // end namespace Svc
|