fprime/Svc/FatalHandler/FatalHandlerComponentBaremetalImpl.cpp
2021-09-21 09:36:06 -07:00

27 lines
972 B
C++

// ======================================================================
// \title FatalHandlerImpl.cpp
// \author lestarch
// \brief cpp file for FatalHandler component implementation class
// ======================================================================
#include <cstdlib>
#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",Id,0,0,0,0,0);
while (true) {} // Returning might be bad
}
} // end namespace Svc