Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Functions
stm32f7xx_it.h File Reference

This file contains the headers of the interrupt handlers. More...

#include "../Inc/Systems/Comms/Can/Can.h"
Include dependency graph for stm32f7xx_it.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void NMI_Handler (void)
 This function handles Non maskable interrupt. More...
 
void HardFault_Handler (void)
 This function handles Hard fault interrupt. More...
 
void MemManage_Handler (void)
 This function handles Memory management fault. More...
 
void BusFault_Handler (void)
 This function handles Pre-fetch fault, memory access fault. More...
 
void UsageFault_Handler (void)
 This function handles Undefined instruction or illegal state. More...
 
void SVC_Handler (void)
 This function handles System service call via SWI instruction. More...
 
void DebugMon_Handler (void)
 This function handles Debug monitor. More...
 
void PendSV_Handler (void)
 This function handles Pendable request for system service. More...
 
void SysTick_Handler (void)
 This function handles System tick timer. More...
 
void CAN1_RX0_IRQHandler (void)
 This function handles CAN1 RX0 interrupts. More...
 
void DMA2_Stream0_IRQHandler (void)
 This function handles DMA2 stream0 global interrupt. More...
 
void DMA2_Stream1_IRQHandler (void)
 This function handles DMA2 stream1 global interrupt. More...
 
void DMA2_Stream2_IRQHandler (void)
 This function handles DMA2 stream2 global interrupt. More...
 
void CAN2_RX0_IRQHandler (void)
 This function handles CAN2 RX0 interrupts. More...
 
int send_CAN_message_helper (CANBus bus, CAN_TxHeaderTypeDef *TxHeader, uint8_t *data)
 
void HAL_CAN_RxFifo0MsgPendingCallback (CAN_HandleTypeDef *hcan)
 

Detailed Description

This file contains the headers of the interrupt handlers.

Attention

Copyright (c) 2024 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f7xx_it.h.

Function Documentation

◆ BusFault_Handler()

void BusFault_Handler ( void  )

This function handles Pre-fetch fault, memory access fault.

Definition at line 123 of file stm32f7xx_it.c.

124{
125 /* USER CODE BEGIN BusFault_IRQn 0 */
126
127 /* USER CODE END BusFault_IRQn 0 */
128 while (1)
129 {
130 /* USER CODE BEGIN W1_BusFault_IRQn 0 */
131 /* USER CODE END W1_BusFault_IRQn 0 */
132 }
133}

◆ CAN1_RX0_IRQHandler()

void CAN1_RX0_IRQHandler ( void  )

This function handles CAN1 RX0 interrupts.

Definition at line 213 of file stm32f7xx_it.c.

214{
215 /* USER CODE BEGIN CAN1_RX0_IRQn 0 */
216
217 /* USER CODE END CAN1_RX0_IRQn 0 */
218 HAL_CAN_IRQHandler(&hcan1);
219 /* USER CODE BEGIN CAN1_RX0_IRQn 1 */
220
221 /* USER CODE END CAN1_RX0_IRQn 1 */
222}
CAN_HandleTypeDef hcan1
Definition: main.c:51

◆ CAN2_RX0_IRQHandler()

void CAN2_RX0_IRQHandler ( void  )

This function handles CAN2 RX0 interrupts.

Definition at line 269 of file stm32f7xx_it.c.

270{
271 /* USER CODE BEGIN CAN2_RX0_IRQn 0 */
272
273 /* USER CODE END CAN2_RX0_IRQn 0 */
274 HAL_CAN_IRQHandler(&hcan2);
275 /* USER CODE BEGIN CAN2_RX0_IRQn 1 */
276
277 /* USER CODE END CAN2_RX0_IRQn 1 */
278}
CAN_HandleTypeDef hcan2
Definition: main.c:52

◆ DebugMon_Handler()

void DebugMon_Handler ( void  )

This function handles Debug monitor.

Definition at line 166 of file stm32f7xx_it.c.

167{
168 /* USER CODE BEGIN DebugMonitor_IRQn 0 */
169
170 /* USER CODE END DebugMonitor_IRQn 0 */
171 /* USER CODE BEGIN DebugMonitor_IRQn 1 */
172
173 /* USER CODE END DebugMonitor_IRQn 1 */
174}

◆ DMA2_Stream0_IRQHandler()

void DMA2_Stream0_IRQHandler ( void  )

This function handles DMA2 stream0 global interrupt.

Definition at line 227 of file stm32f7xx_it.c.

228{
229 /* USER CODE BEGIN DMA2_Stream0_IRQn 0 */
230
231 /* USER CODE END DMA2_Stream0_IRQn 0 */
232 HAL_DMA_IRQHandler(&hdma_adc1);
233 /* USER CODE BEGIN DMA2_Stream0_IRQn 1 */
234
235 /* USER CODE END DMA2_Stream0_IRQn 1 */
236}
DMA_HandleTypeDef hdma_adc1
Definition: main.c:47

◆ DMA2_Stream1_IRQHandler()

void DMA2_Stream1_IRQHandler ( void  )

This function handles DMA2 stream1 global interrupt.

Definition at line 241 of file stm32f7xx_it.c.

242{
243 /* USER CODE BEGIN DMA2_Stream1_IRQn 0 */
244
245 /* USER CODE END DMA2_Stream1_IRQn 0 */
246 HAL_DMA_IRQHandler(&hdma_adc3);
247 /* USER CODE BEGIN DMA2_Stream1_IRQn 1 */
248
249 /* USER CODE END DMA2_Stream1_IRQn 1 */
250}
DMA_HandleTypeDef hdma_adc3
Definition: AnalogSensor.h:46

◆ DMA2_Stream2_IRQHandler()

void DMA2_Stream2_IRQHandler ( void  )

This function handles DMA2 stream2 global interrupt.

Definition at line 255 of file stm32f7xx_it.c.

256{
257 /* USER CODE BEGIN DMA2_Stream2_IRQn 0 */
258
259 /* USER CODE END DMA2_Stream2_IRQn 0 */
260 HAL_DMA_IRQHandler(&hdma_adc2);
261 /* USER CODE BEGIN DMA2_Stream2_IRQn 1 */
262
263 /* USER CODE END DMA2_Stream2_IRQn 1 */
264}
DMA_HandleTypeDef hdma_adc2
Definition: AnalogSensor.h:46

◆ HAL_CAN_RxFifo0MsgPendingCallback()

void HAL_CAN_RxFifo0MsgPendingCallback ( CAN_HandleTypeDef *  hcan)

Definition at line 314 of file stm32f7xx_it.c.

315{
316 if (hcan == &hcan1) {
317 HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO0, &RxHeader1, RxData1);
319 } else if (hcan == &hcan2) {
320 HAL_CAN_GetRxMessage(hcan, CAN_RX_FIFO0, &RxHeader2, RxData2);
322 }
323}
@ CAN_1
Definition: Can.h:99
@ CAN_2
Definition: Can.h:100
void receive_CAN_message(CAN_RxHeaderTypeDef *header, uint8_t *data, CANBus bus)
Receives a CAN message.
Definition: Can.c:112
uint8_t RxData1[8]
Definition: stm32f7xx_it.c:48
uint8_t RxData2[8]
Definition: stm32f7xx_it.c:49
CAN_RxHeaderTypeDef RxHeader1
Definition: stm32f7xx_it.c:46
CAN_RxHeaderTypeDef RxHeader2
Definition: stm32f7xx_it.c:47
Here is the call graph for this function:

◆ HardFault_Handler()

void HardFault_Handler ( void  )

This function handles Hard fault interrupt.

Definition at line 93 of file stm32f7xx_it.c.

94{
95 /* USER CODE BEGIN HardFault_IRQn 0 */
96
97 /* USER CODE END HardFault_IRQn 0 */
98 while (1)
99 {
100 /* USER CODE BEGIN W1_HardFault_IRQn 0 */
101 /* USER CODE END W1_HardFault_IRQn 0 */
102 }
103}

