📄 headset_debug.h
字号:
/***************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
FILE NAME
headset_debug.h
DESCRIPTION
*/
#ifndef _HEADSET_DEBUG_H_
#define _HEADSET_DEBUG_H_
#ifdef DEBUG_PRINT_ENABLED
#include <stdio.h>
#define DEBUG(x) {printf x;}
/*The individual Debug enables*/
/*The main system messages*/
#define DEBUG_MAIN
/* The audio amp messages*/
#define DEBUG_AMPx
/* The a2dp connection messages*/
#define DEBUG_A2DP_CONNECTIONx
/*The a2dp library messages*/
#define DEBUG_A2DP_MSG
/*The stream control messages*/
#define DEBUG_A2DP_STREAM_CONTROL
/*The avrcp event handling*/
#define DEBUG_AVRCP_EVENT
/*The authorisation handling*/
#define DEBUG_AUTHx
/*The avrcp library messages*/
#define DEBUG_AVRCP_MSG
/*The battery handling*/
#define DEBUG_BATx
/*The button manager */
#define DEBUG_BUT_MAN
/*The low level button parsing*/
#define DEBUG_BUTTONSx
/*The charger*/
#define DEBUG_CHARGERx
/*The connection library messages*/
#define DEBUG_CL_MSG
/*The codec library messages*/
#define DEBUG_CODEC_MSG
/*The config manager */
#define DEBUG_CONFIGx
/* The events received */
#define DEBUG_EVENTS
/*The hfp handling*/
#define DEBUG_HFP
/*The call functionality*/
#define DEBUG_HFP_CALL
/*The hfp library messages*/
#define DEBUG_HFP_MSG
/*The hfp slc handling*/
#define DEBUG_HFP_SLC
/*The LED manager */
#define DEBUG_LMx
/*The Lower level LED drive */
#define DEBUG_LEDSx
/*The Lower lvel PIO drive*/
#define DEBUG_PIOx
/*The power manager*/
#define DEBUG_POWER
/*Scan manager*/
#define DEBUG_SCAN
/*State manager*/
#define DEBUG_STATES
/*Tone manager*/
#define DEBUG_TONESx
/*Volume manager*/
#define DEBUG_VOLUME
#else
#define DEBUG(x)
#endif /* DEBUG_PRINT_ENABLED */
#ifdef DEBUG_PROFILE_ENABLED
#include <stdio.h>
#include <vm.h>
/* NOTE : PROFILE_TIME Will wrap the time value */
#define PROFILE_TIME(x) {printf(x); printf(" time : %d\n", (uint16)VmGetClock());}
/* NOTE : PROFILE_TIME_SLOW is slower than PROFILE_TIME */
#define PROFILE_TIME_SLOW(x) {uint32 prof_time = VmGetClock(); printf(x); printf(" time : 0x%X, %X\n", (uint16)(prof_time>>16), (uint16)(prof_time % 0xffff));}
#define PROFILE_MEMORY(x) {printf(x); printf(" slots : %d\n", VmGetAvailableAllocations());}
#else
#define PROFILE_TIME(x)
#define PROFILE_TIME_SLOW(x)
#define PROFILE_MEMORY(x)
#endif /* DEBUG_PROFILE_ENABLED */
#endif /* _HEADSET_DEBUG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -