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 <
Fw/Logger/Logger.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
Fw::Logger::log
(
"FATAL %"
PRI_FwEventIdType
"handled.\n"
,Id);
22
while
(
true
) {}
// Returning might be bad
23
}
24
25
}
// end namespace Svc
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:55
FatalHandlerComponentImpl.hpp
FwEventIdType
U32 FwEventIdType
Definition:
FpConfig.h:103
PRI_FwEventIdType
#define PRI_FwEventIdType
Definition:
FpConfig.h:104
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Logger.hpp
Fw::Logger::log
static void log(const char *format,...)
log a formated string with supplied arguments
Definition:
Logger.cpp:21
Svc
Definition:
ActiveRateGroupCfg.hpp:18
Svc
FatalHandler
FatalHandlerComponentBaremetalImpl.cpp
Generated by
1.9.1