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
>
9
#include <
Svc/FatalHandler/FatalHandlerComponentImpl.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
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:51
FatalHandlerComponentImpl.hpp
FwEventIdType
U32 FwEventIdType
Definition:
FpConfig.h:62
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Log.hpp
Fw::Logger::logMsg
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
Svc
Definition:
ActiveRateGroupCfg.hpp:18
Svc
FatalHandler
FatalHandlerComponentBaremetalImpl.cpp
Generated by
1.9.1