L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
stm32wlxx_it.c
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file stm32wlxx_it.c
5 * @brief Interrupt Service Routines.
6 ******************************************************************************
7 * @attention
8 *
9 * Copyright (c) 2025 STMicroelectronics.
10 * All rights reserved.
11 *
12 * This software is licensed under terms that can be found in the LICENSE file
13 * in the root directory of this software component.
14 * If no LICENSE file comes with this software, it is provided AS-IS.
15 *
16 ******************************************************************************
17 */
18/* USER CODE END Header */
19
20/* Includes ------------------------------------------------------------------*/
21#include "main.h"
22#include "stm32wlxx_it.h"
23/* Private includes ----------------------------------------------------------*/
24/* USER CODE BEGIN Includes */
25/* USER CODE END Includes */
26
27/* Private typedef -----------------------------------------------------------*/
28/* USER CODE BEGIN TD */
29
30/* USER CODE END TD */
31
32/* Private define ------------------------------------------------------------*/
33/* USER CODE BEGIN PD */
34
35/* USER CODE END PD */
36
37/* Private macro -------------------------------------------------------------*/
38/* USER CODE BEGIN PM */
39
40/* USER CODE END PM */
41
42/* Private variables ---------------------------------------------------------*/
43/* USER CODE BEGIN PV */
44
45/* USER CODE END PV */
46
47/* Private function prototypes -----------------------------------------------*/
48/* USER CODE BEGIN PFP */
49
50/* USER CODE END PFP */
51
52/* Private user code ---------------------------------------------------------*/
53/* USER CODE BEGIN 0 */
54
55/* USER CODE END 0 */
56
57/* External variables --------------------------------------------------------*/
58extern ADC_HandleTypeDef hadc;
59extern RTC_HandleTypeDef hrtc;
60extern SUBGHZ_HandleTypeDef hsubghz;
61extern DMA_HandleTypeDef hdma_usart1_tx;
62extern UART_HandleTypeDef huart1;
63/* USER CODE BEGIN EV */
64
65/* USER CODE END EV */
66
67/******************************************************************************/
68/* Cortex Processor Interruption and Exception Handlers */
69/******************************************************************************/
70/**
71 * @brief This function handles Non maskable interrupt.
72 */
73void NMI_Handler(void)
74{
75 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
76
77 /* USER CODE END NonMaskableInt_IRQn 0 */
78 /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
79 while (1)
80 {
81 }
82 /* USER CODE END NonMaskableInt_IRQn 1 */
83}
84
85/**
86 * @brief This function handles Hard fault interrupt.
87 */
89{
90 /* USER CODE BEGIN HardFault_IRQn 0 */
91
92 /* USER CODE END HardFault_IRQn 0 */
93 while (1)
94 {
95 /* USER CODE BEGIN W1_HardFault_IRQn 0 */
96 /* USER CODE END W1_HardFault_IRQn 0 */
97 }
98}
99
100/**
101 * @brief This function handles Memory management fault.
102 */
104{
105 /* USER CODE BEGIN MemoryManagement_IRQn 0 */
106
107 /* USER CODE END MemoryManagement_IRQn 0 */
108 while (1)
109 {
110 /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
111 /* USER CODE END W1_MemoryManagement_IRQn 0 */
112 }
113}
114
115/**
116 * @brief This function handles Prefetch fault, memory access fault.
117 */
119{
120 /* USER CODE BEGIN BusFault_IRQn 0 */
121
122 /* USER CODE END BusFault_IRQn 0 */
123 while (1)
124 {
125 /* USER CODE BEGIN W1_BusFault_IRQn 0 */
126 /* USER CODE END W1_BusFault_IRQn 0 */
127 }
128}
129
130/**
131 * @brief This function handles Undefined instruction or illegal state.
132 */
134{
135 /* USER CODE BEGIN UsageFault_IRQn 0 */
136
137 /* USER CODE END UsageFault_IRQn 0 */
138 while (1)
139 {
140 /* USER CODE BEGIN W1_UsageFault_IRQn 0 */
141 /* USER CODE END W1_UsageFault_IRQn 0 */
142 }
143}
144
145/**
146 * @brief This function handles System service call via SWI instruction.
147 */
148void SVC_Handler(void)
149{
150 /* USER CODE BEGIN SVCall_IRQn 0 */
151
152 /* USER CODE END SVCall_IRQn 0 */
153 /* USER CODE BEGIN SVCall_IRQn 1 */
154
155 /* USER CODE END SVCall_IRQn 1 */
156}
157
158/**
159 * @brief This function handles Debug monitor.
160 */
162{
163 /* USER CODE BEGIN DebugMonitor_IRQn 0 */
164
165 /* USER CODE END DebugMonitor_IRQn 0 */
166 /* USER CODE BEGIN DebugMonitor_IRQn 1 */
167
168 /* USER CODE END DebugMonitor_IRQn 1 */
169}
170
171/**
172 * @brief This function handles Pendable request for system service.
173 */
175{
176 /* USER CODE BEGIN PendSV_IRQn 0 */
177
178 /* USER CODE END PendSV_IRQn 0 */
179 /* USER CODE BEGIN PendSV_IRQn 1 */
180
181 /* USER CODE END PendSV_IRQn 1 */
182}
183
184/**
185 * @brief This function handles System tick timer.
186 */
188{
189 /* USER CODE BEGIN SysTick_IRQn 0 */
190
191 /* USER CODE END SysTick_IRQn 0 */
192 /* USER CODE BEGIN SysTick_IRQn 1 */
193
194 /* USER CODE END SysTick_IRQn 1 */
195}
196
197/******************************************************************************/
198/* STM32WLxx Peripheral Interrupt Handlers */
199/* Add here the Interrupt Handlers for the used peripherals. */
200/* For the available peripheral interrupt handler names, */
201/* please refer to the startup file (startup_stm32wlxx.s). */
202/******************************************************************************/
203
204/**
205 * @brief This function handles EXTI Line 0 Interrupt.
206 */
208{
209 /* USER CODE BEGIN EXTI0_IRQn 0 */
210
211 /* USER CODE END EXTI0_IRQn 0 */
212 HAL_GPIO_EXTI_IRQHandler(NFC_INT_Pin);
213 /* USER CODE BEGIN EXTI0_IRQn 1 */
214
215 /* USER CODE END EXTI0_IRQn 1 */
216}
217
218/**
219 * @brief This function handles DMA1 Channel 1 Interrupt.
220 */
222{
223 /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
224
225 /* USER CODE END DMA1_Channel1_IRQn 0 */
226 HAL_DMA_IRQHandler(&hdma_usart1_tx);
227 /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
228
229 /* USER CODE END DMA1_Channel1_IRQn 1 */
230}
231
232/**
233 * @brief This function handles ADC Interrupt.
234 */
236{
237 /* USER CODE BEGIN ADC_IRQn 0 */
238
239 /* USER CODE END ADC_IRQn 0 */
240 HAL_ADC_IRQHandler(&hadc);
241 /* USER CODE BEGIN ADC_IRQn 1 */
242
243 /* USER CODE END ADC_IRQn 1 */
244}
245
246/**
247 * @brief This function handles USART1 Interrupt.
248 */
250{
251 /* USER CODE BEGIN USART1_IRQn 0 */
252
253 /* USER CODE END USART1_IRQn 0 */
254 HAL_UART_IRQHandler(&huart1);
255 /* USER CODE BEGIN USART1_IRQn 1 */
256
257 /* USER CODE END USART1_IRQn 1 */
258}
259
260/**
261 * @brief This function handles RTC Alarms (A and B) Interrupt.
262 */
264{
265 /* USER CODE BEGIN RTC_Alarm_IRQn 0 */
266
267 if (hrtc.IsEnabled.RtcFeatures == 0)
268 hrtc.IsEnabled.RtcFeatures = 1; // MT 26.1.2026 - this must be, otherwise interrupt over interrupt
269
270 /* USER CODE END RTC_Alarm_IRQn 0 */
271 HAL_RTC_AlarmIRQHandler(&hrtc);
272 /* USER CODE BEGIN RTC_Alarm_IRQn 1 */
273
274 /* USER CODE END RTC_Alarm_IRQn 1 */
275}
276
277/**
278 * @brief This function handles SUBGHZ Radio Interrupt.
279 */
281{
282 /* USER CODE BEGIN SUBGHZ_Radio_IRQn 0 */
283
284 /* USER CODE END SUBGHZ_Radio_IRQn 0 */
285 HAL_SUBGHZ_IRQHandler(&hsubghz);
286 /* USER CODE BEGIN SUBGHZ_Radio_IRQn 1 */
287
288 /* USER CODE END SUBGHZ_Radio_IRQn 1 */
289}
290
291/* USER CODE BEGIN 1 */
292
293
294/* USER CODE END 1 */
ADC_HandleTypeDef hadc
Definition adc.c:27
: Header for main.c file. This file contains the common defines of the application.
#define NFC_INT_Pin
Definition main.h:139
RTC_HandleTypeDef hrtc
Definition rtc.c:27
void ADC_IRQHandler(void)
This function handles ADC Interrupt.
void EXTI0_IRQHandler(void)
This function handles EXTI Line 0 Interrupt.
void UsageFault_Handler(void)
This function handles Undefined instruction or illegal state.
void HardFault_Handler(void)
This function handles Hard fault interrupt.
void MemManage_Handler(void)
This function handles Memory management fault.
void SVC_Handler(void)
This function handles System service call via SWI instruction.
void RTC_Alarm_IRQHandler(void)
This function handles RTC Alarms (A and B) Interrupt.
DMA_HandleTypeDef hdma_usart1_tx
Definition usart.c:31
void SUBGHZ_Radio_IRQHandler(void)
This function handles SUBGHZ Radio Interrupt.
void PendSV_Handler(void)
This function handles Pendable request for system service.
void NMI_Handler(void)
This function handles Non maskable interrupt.
void USART1_IRQHandler(void)
This function handles USART1 Interrupt.
void DMA1_Channel1_IRQHandler(void)
This function handles DMA1 Channel 1 Interrupt.
void BusFault_Handler(void)
This function handles Prefetch fault, memory access fault.
void SysTick_Handler(void)
This function handles System tick timer.
void DebugMon_Handler(void)
This function handles Debug monitor.
This file contains the headers of the interrupt handlers.
SUBGHZ_HandleTypeDef hsubghz
Definition subghz.c:27
UART_HandleTypeDef huart1
Definition usart.c:30