F´ Flight Software - C/C++ Documentation
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 
8 #include <Fw/Logger/Logger.hpp>
10 #include <cstdlib>
11 
12 namespace Svc {
13 
14 // ----------------------------------------------------------------------
15 // Handler implementations for user-defined typed input ports
16 // ----------------------------------------------------------------------
17 
18 void FatalHandlerComponentImpl::FatalReceive_handler(const FwIndexType portNum, FwEventIdType Id) {
19  Fw::Logger::log("FATAL %" PRI_FwEventIdType "handled.\n", Id);
20  while (true) {
21  } // Returning might be bad
22 }
23 
24 } // end namespace Svc
static void log(const char *format,...)
log a formated string with supplied arguments
Definition: Logger.cpp:21
#define PRI_FwEventIdType
FwIdType FwEventIdType
The type of an event identifier.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.