1 | /* USER CODE BEGIN Header */ |
---|
2 | /** |
---|
3 | ****************************************************************************** |
---|
4 | * @file : main.h |
---|
5 | * @brief : Header for main.c file. |
---|
6 | * This file contains the common defines of the application. |
---|
7 | ****************************************************************************** |
---|
8 | * @attention |
---|
9 | * |
---|
10 | * Copyright (c) 2024 STMicroelectronics. |
---|
11 | * All rights reserved. |
---|
12 | * |
---|
13 | * This software is licensed under terms that can be found in the LICENSE file |
---|
14 | * in the root directory of this software component. |
---|
15 | * If no LICENSE file comes with this software, it is provided AS-IS. |
---|
16 | * |
---|
17 | ****************************************************************************** |
---|
18 | */ |
---|
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 | #include "stm32h7xx_hal.h" |
---|
31 | |
---|
32 | /* Private includes ----------------------------------------------------------*/ |
---|
33 | /* USER CODE BEGIN Includes */ |
---|
34 | |
---|
35 | /* USER CODE END Includes */ |
---|
36 | |
---|
37 | /* Exported types ------------------------------------------------------------*/ |
---|
38 | /* USER CODE BEGIN ET */ |
---|
39 | |
---|
40 | /* USER CODE END ET */ |
---|
41 | |
---|
42 | /* Exported constants --------------------------------------------------------*/ |
---|
43 | /* USER CODE BEGIN EC */ |
---|
44 | |
---|
45 | /* USER CODE END EC */ |
---|
46 | |
---|
47 | /* Exported macro ------------------------------------------------------------*/ |
---|
48 | /* USER CODE BEGIN EM */ |
---|
49 | |
---|
50 | /* USER CODE END EM */ |
---|
51 | |
---|
52 | /* Exported functions prototypes ---------------------------------------------*/ |
---|
53 | void Error_Handler(void); |
---|
54 | |
---|
55 | /* USER CODE BEGIN EFP */ |
---|
56 | |
---|
57 | /* USER CODE END EFP */ |
---|
58 | |
---|
59 | /* Private defines -----------------------------------------------------------*/ |
---|
60 | #define TX1_LED_Pin GPIO_PIN_6 |
---|
61 | #define TX1_LED_GPIO_Port GPIOE |
---|
62 | #define POWER_4V_EN_Pin GPIO_PIN_15 |
---|
63 | #define POWER_4V_EN_GPIO_Port GPIOF |
---|
64 | #define POWER_5V_EN_Pin GPIO_PIN_0 |
---|
65 | #define POWER_5V_EN_GPIO_Port GPIOG |
---|
66 | #define POWER_10V_EN_Pin GPIO_PIN_1 |
---|
67 | #define POWER_10V_EN_GPIO_Port GPIOG |
---|
68 | #define POWER_15V_EN_Pin GPIO_PIN_7 |
---|
69 | #define POWER_15V_EN_GPIO_Port GPIOE |
---|
70 | #define SPI4_NSS_DISPLAY_Pin GPIO_PIN_11 |
---|
71 | #define SPI4_NSS_DISPLAY_GPIO_Port GPIOE |
---|
72 | #define SPI4_SCK_DISPLAY_Pin GPIO_PIN_12 |
---|
73 | #define SPI4_SCK_DISPLAY_GPIO_Port GPIOE |
---|
74 | #define PWM_DISPLAY_LIGHT_Pin GPIO_PIN_13 |
---|
75 | #define PWM_DISPLAY_LIGHT_GPIO_Port GPIOE |
---|
76 | #define SPI4_MOSI_DISPLAY_Pin GPIO_PIN_14 |
---|
77 | #define SPI4_MOSI_DISPLAY_GPIO_Port GPIOE |
---|
78 | #define RST_DISPLAY_Pin GPIO_PIN_15 |
---|
79 | #define RST_DISPLAY_GPIO_Port GPIOE |
---|
80 | #define GSM_PWR_Pin GPIO_PIN_10 |
---|
81 | #define GSM_PWR_GPIO_Port GPIOD |
---|
82 | #define GSM_STATUS_Pin GPIO_PIN_13 |
---|
83 | #define GSM_STATUS_GPIO_Port GPIOD |
---|
84 | #define SD_DETECT_Pin GPIO_PIN_8 |
---|
85 | #define SD_DETECT_GPIO_Port GPIOA |
---|
86 | #define OUTPUT_ON_LED_Pin GPIO_PIN_7 |
---|
87 | #define OUTPUT_ON_LED_GPIO_Port GPIOD |
---|
88 | #define ERROR_LED_Pin GPIO_PIN_9 |
---|
89 | #define ERROR_LED_GPIO_Port GPIOG |
---|
90 | #define CHARGE_LED_Pin GPIO_PIN_10 |
---|
91 | #define CHARGE_LED_GPIO_Port GPIOG |
---|
92 | #define RX2_LED_Pin GPIO_PIN_11 |
---|
93 | #define RX2_LED_GPIO_Port GPIOG |
---|
94 | #define RX1_LED_Pin GPIO_PIN_12 |
---|
95 | #define RX1_LED_GPIO_Port GPIOG |
---|
96 | #define TX2_LED_Pin GPIO_PIN_13 |
---|
97 | #define TX2_LED_GPIO_Port GPIOG |
---|
98 | #define BUZZER_Pin GPIO_PIN_15 |
---|
99 | #define BUZZER_GPIO_Port GPIOG |
---|
100 | |
---|
101 | /* USER CODE BEGIN Private defines */ |
---|
102 | |
---|
103 | /* USER CODE END Private defines */ |
---|
104 | |
---|
105 | #ifdef __cplusplus |
---|
106 | } |
---|
107 | #endif |
---|
108 | |
---|
109 | #endif /* __MAIN_H */ |
---|