Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
main.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
19
/* USER CODE END Header */
20
21
/* Define to prevent recursive inclusion -------------------------------------*/
22
#ifndef __MAIN_H
23
#define __MAIN_H
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* Includes ------------------------------------------------------------------*/
30
/* USER CODE BEGIN Includes */
31
32
/* Skip STM32 HAL includes if STM32_HAL_DISABLED is defined */
33
#include "
stm32f7xx_hal.h
"
34
35
36
/* USER CODE END Includes */
37
38
/* Private includes ----------------------------------------------------------*/
39
/* USER CODE BEGIN Includes */
40
#include <stdio.h>
41
/* USER CODE END Includes */
42
43
/* Exported types ------------------------------------------------------------*/
44
/* USER CODE BEGIN ET */
45
46
/* USER CODE END ET */
47
48
/* Exported constants --------------------------------------------------------*/
49
/* USER CODE BEGIN EC */
50
51
/* USER CODE END EC */
52
53
/* Exported macro ------------------------------------------------------------*/
54
/* USER CODE BEGIN EM */
55
56
/* USER CODE END EM */
57
58
/* Exported functions prototypes ---------------------------------------------*/
59
void
Error_Handler
(
void
);
60
61
/* USER CODE BEGIN EFP */
62
63
/* USER CODE END EFP */
64
65
/* Private defines -----------------------------------------------------------*/
66
#define USER_Btn_Pin GPIO_PIN_13
67
#define USER_Btn_GPIO_Port GPIOC
68
#define MCO_Pin GPIO_PIN_0
69
#define MCO_GPIO_Port GPIOH
70
#define LD3_Pin GPIO_PIN_14
71
#define LD3_GPIO_Port GPIOB
72
#define STLK_RX_Pin GPIO_PIN_8
73
#define STLK_RX_GPIO_Port GPIOD
74
#define STLK_TX_Pin GPIO_PIN_9
75
#define STLK_TX_GPIO_Port GPIOD
76
#define USB_PowerSwitchOn_Pin GPIO_PIN_6
77
#define USB_PowerSwitchOn_GPIO_Port GPIOG
78
#define USB_OverCurrent_Pin GPIO_PIN_7
79
#define USB_OverCurrent_GPIO_Port GPIOG
80
#define USB_SOF_Pin GPIO_PIN_8
81
#define USB_SOF_GPIO_Port GPIOA
82
#define USB_VBUS_Pin GPIO_PIN_9
83
#define USB_VBUS_GPIO_Port GPIOA
84
#define USB_DM_Pin GPIO_PIN_11
85
#define USB_DM_GPIO_Port GPIOA
86
#define USB_DP_Pin GPIO_PIN_12
87
#define USB_DP_GPIO_Port GPIOA
88
#define TMS_Pin GPIO_PIN_13
89
#define TMS_GPIO_Port GPIOA
90
#define TCK_Pin GPIO_PIN_14
91
#define TCK_GPIO_Port GPIOA
92
#define LD2_Pin GPIO_PIN_7
93
#define LD2_GPIO_Port GPIOB
94
95
/* USER CODE BEGIN Private defines */
96
97
/* USER CODE END Private defines */
98
99
#ifdef __cplusplus
100
}
101
#endif
102
103
#endif
/* __MAIN_H */
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition:
main.c:1178
stm32f7xx_hal.h
Generated by
1.9.5