Flipper Zero Firmware
Loading...
Searching...
No Matches
tl_dbg_conf.h
1#pragma once
2
3#include "app_conf.h" /* required as some configuration used in dbg_trace.h are set there */
4#include "dbg_trace.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
14#define TL_SHCI_CMD_DBG_EN 1 /* Reports System commands sent to CPU2 and the command response */
15#define TL_SHCI_CMD_DBG_RAW_EN \
16 0 /* Reports raw data System commands sent to CPU2 and the command response */
17#define TL_SHCI_EVT_DBG_EN 1 /* Reports System Asynchronous Events received from CPU2 */
18#define TL_SHCI_EVT_DBG_RAW_EN \
19 0 /* Reports raw data System Asynchronous Events received from CPU2 */
20
21#define TL_HCI_CMD_DBG_EN 1 /* Reports BLE command sent to CPU2 and the command response */
22#define TL_HCI_CMD_DBG_RAW_EN \
23 0 /* Reports raw data BLE command sent to CPU2 and the command response */
24#define TL_HCI_EVT_DBG_EN 1 /* Reports BLE Asynchronous Events received from CPU2 */
25#define TL_HCI_EVT_DBG_RAW_EN 0 /* Reports raw data BLE Asynchronous Events received from CPU2 */
26
27#define TL_MM_DBG_EN 1 /* Reports the informations of the buffer released to CPU2 */
28
32#if(TL_SHCI_CMD_DBG_EN != 0)
33#define TL_SHCI_CMD_DBG_MSG PRINT_MESG_DBG
34#define TL_SHCI_CMD_DBG_BUF PRINT_LOG_BUFF_DBG
35#else
36#define TL_SHCI_CMD_DBG_MSG(...)
37#define TL_SHCI_CMD_DBG_BUF(...)
38#endif
39
40#if(TL_SHCI_CMD_DBG_RAW_EN != 0)
41#define TL_SHCI_CMD_DBG_RAW(_PDATA_, _SIZE_) furi_log_tx(_PDATA_, _SIZE_)
42#else
43#define TL_SHCI_CMD_DBG_RAW(...)
44#endif
45
46#if(TL_SHCI_EVT_DBG_EN != 0)
47#define TL_SHCI_EVT_DBG_MSG PRINT_MESG_DBG
48#define TL_SHCI_EVT_DBG_BUF PRINT_LOG_BUFF_DBG
49#else
50#define TL_SHCI_EVT_DBG_MSG(...)
51#define TL_SHCI_EVT_DBG_BUF(...)
52#endif
53
54#if(TL_SHCI_EVT_DBG_RAW_EN != 0)
55#define TL_SHCI_EVT_DBG_RAW(_PDATA_, _SIZE_) furi_log_tx(_PDATA_, _SIZE_)
56#else
57#define TL_SHCI_EVT_DBG_RAW(...)
58#endif
59
63#if(TL_HCI_CMD_DBG_EN != 0)
64#define TL_HCI_CMD_DBG_MSG PRINT_MESG_DBG
65#define TL_HCI_CMD_DBG_BUF PRINT_LOG_BUFF_DBG
66#else
67#define TL_HCI_CMD_DBG_MSG(...)
68#define TL_HCI_CMD_DBG_BUF(...)
69#endif
70
71#if(TL_HCI_CMD_DBG_RAW_EN != 0)
72#define TL_HCI_CMD_DBG_RAW(_PDATA_, _SIZE_) furi_log_tx(_PDATA_, _SIZE_)
73#else
74#define TL_HCI_CMD_DBG_RAW(...)
75#endif
76
77#if(TL_HCI_EVT_DBG_EN != 0)
78#define TL_HCI_EVT_DBG_MSG PRINT_MESG_DBG
79#define TL_HCI_EVT_DBG_BUF PRINT_LOG_BUFF_DBG
80#else
81#define TL_HCI_EVT_DBG_MSG(...)
82#define TL_HCI_EVT_DBG_BUF(...)
83#endif
84
85#if(TL_HCI_EVT_DBG_RAW_EN != 0)
86#define TL_HCI_EVT_DBG_RAW(_PDATA_, _SIZE_) furi_log_tx(_PDATA_, _SIZE_)
87#else
88#define TL_HCI_EVT_DBG_RAW(...)
89#endif
90
94#if(TL_MM_DBG_EN != 0)
95#define TL_MM_DBG_MSG PRINT_MESG_DBG
96#else
97#define TL_MM_DBG_MSG(...)
98#endif
99
100#ifdef __cplusplus
101}
102#endif