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