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   ** This notice applies to any and all portions of this file
9   * that are not between comment pairs USER CODE BEGIN and
10   * USER CODE END. Other portions of this file, whether
11   * inserted by the user or by software development tools
12   * are owned by their respective copyright owners.
13   *
14   * COPYRIGHT(c) 2018 STMicroelectronics
15   *
16   * Redistribution and use in source and binary forms, with or without modification,
17   * are permitted provided that the following conditions are met:
18   *   1. Redistributions of source code must retain the above copyright notice,
19   *      this list of conditions and the following disclaimer.
20   *   2. Redistributions in binary form must reproduce the above copyright notice,
21   *      this list of conditions and the following disclaimer in the documentation
22   *      and/or other materials provided with the distribution.
23   *   3. Neither the name of STMicroelectronics nor the names of its contributors
24   *      may be used to endorse or promote products derived from this software
25   *      without specific prior written permission.
26   *
27   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
31   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
35   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37   *
38   ******************************************************************************
39   */
40 /* USER CODE END Header */
41 
42 /* Define to prevent recursive inclusion -------------------------------------*/
43 #ifndef __MAIN_H
44 #define __MAIN_H
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /* Includes ------------------------------------------------------------------*/
51 #include "stm32f7xx_hal.h"
52 
53 /* Private includes ----------------------------------------------------------*/
54 /* USER CODE BEGIN Includes */
55 
56 /* USER CODE END Includes */
57 
58 /* Exported types ------------------------------------------------------------*/
59 /* USER CODE BEGIN ET */
60 
61 /* USER CODE END ET */
62 
63 /* Exported constants --------------------------------------------------------*/
64 /* USER CODE BEGIN EC */
65 
66 /* USER CODE END EC */
67 
68 /* Exported macro ------------------------------------------------------------*/
69 /* USER CODE BEGIN EM */
70 
71 /* USER CODE END EM */
72 
73 /* Exported functions prototypes ---------------------------------------------*/
74 void Error_Handler(void);
75 
76 /* USER CODE BEGIN EFP */
77 
78 /* USER CODE END EFP */
79 
80 /* Private defines -----------------------------------------------------------*/
81 #define USER_Btn_Pin GPIO_PIN_13
82 #define USER_Btn_GPIO_Port GPIOC
83 #define MCO_Pin GPIO_PIN_0
84 #define MCO_GPIO_Port GPIOH
85 #define RMII_MDC_Pin GPIO_PIN_1
86 #define RMII_MDC_GPIO_Port GPIOC
87 #define RMII_REF_CLK_Pin GPIO_PIN_1
88 #define RMII_REF_CLK_GPIO_Port GPIOA
89 #define RMII_MDIO_Pin GPIO_PIN_2
90 #define RMII_MDIO_GPIO_Port GPIOA
91 #define RMII_CRS_DV_Pin GPIO_PIN_7
92 #define RMII_CRS_DV_GPIO_Port GPIOA
93 #define RMII_RXD0_Pin GPIO_PIN_4
94 #define RMII_RXD0_GPIO_Port GPIOC
95 #define RMII_RXD1_Pin GPIO_PIN_5
96 #define RMII_RXD1_GPIO_Port GPIOC
97 #define RMII_TXD1_Pin GPIO_PIN_13
98 #define RMII_TXD1_GPIO_Port GPIOB
99 #define LD3_Pin GPIO_PIN_14
100 #define LD3_GPIO_Port GPIOB
101 #define STLK_RX_Pin GPIO_PIN_8
102 #define STLK_RX_GPIO_Port GPIOD
103 #define STLK_TX_Pin GPIO_PIN_9
104 #define STLK_TX_GPIO_Port GPIOD
105 #define USB_PowerSwitchOn_Pin GPIO_PIN_6
106 #define USB_PowerSwitchOn_GPIO_Port GPIOG
107 #define USB_OverCurrent_Pin GPIO_PIN_7
108 #define USB_OverCurrent_GPIO_Port GPIOG
109 #define USB_SOF_Pin GPIO_PIN_8
110 #define USB_SOF_GPIO_Port GPIOA
111 #define USB_VBUS_Pin GPIO_PIN_9
112 #define USB_VBUS_GPIO_Port GPIOA
113 #define USB_ID_Pin GPIO_PIN_10
114 #define USB_ID_GPIO_Port GPIOA
115 #define USB_DM_Pin GPIO_PIN_11
116 #define USB_DM_GPIO_Port GPIOA
117 #define USB_DP_Pin GPIO_PIN_12
118 #define USB_DP_GPIO_Port GPIOA
119 #define TMS_Pin GPIO_PIN_13
120 #define TMS_GPIO_Port GPIOA
121 #define TCK_Pin GPIO_PIN_14
122 #define TCK_GPIO_Port GPIOA
123 #define RMII_TX_EN_Pin GPIO_PIN_11
124 #define RMII_TX_EN_GPIO_Port GPIOG
125 #define RMII_TXD0_Pin GPIO_PIN_13
126 #define RMII_TXD0_GPIO_Port GPIOG
127 #define SWO_Pin GPIO_PIN_3
128 #define SWO_GPIO_Port GPIOB
129 #define LD2_Pin GPIO_PIN_7
130 #define LD2_GPIO_Port GPIOB
131 /* USER CODE BEGIN Private defines */
132 
133 /* USER CODE END Private defines */
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif /* __MAIN_H */
140 
141 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
142