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 LD3_Pin   GPIO_PIN_14
 
#define LD3_GPIO_Port   GPIOB
 
#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_PowerSwitchOn_Pin   GPIO_PIN_6
 
#define USB_PowerSwitchOn_GPIO_Port   GPIOG
 
#define USB_OverCurrent_Pin   GPIO_PIN_7
 
#define USB_OverCurrent_GPIO_Port   GPIOG
 
#define USB_SOF_Pin   GPIO_PIN_8
 
#define USB_SOF_GPIO_Port   GPIOA
 
#define USB_VBUS_Pin   GPIO_PIN_9
 
#define USB_VBUS_GPIO_Port   GPIOA
 
#define USB_DM_Pin   GPIO_PIN_11
 
#define USB_DM_GPIO_Port   GPIOA
 
#define USB_DP_Pin   GPIO_PIN_12
 
#define USB_DP_GPIO_Port   GPIOA
 
#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 93 of file main.h.

◆ LD2_Pin

#define LD2_Pin   GPIO_PIN_7

Definition at line 92 of file main.h.

◆ LD3_GPIO_Port

#define LD3_GPIO_Port   GPIOB

Definition at line 71 of file main.h.

◆ LD3_Pin

#define LD3_Pin   GPIO_PIN_14

Definition at line 70 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 73 of file main.h.

◆ STLK_RX_Pin

#define STLK_RX_Pin   GPIO_PIN_8

Definition at line 72 of file main.h.

◆ STLK_TX_GPIO_Port

#define STLK_TX_GPIO_Port   GPIOD

Definition at line 75 of file main.h.

◆ STLK_TX_Pin

#define STLK_TX_Pin   GPIO_PIN_9

Definition at line 74 of file main.h.

◆ TCK_GPIO_Port

#define TCK_GPIO_Port   GPIOA

Definition at line 91 of file main.h.

◆ TCK_Pin

#define TCK_Pin   GPIO_PIN_14

Definition at line 90 of file main.h.

◆ TMS_GPIO_Port

#define TMS_GPIO_Port   GPIOA

Definition at line 89 of file main.h.

◆ TMS_Pin

#define TMS_Pin   GPIO_PIN_13

Definition at line 88 of file main.h.

◆ USB_DM_GPIO_Port

#define USB_DM_GPIO_Port   GPIOA

Definition at line 85 of file main.h.

◆ USB_DM_Pin

#define USB_DM_Pin   GPIO_PIN_11

Definition at line 84 of file main.h.

◆ USB_DP_GPIO_Port

#define USB_DP_GPIO_Port   GPIOA

Definition at line 87 of file main.h.

◆ USB_DP_Pin

#define USB_DP_Pin   GPIO_PIN_12

Definition at line 86 of file main.h.

◆ USB_OverCurrent_GPIO_Port

#define USB_OverCurrent_GPIO_Port   GPIOG

Definition at line 79 of file main.h.

◆ USB_OverCurrent_Pin

#define USB_OverCurrent_Pin   GPIO_PIN_7

Definition at line 78 of file main.h.

◆ USB_PowerSwitchOn_GPIO_Port

#define USB_PowerSwitchOn_GPIO_Port   GPIOG

Definition at line 77 of file main.h.

◆ USB_PowerSwitchOn_Pin

#define USB_PowerSwitchOn_Pin   GPIO_PIN_6

Definition at line 76 of file main.h.

◆ USB_SOF_GPIO_Port

#define USB_SOF_GPIO_Port   GPIOA

Definition at line 81 of file main.h.

◆ USB_SOF_Pin

#define USB_SOF_Pin   GPIO_PIN_8

Definition at line 80 of file main.h.

◆ USB_VBUS_GPIO_Port

#define USB_VBUS_GPIO_Port   GPIOA

Definition at line 83 of file main.h.

◆ USB_VBUS_Pin

#define USB_VBUS_Pin   GPIO_PIN_9

Definition at line 82 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 1178 of file main.c.

1179{
1180 /* USER CODE BEGIN Error_Handler_Debug */
1181 /* User can add his own implementation to report the HAL error return state */
1182
1183 #ifndef TEST_MODE
1184 __disable_irq();
1185 #endif
1186
1187 while (1)
1188 {
1189 }
1190 /* USER CODE END Error_Handler_Debug */
1191}
Here is the caller graph for this function: