Go to the documentation of this file.
38 #ifndef __STM32F769I_DISCOVERY_H
39 #define __STM32F769I_DISCOVERY_H
68 #if !defined (USE_STM32F769I_DISCO)
69 #define USE_STM32F769I_DISCO
91 #define BUTTON_USER BUTTON_WAKEUP
136 #define LEDn ((uint8_t)2)
140 #define LED1_GPIO_PORT ((GPIO_TypeDef*)GPIOJ)
141 #define LED2_GPIO_PORT ((GPIO_TypeDef*)GPIOJ)
143 #define LEDx_GPIO_CLK_ENABLE() __HAL_RCC_GPIOJ_CLK_ENABLE()
144 #define LEDx_GPIO_CLK_DISABLE() __HAL_RCC_GPIOJ_CLK_DISABLE()
146 #define LED1_PIN ((uint32_t)GPIO_PIN_13)
147 #define LED2_PIN ((uint32_t)GPIO_PIN_5)
157 #define BUTTONn ((uint8_t)1)
162 #define WAKEUP_BUTTON_PIN GPIO_PIN_0
163 #define WAKEUP_BUTTON_GPIO_PORT GPIOA
164 #define WAKEUP_BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE()
165 #define WAKEUP_BUTTON_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE()
166 #define WAKEUP_BUTTON_EXTI_IRQn EXTI0_IRQn
169 #define USER_BUTTON_PIN WAKEUP_BUTTON_PIN
170 #define USER_BUTTON_GPIO_PORT WAKEUP_BUTTON_GPIO_PORT
171 #define USER_BUTTON_GPIO_CLK_ENABLE() WAKEUP_BUTTON_GPIO_CLK_ENABLE()
172 #define USER_BUTTON_GPIO_CLK_DISABLE() WAKEUP_BUTTON_GPIO_CLK_DISABLE()
173 #define USER_BUTTON_EXTI_IRQn WAKEUP_BUTTON_EXTI_IRQn
175 #define BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE()
184 #define OTG_HS_OVER_CURRENT_PIN GPIO_PIN_4
185 #define OTG_HS_OVER_CURRENT_PORT GPIOD
186 #define OTG_HS_OVER_CURRENT_PORT_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE()
191 #define SD_DETECT_PIN ((uint32_t)GPIO_PIN_15)
192 #define SD_DETECT_GPIO_PORT ((GPIO_TypeDef*)GPIOI)
193 #define SD_DETECT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE()
194 #define SD_DETECT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOI_CLK_DISABLE()
195 #define SD_DETECT_EXTI_IRQn EXTI15_10_IRQn
200 #define TS_INT_PIN ((uint32_t)GPIO_PIN_13)
201 #define TS_INT_GPIO_PORT ((GPIO_TypeDef*)GPIOI)
202 #define TS_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOI_CLK_ENABLE()
203 #define TS_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOI_CLK_DISABLE()
204 #define TS_INT_EXTI_IRQn EXTI15_10_IRQn
209 #define TS_I2C_ADDRESS ((uint16_t)0x54)
214 #define TS_I2C_ADDRESS_A02 ((uint16_t)0x70)
219 #define LCD_DSI_ADDRESS TS_I2C_ADDRESS
224 #define LCD_DSI_ADDRESS_A02 TS_I2C_ADDRESS_A02
229 #define AUDIO_I2C_ADDRESS ((uint16_t)0x34)
234 #define EEPROM_I2C_ADDRESS_A01 ((uint16_t)0xA0)
239 #define EEPROM_I2C_ADDRESS_A02 ((uint16_t)0xA6)
246 #define DISCOVERY_AUDIO_I2Cx I2C4
247 #define DISCOVERY_AUDIO_I2Cx_CLK_ENABLE() __HAL_RCC_I2C4_CLK_ENABLE()
248 #define DISCOVERY_AUDIO_I2Cx_SCL_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE()
249 #define DISCOVERY_AUDIO_I2Cx_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
251 #define DISCOVERY_AUDIO_I2Cx_FORCE_RESET() __HAL_RCC_I2C4_FORCE_RESET()
252 #define DISCOVERY_AUDIO_I2Cx_RELEASE_RESET() __HAL_RCC_I2C4_RELEASE_RESET()
256 #define DISCOVERY_AUDIO_I2Cx_SCL_PIN GPIO_PIN_12
257 #define DISCOVERY_AUDIO_I2Cx_SCL_AF GPIO_AF4_I2C4
258 #define DISCOVERY_AUDIO_I2Cx_SCL_GPIO_PORT GPIOD
259 #define DISCOVERY_AUDIO_I2Cx_SDA_PIN GPIO_PIN_7
260 #define DISCOVERY_AUDIO_I2Cx_SDA_AF GPIO_AF11_I2C4
261 #define DISCOVERY_AUDIO_I2Cx_SDA_GPIO_PORT GPIOB
264 #define DISCOVERY_AUDIO_I2Cx_EV_IRQn I2C4_EV_IRQn
265 #define DISCOVERY_AUDIO_I2Cx_ER_IRQn I2C4_ER_IRQn
272 #define DISCOVERY_EXT_I2Cx I2C1
273 #define DISCOVERY_EXT_I2Cx_CLK_ENABLE() __HAL_RCC_I2C1_CLK_ENABLE()
274 #define DISCOVERY_DMAx_CLK_ENABLE() __HAL_RCC_DMA1_CLK_ENABLE()
275 #define DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
277 #define DISCOVERY_EXT_I2Cx_FORCE_RESET() __HAL_RCC_I2C1_FORCE_RESET()
278 #define DISCOVERY_EXT_I2Cx_RELEASE_RESET() __HAL_RCC_I2C1_RELEASE_RESET()
282 #define DISCOVERY_EXT_I2Cx_SCL_PIN GPIO_PIN_8
283 #define DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_PORT GPIOB
284 #define DISCOVERY_EXT_I2Cx_SCL_SDA_AF GPIO_AF4_I2C1
285 #define DISCOVERY_EXT_I2Cx_SDA_PIN GPIO_PIN_9
289 #define DISCOVERY_EXT_I2Cx_EV_IRQn I2C1_EV_IRQn
290 #define DISCOVERY_EXT_I2Cx_ER_IRQn I2C1_ER_IRQn
296 #ifndef DISCOVERY_I2Cx_TIMING
297 #define DISCOVERY_I2Cx_TIMING ((uint32_t)0x40912732)
uint32_t BSP_PB_GetState(Button_TypeDef Button)
Returns the selected Button state.
void BSP_LED_On(Led_TypeDef Led)
Turns selected LED On.
Button_TypeDef
Button_TypeDef STM32F769I_DISCOVERY board Buttons definitions.
Led_TypeDef
Led_TypeDef STM32F769I_DISCOVERY board leds definitions.
uint32_t BSP_GetVersion(void)
This method returns the STM32F4 DISCO BSP Driver revision.
void BSP_LED_DeInit(Led_TypeDef Led)
DeInit LEDs.
DISCO_Status_TypeDef
DISCO_Status_TypeDef STM32F769I_DISCO board Status return possible values.
void BSP_PB_DeInit(Button_TypeDef Button)
Push Button DeInit.
ButtonMode_TypeDef
ButtonMode_TypeDef STM32F769I_DISCOVERY board Buttons Modes definitions.
void BSP_LED_Toggle(Led_TypeDef Led)
Toggles the selected LED.
void BSP_PB_Init(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
Configures Button GPIO and EXTI Line.
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.
void BSP_LED_Off(Led_TypeDef Led)
Turns selected LED Off.
This file contains all the functions prototypes for the HAL module driver.