◆ MemManage_Handler()

void MemManage_Handler ( void  )

This function handles Memory management fault.

Definition at line 108 of file stm32f7xx_it.c.

109{
110 /* USER CODE BEGIN MemoryManagement_IRQn 0 */
111
112 /* USER CODE END MemoryManagement_IRQn 0 */
113 while (1)
114 {
115 /* USER CODE BEGIN W1_MemoryManagement_IRQn 0 */
116 /* USER CODE END W1_MemoryManagement_IRQn 0 */
117 }
118}

◆ NMI_Handler()

void NMI_Handler ( void  )

This function handles Non maskable interrupt.

Definition at line 78 of file stm32f7xx_it.c.

79{
80 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
81
82 /* USER CODE END NonMaskableInt_IRQn 0 */
83 /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
84 while (1)
85 {
86 }
87 /* USER CODE END NonMaskableInt_IRQn 1 */
88}

◆ PendSV_Handler()

void PendSV_Handler ( void  )

This function handles Pendable request for system service.

Definition at line 179 of file stm32f7xx_it.c.

180{
181 /* USER CODE BEGIN PendSV_IRQn 0 */
182
183 /* USER CODE END PendSV_IRQn 0 */
184 /* USER CODE BEGIN PendSV_IRQn 1 */
185
186 /* USER CODE END PendSV_IRQn 1 */
187}

◆ send_CAN_message_helper()

int send_CAN_message_helper ( CANBus  bus,
CAN_TxHeaderTypeDef *  TxHeader,
uint8_t *  data 
)

Definition at line 292 of file stm32f7xx_it.c.

293{
294 uint32_t mailbox;
295 if (bus == CAN_1) {
296 if (HAL_CAN_AddTxMessage(&hcan1, TxHeader, data, &mailbox) != HAL_OK) {
297 uint32_t error = HAL_CAN_GetError(&hcan1);
298 printf("CAN Transmission Error: %lx\n", error);
299 return -1;
300 }
301 } else if (bus == CAN_2) {
302 if (HAL_CAN_AddTxMessage(&hcan2, TxHeader, data, &mailbox) != HAL_OK) {
303 uint32_t error = HAL_CAN_GetError(&hcan2);
304 printf("CAN Transmission Error: %lx\n", error);
305 return -1;
306 }
307 } else {
308 return -1;
309 }
310 return 0;
311}
Here is the caller graph for this function:

◆ SVC_Handler()

void SVC_Handler ( void  )

This function handles System service call via SWI instruction.

Definition at line 153 of file stm32f7xx_it.c.

154{
155 /* USER CODE BEGIN SVCall_IRQn 0 */
156
157 /* USER CODE END SVCall_IRQn 0 */
158 /* USER CODE BEGIN SVCall_IRQn 1 */
159
160 /* USER CODE END SVCall_IRQn 1 */
161}

◆ SysTick_Handler()

void SysTick_Handler ( void  )

This function handles System tick timer.

Definition at line 192 of file stm32f7xx_it.c.

193{
194 /* USER CODE BEGIN SysTick_IRQn 0 */
195
196 /* USER CODE END SysTick_IRQn 0 */
197 HAL_IncTick();
198 /* USER CODE BEGIN SysTick_IRQn 1 */
199
200 /* USER CODE END SysTick_IRQn 1 */
201}

◆ UsageFault_Handler()

void UsageFault_Handler ( void  )

This function handles Undefined instruction or illegal state.

Definition at line 138 of file stm32f7xx_it.c.

139{
140 /* USER CODE BEGIN UsageFault_IRQn 0 */
141
142 /* USER CODE END UsageFault_IRQn 0 */
143 while (1)
144 {
145 /* USER CODE BEGIN W1_UsageFault_IRQn 0 */
146 /* USER CODE END W1_UsageFault_IRQn 0 */
147 }
148}