35 lines
471 B
C
35 lines
471 B
C
![]() |
#ifndef __DEBUG_H__
|
||
|
#define __DEBUG_H__
|
||
|
|
||
|
|
||
|
#define ON_DEBUG 1
|
||
|
#define OFF_DEBUG !ON_DEBUG
|
||
|
#define IDX_SIZE 14
|
||
|
|
||
|
|
||
|
struct task_switch{
|
||
|
int switch_table[IDX_SIZE];
|
||
|
int switch_flag;
|
||
|
int index;
|
||
|
|
||
|
};
|
||
|
|
||
|
struct ucp_task{
|
||
|
|
||
|
struct task_switch cpuid;
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
extern struct ucp_task *sw_debug_info;
|
||
|
|
||
|
extern struct ucp_task *no_idle_sw_info;
|
||
|
|
||
|
extern void os_debug(void * addr , uint32_t v);
|
||
|
extern void no_idle_debug(void *addr,uint32_t v);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|