fprime/Svc/FatalHandler/FatalHandlerComponentVxWorksImpl.cpp
2021-08-31 10:29:02 -07:00

28 lines
849 B
C++

// ======================================================================
// \title FatalHandlerImpl.cpp
// \author tcanham
// \brief cpp file for FatalHandler component implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// acknowledged.
//
// ======================================================================
#include <Svc/FatalHandler/FatalHandlerComponentImpl.hpp>
#include "Fw/Types/BasicTypes.hpp"
#include <taskLib.h>
#include <Fw/Logger/Logger.hpp>
namespace Svc {
void FatalHandlerComponentImpl::FatalReceive_handler(
const NATIVE_INT_TYPE portNum,
FwEventIdType Id) {
Fw::Logger::logMsg("FATAL %d handled.\n",Id,0,0,0,0,0);
taskSuspend(0);
}
} // end namespace Svc