31 #ifndef SYSTEM_CORE_INC_KERNEL_OC_EXCHAN_H_ 32 #define SYSTEM_CORE_INC_KERNEL_OC_EXCHAN_H_ 34 #include <oc_errors.h> 42 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 46 oC_ExcHan_ExceptionType_KernelPanic = (1<<0),
47 oC_ExcHan_ExceptionType_HardFault = (1<<1),
48 oC_ExcHan_ExceptionType_MemoryAccess = (1<<2),
49 oC_ExcHan_ExceptionType_MemoryAllocationError = (1<<3),
50 oC_ExcHan_ExceptionType_ProcessDamaged = (1<<4),
51 oC_ExcHan_ExceptionType_RequiredReboot = (1<<8),
52 } oC_ExcHan_ExceptionType_t;
54 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 61 #define _________________________________________PROTOTYPES_SECTION_________________________________________________________________________ 66 extern void oC_ExcHan_LogEvent (
const char * Name ,
char * AdditionalInfo ,
void * Stack ,
oC_Thread_t Thread , oC_ExcHan_ExceptionType_t Type );
69 #undef _________________________________________PROTOTYPES_SECTION_________________________________________________________________________
oC_ErrorCode_t oC_ExcHan_TurnOff(void)
turns off exception handler
void oC_ExcHan_PrintLoggedEvents(void)
prints logged events in the STD out
oC_ErrorCode_t oC_ExcHan_RunDaemon(void)
starts daemon of the Exception Handler
The file with interface for thread managing.
void oC_ExcHan_LogEvent(const char *Name, char *AdditionalInfo, void *Stack, oC_Thread_t Thread, oC_ExcHan_ExceptionType_t Type)
logs system event
oC_ErrorCode_t oC_ExcHan_TurnOn(void)
turns on exception handler