L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
radio_conf.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file radio_conf.h
5 * @author MCD Application Team
6 * @brief Header of Radio configuration
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 __RADIO_CONF_H__
23#define __RADIO_CONF_H__
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "platform.h"
31#include "subghz.h"
32#include "stm32_mem.h" /* RADIO_MEMSET8 def in this file */
33#include "mw_log_conf.h" /* mw trace conf */
34#include "radio_board_if.h" /* low layer api (bsp) */
35#include "utilities_def.h" /* low layer api (bsp) */
36#include "sys_debug.h"
37/* USER CODE BEGIN include */
38
39/* USER CODE END include */
40
41/* Exported types ------------------------------------------------------------*/
42/* USER CODE BEGIN ET */
43
44/* USER CODE END ET */
45
46/* Exported constants --------------------------------------------------------*/
47
48/**
49 * @brief drive value used anytime radio is NOT in TX low power mode
50 * @note override the default configuration of radio_driver.c
51 */
52#define SMPS_DRIVE_SETTING_DEFAULT SMPS_DRV_40
53
54/**
55 * @brief drive value used anytime radio is in TX low power mode
56 * TX low power mode is the worst case because the PA sinks from SMPS
57 * while in high power mode, current is sunk directly from the battery
58 * @note override the default configuration of radio_driver.c
59 */
60#define SMPS_DRIVE_SETTING_MAX SMPS_DRV_60
61
62/**
63 * @brief Provides the frequency of the chip running on the radio and the frequency step
64 * @remark These defines are used for computing the frequency divider to set the RF frequency
65 * @note override the default configuration of radio_driver.c
66 */
67#define XTAL_FREQ ( 32000000UL )
68
69/**
70 * @brief in XO mode, set internal capacitor (from 0x00 to 0x2F starting 11.2pF with 0.47pF steps)
71 * @note override the default configuration of radio_driver.c
72 */
73#define XTAL_DEFAULT_CAP_VALUE ( 0x20UL )
74
75/**
76 * @brief voltage of vdd tcxo.
77 * @note override the default configuration of radio_driver.c
78 */
79#define TCXO_CTRL_VOLTAGE TCXO_CTRL_1_7V
80
81/**
82 * @brief Radio maximum wakeup time (in ms)
83 * @note override the default configuration of radio_driver.c
84 */
85#define RF_WAKEUP_TIME ( 1UL )
86
87/**
88 * @brief DCDC is enabled
89 * @remark this define is only used if the DCDC is present on the board
90 * @note override the default configuration of radio_driver.c
91 */
92#define DCDC_ENABLE ( 1UL )
93
94/* USER CODE BEGIN EC */
95
96/* USER CODE END EC */
97
98/* External variables --------------------------------------------------------*/
99/* USER CODE BEGIN EV */
100
101/* USER CODE END EV */
102
103/* Exported macros -----------------------------------------------------------*/
104#ifndef CRITICAL_SECTION_BEGIN
105/**
106 * @brief macro used to enter the critical section
107 */
108#define CRITICAL_SECTION_BEGIN( ) UTILS_ENTER_CRITICAL_SECTION( )
109#endif /* !CRITICAL_SECTION_BEGIN */
110#ifndef CRITICAL_SECTION_END
111/**
112 * @brief macro used to exit the critical section
113 */
114#define CRITICAL_SECTION_END( ) UTILS_EXIT_CRITICAL_SECTION( )
115#endif /* !CRITICAL_SECTION_END */
116
117/* Function mapping */
118/**
119 * @brief SUBGHZ interface init to radio Middleware
120 */
121#define RADIO_INIT MX_SUBGHZ_Init
122
123/**
124 * @brief Delay interface to radio Middleware
125 */
126#define RADIO_DELAY_MS HAL_Delay
127
128/**
129 * @brief Memset utilities interface to radio Middleware
130 */
131#define RADIO_MEMSET8( dest, value, size ) UTIL_MEM_set_8( dest, value, size )
132
133/**
134 * @brief Memcpy utilities interface to radio Middleware
135 */
136#define RADIO_MEMCPY8( dest, src, size ) UTIL_MEM_cpy_8( dest, src, size )
137
138/* USER CODE BEGIN EM */
139
140/* USER CODE END EM */
141
142/* Exported functions prototypes ---------------------------------------------*/
143/* USER CODE BEGIN EFP */
144
145/* USER CODE END EFP */
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif /* __RADIO_CONF_H__*/
Configure (enable/disable) traces.
Header for General HW instances configuration.
Header for Radio interface configuration.
This file contains all the function prototypes for the subghz.c file.
Configuration of the debug.c instances.
Definitions for modules requiring utilities.