mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
27 lines
972 B
C++
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
|