xref: /btstack/port/stm32-f4discovery-usb/Core/Inc/main.h (revision cd5f23a3250874824c01a2b3326a9522fea3f99f)
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   * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
11   * All rights reserved.</center></h2>
12   *
13   * This software component is licensed by ST under Ultimate Liberty license
14   * SLA0044, the "License"; You may not use this file except in compliance with
15   * the License. You may obtain a copy of the License at:
16   *                             www.st.com/SLA0044
17   *
18   ******************************************************************************
19   */
20 /* USER CODE END Header */
21 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __MAIN_H
24 #define __MAIN_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* Includes ------------------------------------------------------------------*/
31 #include "stm32f4xx_hal.h"
32 
33 /* Private includes ----------------------------------------------------------*/
34 /* USER CODE BEGIN Includes */
35 
36 /* USER CODE END Includes */
37 
38 /* Exported types ------------------------------------------------------------*/
39 /* USER CODE BEGIN ET */
40 
41 /* USER CODE END ET */
42 
43 /* Exported constants --------------------------------------------------------*/
44 /* USER CODE BEGIN EC */
45 
46 /* USER CODE END EC */
47 
48 /* Exported macro ------------------------------------------------------------*/
49 /* USER CODE BEGIN EM */
50 
51 /* USER CODE END EM */
52 
53 /* Exported functions prototypes ---------------------------------------------*/
54 void Error_Handler(void);
55 
56 /* USER CODE BEGIN EFP */
57 
58 /* USER CODE END EFP */
59 
60 /* Private defines -----------------------------------------------------------*/
61 #define CS_I2C_SPI_Pin GPIO_PIN_3
62 #define CS_I2C_SPI_GPIO_Port GPIOE
63 #define PC14_OSC32_IN_Pin GPIO_PIN_14
64 #define PC14_OSC32_IN_GPIO_Port GPIOC
65 #define PC15_OSC32_OUT_Pin GPIO_PIN_15
66 #define PC15_OSC32_OUT_GPIO_Port GPIOC
67 #define PH0_OSC_IN_Pin GPIO_PIN_0
68 #define PH0_OSC_IN_GPIO_Port GPIOH
69 #define PH1_OSC_OUT_Pin GPIO_PIN_1
70 #define PH1_OSC_OUT_GPIO_Port GPIOH
71 #define OTG_FS_PowerSwitchOn_Pin GPIO_PIN_0
72 #define OTG_FS_PowerSwitchOn_GPIO_Port GPIOC
73 #define PDM_OUT_Pin GPIO_PIN_3
74 #define PDM_OUT_GPIO_Port GPIOC
75 #define B1_Pin GPIO_PIN_0
76 #define B1_GPIO_Port GPIOA
77 #define I2S3_WS_Pin GPIO_PIN_4
78 #define I2S3_WS_GPIO_Port GPIOA
79 #define SPI1_SCK_Pin GPIO_PIN_5
80 #define SPI1_SCK_GPIO_Port GPIOA
81 #define SPI1_MISO_Pin GPIO_PIN_6
82 #define SPI1_MISO_GPIO_Port GPIOA
83 #define SPI1_MOSI_Pin GPIO_PIN_7
84 #define SPI1_MOSI_GPIO_Port GPIOA
85 #define BOOT1_Pin GPIO_PIN_2
86 #define BOOT1_GPIO_Port GPIOB
87 #define CLK_IN_Pin GPIO_PIN_10
88 #define CLK_IN_GPIO_Port GPIOB
89 #define LD4_Pin GPIO_PIN_12
90 #define LD4_GPIO_Port GPIOD
91 #define LD3_Pin GPIO_PIN_13
92 #define LD3_GPIO_Port GPIOD
93 #define LD5_Pin GPIO_PIN_14
94 #define LD5_GPIO_Port GPIOD
95 #define LD6_Pin GPIO_PIN_15
96 #define LD6_GPIO_Port GPIOD
97 #define I2S3_MCK_Pin GPIO_PIN_7
98 #define I2S3_MCK_GPIO_Port GPIOC
99 #define VBUS_FS_Pin GPIO_PIN_9
100 #define VBUS_FS_GPIO_Port GPIOA
101 #define OTG_FS_ID_Pin GPIO_PIN_10
102 #define OTG_FS_ID_GPIO_Port GPIOA
103 #define OTG_FS_DM_Pin GPIO_PIN_11
104 #define OTG_FS_DM_GPIO_Port GPIOA
105 #define OTG_FS_DP_Pin GPIO_PIN_12
106 #define OTG_FS_DP_GPIO_Port GPIOA
107 #define SWDIO_Pin GPIO_PIN_13
108 #define SWDIO_GPIO_Port GPIOA
109 #define SWCLK_Pin GPIO_PIN_14
110 #define SWCLK_GPIO_Port GPIOA
111 #define I2S3_SCK_Pin GPIO_PIN_10
112 #define I2S3_SCK_GPIO_Port GPIOC
113 #define I2S3_SD_Pin GPIO_PIN_12
114 #define I2S3_SD_GPIO_Port GPIOC
115 #define Audio_RST_Pin GPIO_PIN_4
116 #define Audio_RST_GPIO_Port GPIOD
117 #define OTG_FS_OverCurrent_Pin GPIO_PIN_5
118 #define OTG_FS_OverCurrent_GPIO_Port GPIOD
119 #define SWO_Pin GPIO_PIN_3
120 #define SWO_GPIO_Port GPIOB
121 #define Audio_SCL_Pin GPIO_PIN_6
122 #define Audio_SCL_GPIO_Port GPIOB
123 #define Audio_SDA_Pin GPIO_PIN_9
124 #define Audio_SDA_GPIO_Port GPIOB
125 #define MEMS_INT2_Pin GPIO_PIN_1
126 #define MEMS_INT2_GPIO_Port GPIOE
127 /* USER CODE BEGIN Private defines */
128 
129 /* USER CODE END Private defines */
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
135 #endif /* __MAIN_H */
136 
137 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
138