L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
sys_debug.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file sys_debug.h
5 * @author MCD Application Team
6 * @brief Configuration of the debug.c instances
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 __SYS_DEBUG_H__
23#define __SYS_DEBUG_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "sys_conf.h"
31#include "platform.h"
32
33/* USER CODE BEGIN Includes */
34
35/* USER CODE END Includes */
36
37/* Exported types ------------------------------------------------------------*/
38/* USER CODE BEGIN ET */
39
40/* USER CODE END ET */
41
42/* Exported constants --------------------------------------------------------*/
43/* Pin defines */
44
45/* USER CODE BEGIN EC */
46
47/* USER CODE END EC */
48
49/* External variables --------------------------------------------------------*/
50/* USER CODE BEGIN EV */
51
52/* USER CODE END EV */
53
54/* Exported macro ------------------------------------------------------------*/
55#if !defined (DISABLE_PROBE_GPIO)
56
57/**
58 * @brief Set pin to x value
59 */
60#define PROBE_GPIO_WRITE( gpio, n, x ) HAL_GPIO_WritePin( gpio, n, (GPIO_PinState)(x) )
61
62/**
63 * @brief Set pin to high level
64 */
65#define PROBE_GPIO_SET_LINE( gpio, n ) LL_GPIO_SetOutputPin( gpio, n )
66
67/**
68 * @brief Set pin to low level
69 */
70#define PROBE_GPIO_RST_LINE( gpio, n ) LL_GPIO_ResetOutputPin( gpio, n )
71
72#else /* DISABLE_PROBE_GPIO */
73
74/**
75 * @brief not usable
76 */
77#define PROBE_GPIO_WRITE( gpio, n, x )
78
79/**
80 * @brief not usable
81 */
82#define PROBE_GPIO_SET_LINE( gpio, n )
83
84/**
85 * @brief not usable
86 */
87#define PROBE_GPIO_RST_LINE( gpio, n )
88
89#endif /* DISABLE_PROBE_GPIO */
90
91/* USER CODE BEGIN EM */
92
93/* USER CODE END EM */
94
95/* Exported functions prototypes ---------------------------------------------*/
96/**
97 * @brief Initializes the SW probes pins and the monitor RF pins via Alternate Function
98 */
99void DBG_Init(void);
100
101/* USER CODE BEGIN EFP */
102
103/* USER CODE END EFP */
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif /* __SYS_DEBUG_H__ */
Header for General HW instances configuration.
Applicative configuration, e.g. : debug, trace, low power, sensors.
void DBG_Init(void)
Initializes the SW probes pins and the monitor RF pins via Alternate Function.
Definition sys_debug.c:64