mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp * lestarch: removing VxWorks StandardTypes from repository * updated fprime types for correct compilation with vxworks and baremetal * lestarch: refactoring types and configuration header w.r.t type design * lestarch: replacing usages of AssertArg with FwAssertArgType * lestarch: missspelled configuration * lestarch: minor compilation fixes * lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp * lestarch: updating PRI tokens * lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp * lestarch: UT and compilation fixes for types refactor * lestarch: sp * lestarch: fixing RPI issues in PassiveConsoleTextLogger * lestarch: converting RPI build to debug * lestarch: removing duplicate config imports * lestarch: fixing documentation * lestarch: fixing up multiple definitions and RPI compilation problems * lestarch: reverting debug build * lestarch: reverting platform types to class-based constants * lestarch: reworking basic types * lestarch: configured types refactor into classes * lestarch: fixing bugs with static constants in classes * lestarch: fixing platform types spelling and documentation * lestarch: adding include guards to types headers Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
27 lines
874 B
C++
27 lines
874 B
C++
#ifndef FW_TRAP_HPP
|
|
#define FW_TRAP_HPP
|
|
#include <FpConfig.hpp>
|
|
|
|
namespace Fw {
|
|
/**
|
|
* TrapHandler:
|
|
* A framework class used to handle traps that occur during the execution of the
|
|
* the F' framework. Must be registered with a trap register. The user should
|
|
* inherit from this class and ensure that the doTrap function is implemented. The
|
|
* default implementation will be do-nothing.
|
|
*/
|
|
class TrapHandler {
|
|
public:
|
|
TrapHandler() {}; //!< constructor
|
|
virtual ~TrapHandler() {}; //!< destructor
|
|
/**
|
|
* Handles the incoming trap.
|
|
* Note: if user does not supply an implementer of this
|
|
* function, a do-nothing version will be run.
|
|
* \param trap: trap number
|
|
*/
|
|
virtual void doTrap(U32 trap) = 0;
|
|
};
|
|
}
|
|
#endif
|