WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_adapt_debug.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
3 * Description: osal adapt debug
4 * Create: 2023-5-17
5 */
6#ifdef OSAL_IRQ_RECORD_DEBUG
7#ifndef __OSAL_ADAPT_DEBUG_H__
8#define __OSAL_ADAPT_DEBUG_H__
9
10#include "td_type.h"
11#include "soc_osal.h"
12
13#ifdef __cplusplus
14#if __cplusplus
15extern "C" {
16#endif
17#endif
18
19#define RECORD_CNT_MAX 5
20
21typedef enum {
22 IRQ_LOCK = 0,
23 IRQ_UNLOCK,
24 IRQ_RESTORE,
25 IRQ_TYPE_BUFF
26} irq_type_enum;
27
28typedef struct record {
29 td_u32 caller[IRQ_TYPE_BUFF][RECORD_CNT_MAX];
30 td_u32 stauts[IRQ_TYPE_BUFF][RECORD_CNT_MAX];
31 td_u32 idx[IRQ_TYPE_BUFF];
32} debug_irq_record;
33
34debug_irq_record *osal_get_irq_record(void);
35void osal_irq_record(irq_type_enum type, td_u32 caller, td_u32 stauts);
36void osal_clear_irq_record(void);
37void osal_print_irq_record(void);
38
39#ifdef __cplusplus
40#if __cplusplus
41}
42#endif
43#endif
44
45#endif
46#endif /* #ifdef OSAL_IRQ_RECORD_DEBUG */
osal_u8 type
Definition oal_net.h:0
unsigned int td_u32
Definition td_type.h:38