Choco OS  V.0.16.9.0
Join to the chocolate world
oc_exchan.c File Reference

Source file of Exception Handler module. More...

#include <oc_exchan.h>
#include <oc_module.h>
#include <oc_sys_lld.h>
#include <oc_ktime.h>
#include <oc_userman.h>
#include <oc_debug.h>
#include <oc_process.h>
#include <oc_processman.h>
#include <oc_intman.h>
#include <oc_kprint.h>
#include <oc_streamman.h>
#include <oc_threadman.h>
#include <oc_clock_lld.h>
#include <oc_memman.h>
#include <oc_dynamic_config.h>

Go to the source code of this file.

Data Structures

struct  EventLog_t
 

Functions

static void SystemEventHandler (oC_SYS_LLD_EventFlags_t EventFlags, oC_SYS_LLD_Context_t *Context, void *MemoryAddress)
 handler for system events
 
static void MemoryEventHandler (void *Address, MemoryEventFlags_t Event, const char *Function, uint32_t LineNumber)
 handler for memory manager events
 
static void LogEvent (const char *Name, char *AdditionalInfo, oC_Thread_t Thread, oC_SYS_LLD_Context_t *Context, oC_ExcHan_ExceptionType_t Type)
 logs event
 
static void DaemonThreadHandler (void *Context)
 thread for printing logs
 
oC_ErrorCode_t oC_ExcHan_TurnOn (void)
 turns on exception handler
 
oC_ErrorCode_t oC_ExcHan_TurnOff (void)
 turns off exception handler
 
void oC_ExcHan_PrintLoggedEvents (void)
 prints logged events in the STD out More...
 
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_RunDaemon (void)
 starts daemon of the Exception Handler More...
 

Detailed Description


Author
Patryk Kubiak
Note
Copyright (C) 2016 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file oc_exchan.c.