Choco OS  V.0.16.9.0
Join to the chocolate world
oc_exchan.h
Go to the documentation of this file.
1 
31 #ifndef SYSTEM_CORE_INC_KERNEL_OC_EXCHAN_H_
32 #define SYSTEM_CORE_INC_KERNEL_OC_EXCHAN_H_
33 
34 #include <oc_errors.h>
35 #include <oc_thread.h>
36 
42 #define _________________________________________TYPES_SECTION______________________________________________________________________________
43 
44 typedef enum
45 {
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;
53 
54 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
55 
61 #define _________________________________________PROTOTYPES_SECTION_________________________________________________________________________
62 
63 extern oC_ErrorCode_t oC_ExcHan_TurnOn ( void );
64 extern oC_ErrorCode_t oC_ExcHan_TurnOff ( void );
65 extern void oC_ExcHan_PrintLoggedEvents ( void );
66 extern void oC_ExcHan_LogEvent ( const char * Name , char * AdditionalInfo , void * Stack , oC_Thread_t Thread , oC_ExcHan_ExceptionType_t Type );
67 extern oC_ErrorCode_t oC_ExcHan_RunDaemon ( void );
68 
69 #undef _________________________________________PROTOTYPES_SECTION_________________________________________________________________________
70 
71 
72 #endif /* SYSTEM_CORE_INC_KERNEL_OC_EXCHAN_H_ */
oC_ErrorCode_t oC_ExcHan_TurnOff(void)
turns off exception handler
Definition: oc_exchan.c:182
void oC_ExcHan_PrintLoggedEvents(void)
prints logged events in the STD out
Definition: oc_exchan.c:206
oC_ErrorCode_t oC_ExcHan_RunDaemon(void)
starts daemon of the Exception Handler
Definition: oc_exchan.c:362
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
Definition: oc_exchan.c:347
oC_ErrorCode_t oC_ExcHan_TurnOn(void)
turns on exception handler
Definition: oc_exchan.c:140