1 /*
2  * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3  */
4 
5 #ifndef DBG_API_H
6 #define DBG_API_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <stdio.h>
13 
14 #include "k_api.h"
15 #include "debug_infoget.h"
16 #include "debug_overview.h"
17 #include "debug_panic.h"
18 #include "debug_backtrace.h"
19 #include "debug_print.h"
20 #include "debug_test.h"
21 #include "debug_cli_cmd.h"
22 #include "debug_dumpsys.h"
23 #include "debug_cpuusage.h"
24 
25 #if DEBUG_LAST_WORD_ENABLE
26 #include "debug_lastword.h"
27 #endif
28 
29 /* system reboot reason description */
30 #define DEBUG_REBOOT_REASON_WD_RST    0x01 /**< Watchdog reset */
31 #define DEBUG_REBOOT_REASON_PANIC     0x02 /**< System panic */
32 #define DEBUG_REBOOT_REASON_REPOWER   0x03 /**< System repower */
33 #define DEBUG_REBOOT_REASON_FATAL_ERR 0x04 /**< System fatal error */
34 #define DEBUG_REBOOT_CMD_REASON       0x05 /**< Reboot cmd */
35 #define DEBUG_REBOOT_UNKNOWN_REASON   0x06 /**< unknown reason */
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* DBG_API_H */
42