F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
FatalHandlerComponentBaremetalImpl.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FatalHandlerImpl.cpp
3 // \author lestarch
4 // \brief cpp file for FatalHandler component implementation class
5 // ======================================================================
6 
7 #include <cstdlib>
8 #include <Os/Log.hpp>
10 #include <FpConfig.hpp>
11 
12 namespace Svc {
13 
14  // ----------------------------------------------------------------------
15  // Handler implementations for user-defined typed input ports
16  // ----------------------------------------------------------------------
17 
18  void FatalHandlerComponentImpl::FatalReceive_handler(
19  const NATIVE_INT_TYPE portNum,
20  FwEventIdType Id) {
21  // for **nix, delay then exit with error code
22  Os::Log::logMsg("FATAL %d handled.\n",Id,0,0,0,0,0);
23  while (true) {} // Returning might be bad
24  }
25 
26 } // end namespace Svc
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
U32 FwEventIdType
Definition: FpConfig.h:86
C++-compatible configuration header for fprime configuration.
static void logMsg(const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)
Definition: Logger.cpp:18