F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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>
10#include <FpConfig.hpp>
11
12namespace 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 Fw::Logger::log("FATAL %" PRI_FwEventIdType "handled.\n",Id);
22 while (true) {} // Returning might be bad
23 }
24
25} // end namespace Svc
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:55
U32 FwEventIdType
Definition FpConfig.h:103
#define PRI_FwEventIdType
Definition FpConfig.h:104
C++-compatible configuration header for fprime configuration.
static void log(const char *format,...)
log a formated string with supplied arguments
Definition Logger.cpp:21