mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-30 06:33:07 +00:00
338fc3afea
* Updated stack to 1.17.0 * hal: ble: Fixed stack config * Bumped stack version in config * scripts: added validation of copro stack version in update bundles * Copro: update to 1.17.2 * FuriHal: adjust tick frequency for HSE as sys clk * FuriHal: adjust systick reload on sys clock change * Sync api and format sources * scripts: updated ob.data for newer stack * FuriHal: return core2 hse pll transition on deep sleep * FuriHal: cleanup ble glue * FuriHal: rework ble glue, allow shci_send in critical section * FuriHal: sync api symbols * FuriHal: cleanup BLE glue, remove unused garbage and duplicate declarations * FuriHal: BLE glue cleanup, 2nd iteration * FuriHal: hide tick drift reports under FURI_HAL_OS_DEBUG * Lib: sync stm32wb_copro with latest dev * FuriHal: ble-glue, slightly less editable device name and duplicate definition cleanup * FuriHal: update ble config options, enable some optimizations and ext adv * FuriHal: update clock switch method documentation * FuriHal: better SNBRSA bug workaround fix * FuriHal: complete comment about tick skew * FuriHal: proper condition in clock hsi2hse transition * FuriHal: move PLL start to hse2pll routine, fix lockup caused by core2 switching to HSE before us * FuriHal: explicit HSE start before switch * FuriHal: fix documentation and move flash latency change to later stage, remove duplicate LL_RCC_SetRFWKPClockSource call --------- Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com>
102 lines
2.8 KiB
C
102 lines
2.8 KiB
C
#pragma once
|
|
|
|
#include "app_conf.h" /* required as some configuration used in dbg_trace.h are set there */
|
|
#include "dbg_trace.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Enable or Disable traces
|
|
* The raw data output is the hci binary packet format as specified by the BT specification *
|
|
*/
|
|
#define TL_SHCI_CMD_DBG_EN 1 /* Reports System commands sent to CPU2 and the command response */
|
|
#define TL_SHCI_CMD_DBG_RAW_EN \
|
|
0 /* Reports raw data System commands sent to CPU2 and the command response */
|
|
#define TL_SHCI_EVT_DBG_EN 1 /* Reports System Asynchronous Events received from CPU2 */
|
|
#define TL_SHCI_EVT_DBG_RAW_EN \
|
|
0 /* Reports raw data System Asynchronous Events received from CPU2 */
|
|
|
|
#define TL_HCI_CMD_DBG_EN 1 /* Reports BLE command sent to CPU2 and the command response */
|
|
#define TL_HCI_CMD_DBG_RAW_EN \
|
|
0 /* Reports raw data BLE command sent to CPU2 and the command response */
|
|
#define TL_HCI_EVT_DBG_EN 1 /* Reports BLE Asynchronous Events received from CPU2 */
|
|
#define TL_HCI_EVT_DBG_RAW_EN 0 /* Reports raw data BLE Asynchronous Events received from CPU2 */
|
|
|
|
#define TL_MM_DBG_EN 1 /* Reports the informations of the buffer released to CPU2 */
|
|
|
|
/**
|
|
* System Transport Layer
|
|
*/
|
|
#if(TL_SHCI_CMD_DBG_EN != 0)
|
|
#define TL_SHCI_CMD_DBG_MSG PRINT_MESG_DBG
|
|
#define TL_SHCI_CMD_DBG_BUF PRINT_LOG_BUFF_DBG
|
|
#else
|
|
#define TL_SHCI_CMD_DBG_MSG(...)
|
|
#define TL_SHCI_CMD_DBG_BUF(...)
|
|
#endif
|
|
|
|
#if(TL_SHCI_CMD_DBG_RAW_EN != 0)
|
|
#define TL_SHCI_CMD_DBG_RAW(_PDATA_, _SIZE_) furi_hal_console_tx_with_new_line(_PDATA_, _SIZE_)
|
|
#else
|
|
#define TL_SHCI_CMD_DBG_RAW(...)
|
|
#endif
|
|
|
|
#if(TL_SHCI_EVT_DBG_EN != 0)
|
|
#define TL_SHCI_EVT_DBG_MSG PRINT_MESG_DBG
|
|
#define TL_SHCI_EVT_DBG_BUF PRINT_LOG_BUFF_DBG
|
|
#else
|
|
#define TL_SHCI_EVT_DBG_MSG(...)
|
|
#define TL_SHCI_EVT_DBG_BUF(...)
|
|
#endif
|
|
|
|
#if(TL_SHCI_EVT_DBG_RAW_EN != 0)
|
|
#define TL_SHCI_EVT_DBG_RAW(_PDATA_, _SIZE_) furi_hal_console_tx_with_new_line(_PDATA_, _SIZE_)
|
|
#else
|
|
#define TL_SHCI_EVT_DBG_RAW(...)
|
|
#endif
|
|
|
|
/**
|
|
* BLE Transport Layer
|
|
*/
|
|
#if(TL_HCI_CMD_DBG_EN != 0)
|
|
#define TL_HCI_CMD_DBG_MSG PRINT_MESG_DBG
|
|
#define TL_HCI_CMD_DBG_BUF PRINT_LOG_BUFF_DBG
|
|
#else
|
|
#define TL_HCI_CMD_DBG_MSG(...)
|
|
#define TL_HCI_CMD_DBG_BUF(...)
|
|
#endif
|
|
|
|
#if(TL_HCI_CMD_DBG_RAW_EN != 0)
|
|
#define TL_HCI_CMD_DBG_RAW(_PDATA_, _SIZE_) furi_hal_console_tx_with_new_line(_PDATA_, _SIZE_)
|
|
#else
|
|
#define TL_HCI_CMD_DBG_RAW(...)
|
|
#endif
|
|
|
|
#if(TL_HCI_EVT_DBG_EN != 0)
|
|
#define TL_HCI_EVT_DBG_MSG PRINT_MESG_DBG
|
|
#define TL_HCI_EVT_DBG_BUF PRINT_LOG_BUFF_DBG
|
|
#else
|
|
#define TL_HCI_EVT_DBG_MSG(...)
|
|
#define TL_HCI_EVT_DBG_BUF(...)
|
|
#endif
|
|
|
|
#if(TL_HCI_EVT_DBG_RAW_EN != 0)
|
|
#define TL_HCI_EVT_DBG_RAW(_PDATA_, _SIZE_) furi_hal_console_tx_with_new_line(_PDATA_, _SIZE_)
|
|
#else
|
|
#define TL_HCI_EVT_DBG_RAW(...)
|
|
#endif
|
|
|
|
/**
|
|
* Memory Manager - Released buffer tracing
|
|
*/
|
|
#if(TL_MM_DBG_EN != 0)
|
|
#define TL_MM_DBG_MSG PRINT_MESG_DBG
|
|
#else
|
|
#define TL_MM_DBG_MSG(...)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|