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

: Header for main.c file. This file contains the common defines of the application. More...

#include "stm32f7xx_hal.h"
#include <stdio.h>
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USER_Btn_Pin   GPIO_PIN_13
 
#define USER_Btn_GPIO_Port   GPIOC
 
#define MCO_Pin   GPIO_PIN_0
 
#define MCO_GPIO_Port   GPIOH
 
#define STLK_RX_Pin   GPIO_PIN_8
 
#define STLK_RX_GPIO_Port   GPIOD
 
#define STLK_TX_Pin   GPIO_PIN_9
 
#define STLK_TX_GPIO_Port   GPIOD
 
#define USB_OverCurrent_Pin   GPIO_PIN_7
 
#define USB_OverCurrent_GPIO_Port   GPIOG
 
#define TMS_Pin   GPIO_PIN_13
 
#define TMS_GPIO_Port   GPIOA
 
#define TCK_Pin   GPIO_PIN_14
 
#define TCK_GPIO_Port   GPIOA
 
#define LD2_Pin   GPIO_PIN_7
 
#define LD2_GPIO_Port   GPIOB
 

Functions

void Error_Handler (void)
 This function is executed in case of error occurrence. More...
 

Detailed Description

: Header for main.c file. This file contains the common defines of the application.

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 main.h.

Macro Definition Documentation

◆ LD2_GPIO_Port

#define LD2_GPIO_Port   GPIOB

Definition at line 81 of file main.h.

◆ LD2_Pin

#define LD2_Pin   GPIO_PIN_7

Definition at line 80 of file main.h.

◆ MCO_GPIO_Port

#define MCO_GPIO_Port   GPIOH

Definition at line 69 of file main.h.

◆ MCO_Pin

#define MCO_Pin   GPIO_PIN_0

Definition at line 68 of file main.h.

◆ STLK_RX_GPIO_Port

#define STLK_RX_GPIO_Port   GPIOD

Definition at line 71 of file main.h.

◆ STLK_RX_Pin

#define STLK_RX_Pin   GPIO_PIN_8

Definition at line 70 of file main.h.

◆ STLK_TX_GPIO_Port

#define STLK_TX_GPIO_Port   GPIOD

Definition at line 73 of file main.h.

◆ STLK_TX_Pin

#define STLK_TX_Pin   GPIO_PIN_9

Definition at line 72 of file main.h.

◆ TCK_GPIO_Port

#define TCK_GPIO_Port   GPIOA

Definition at line 79 of file main.h.

◆ TCK_Pin

#define TCK_Pin   GPIO_PIN_14

Definition at line 78 of file main.h.

◆ TMS_GPIO_Port

#define TMS_GPIO_Port   GPIOA

Definition at line 77 of file main.h.

◆ TMS_Pin

#define TMS_Pin   GPIO_PIN_13

Definition at line 76 of file main.h.

◆ USB_OverCurrent_GPIO_Port

#define USB_OverCurrent_GPIO_Port   GPIOG

Definition at line 75 of file main.h.

◆ USB_OverCurrent_Pin

#define USB_OverCurrent_Pin   GPIO_PIN_7

Definition at line 74 of file main.h.

◆ USER_Btn_GPIO_Port

#define USER_Btn_GPIO_Port   GPIOC

Definition at line 67 of file main.h.

◆ USER_Btn_Pin

#define USER_Btn_Pin   GPIO_PIN_13

Definition at line 66 of file main.h.

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

This function is executed in case of error occurrence.

Return values
None

Definition at line 1411 of file main.c.

1412{
1413 /* USER CODE BEGIN Error_Handler_Debug */
1414 /* User can add his own implementation to report the HAL error return state */
1415
1416 #ifndef TEST_MODE
1417 __disable_irq();
1418 #endif
1419
1420 while (1)
1421 {
1422 printf("Error_Handler\r\n");
1423 }
1424 /* USER CODE END Error_Handler_Debug */
1425}
Here is the caller graph for this function: