forked from LiteOS/LiteOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_err.c
37 lines (34 loc) · 868 Bytes
/
sample_err.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
#include "osTest.h"
#include "math.h"
#include "semaphore.h"
#include "pthread.h"
#include "time.h"
#include "fcntl.h"
#include "sys/stat.h"
#include "codes.h"
#include "hal_platform_ints.h"
#include "los_task.h"
extern USER_ERR_FUNC_S g_stUserErrFunc;
void *err_handler(CHAR *pcFileName,
UINT32 uwLineNo,
UINT32 uwErrorNo,
UINT32 uwParaLen,
VOID *pPara)
{
printf("err handel ok\n");
}
UINT32 Example_ErrCaseEntry(VOID)
{
LOS_ErrHandle(NULL, 0,0,0, NULL);
return LOS_OK;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cpluscplus */
#endif /* __cpluscplus */