fprime/Svc/FatalHandler/FatalHandlerComponentBaremetalImpl.cpp
M Starch 0659f0940b
Refactored type organization (#3422)
* Refactored type organization

* Creating better configuration/types header hierarchy

* Replace FpConfig type aliases with FPP generated aliases

* Add the aliases to the FPP model

* Config + Type Aliases builds

* Renamed Fw/Types.h,hpp to Fw/FPrimeBasicTypes.h,hpp

* Updating to FPP-a7

* Adding newline

* sp

* Fixing minor nit from review

* Spurious ;

---------

Co-authored-by: Andrei Tumbar <andrei.tumbar@jpl.nasa.gov>
2025-04-03 12:11:36 -07:00

26 lines
933 B
C++

// ======================================================================
// \title FatalHandlerImpl.cpp
// \author lestarch
// \brief cpp file for FatalHandler component implementation class
// ======================================================================
#include <cstdlib>
#include <Fw/Logger/Logger.hpp>
#include <Svc/FatalHandler/FatalHandlerComponentImpl.hpp>
#include <Fw/FPrimeBasicTypes.hpp>
namespace Svc {
// ----------------------------------------------------------------------
// Handler implementations for user-defined typed input ports
// ----------------------------------------------------------------------
void FatalHandlerComponentImpl::FatalReceive_handler(
const FwIndexType portNum,
FwEventIdType Id) {
Fw::Logger::log("FATAL %" PRI_FwEventIdType "handled.\n",Id);
while (true) {} // Returning might be bad
}
} // end namespace Svc