L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
mw_log_conf.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file mw_log_conf.h
5 * @author MCD Application Team
6 * @brief Configure (enable/disable) traces
7 *******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __MW_LOG_CONF_H__
23#define __MW_LOG_CONF_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32_adv_trace.h"
31
32/* USER CODE BEGIN Includes */
33
34/* USER CODE END Includes */
35
36/* Exported types ------------------------------------------------------------*/
37/* USER CODE BEGIN ET */
38
39/* USER CODE END ET */
40
41/* Exported constants --------------------------------------------------------*/
42#define MW_LOG_ENABLED
43
44/* USER CODE BEGIN EC */
45
46/* USER CODE END EC */
47
48/* External variables --------------------------------------------------------*/
49/* USER CODE BEGIN EV */
50
51/* USER CODE END EV */
52
53/* Exported macro ------------------------------------------------------------*/
54#ifdef MW_LOG_ENABLED
55#define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
56#else /* MW_LOG_ENABLED */
57#define MW_LOG(TS,VL, ...)
58#endif /* MW_LOG_ENABLED */
59/* USER CODE BEGIN EM */
60
61/* USER CODE END EM */
62
63/* Exported functions prototypes ---------------------------------------------*/
64/* USER CODE BEGIN EFP */
65
66/* USER CODE END EFP */
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /*__MW_LOG_CONF_H__ */