Go to the documentation of this file.
38 #ifndef __STM32469I_DISCOVERY_H
39 #define __STM32469I_DISCOVERY_H
47 #include "stm32f4xx_hal.h"
89 #define BUTTON_USER BUTTON_WAKEUP
138 #define LEDn ((uint8_t)4)
142 #define LED1_GPIO_PORT ((GPIO_TypeDef*)GPIOG)
143 #define LED2_GPIO_PORT ((GPIO_TypeDef*)GPIOD)
144 #define LED3_GPIO_PORT ((GPIO_TypeDef*)GPIOD)
145 #define LED4_GPIO_PORT ((GPIO_TypeDef*)GPIOK)
147 #define LED1_GPIO_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE()
148 #define LED1_GPIO_CLK_DISABLE() __HAL_RCC_GPIOG_CLK_DISABLE()
149 #define LED2_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE()
150 #define LED2_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE()
151 #define LED3_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE()
152 #define LED3_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE()
153 #define LED4_GPIO_CLK_ENABLE() __HAL_RCC_GPIOK_CLK_ENABLE()
154 #define LED4_GPIO_CLK_DISABLE() __HAL_RCC_GPIOK_CLK_DISABLE()
156 #define LED1_PIN ((uint32_t)GPIO_PIN_6)
157 #define LED2_PIN ((uint32_t)GPIO_PIN_4)
158 #define LED3_PIN ((uint32_t)GPIO_PIN_5)
159 #define LED4_PIN ((uint32_t)GPIO_PIN_3)
168 #define BUTTONn ((uint8_t)1)
173 #define WAKEUP_BUTTON_PIN GPIO_PIN_0
174 #define WAKEUP_BUTTON_GPIO_PORT GPIOA
175 #define WAKEUP_BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE()
176 #define WAKEUP_BUTTON_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE()
177 #define WAKEUP_BUTTON_EXTI_IRQn EXTI0_IRQn
180 #define USER_BUTTON_PIN WAKEUP_BUTTON_PIN
181 #define USER_BUTTON_GPIO_PORT WAKEUP_BUTTON_GPIO_PORT
182 #define USER_BUTTON_GPIO_CLK_ENABLE() WAKEUP_BUTTON_GPIO_CLK_ENABLE()
183 #define USER_BUTTON_GPIO_CLK_DISABLE() WAKEUP_BUTTON_GPIO_CLK_DISABLE()
184 #define USER_BUTTON_EXTI_IRQn WAKEUP_BUTTON_EXTI_IRQn
186 #define BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE()
195 #define AUDIO_INT_PIN GPIO_PIN_7
196 #define AUDIO_INT_PORT GPIOB
197 #define AUDIO_INT_PORT_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
199 #define OTG_FS1_OVER_CURRENT_PIN GPIO_PIN_7
200 #define OTG_FS1_OVER_CURRENT_PORT GPIOB
201 #define OTG_FS1_OVER_CURRENT_PORT_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
203 #define OTG_FS1_POWER_SWITCH_PIN GPIO_PIN_2
204 #define OTG_FS1_POWER_SWITCH_PORT GPIOB
205 #define OTG_FS1_POWER_SWITCH_PORT_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
210 #define SD_DETECT_PIN ((uint32_t)GPIO_PIN_2)
211 #define SD_DETECT_GPIO_PORT ((GPIO_TypeDef*)GPIOG)
212 #define SD_DETECT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOG_CLK_ENABLE()
213 #define SD_DETECT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOG_CLK_DISABLE()
214 #define SD_DETECT_EXTI_IRQn EXTI2_IRQn
219 #define TS_INT_PIN ((uint32_t)GPIO_PIN_5)
220 #define TS_INT_GPIO_PORT ((GPIO_TypeDef*)GPIOJ)
221 #define TS_INT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOJ_CLK_ENABLE()
222 #define TS_INT_GPIO_CLK_DISABLE() __HAL_RCC_GPIOJ_CLK_DISABLE()
223 #define TS_INT_EXTI_IRQn EXTI9_5_IRQn
228 #define TS_I2C_ADDRESS ((uint16_t)0x54)
233 #define TS_I2C_ADDRESS_A02 ((uint16_t)0x70)
239 #define AUDIO_I2C_ADDRESS ((uint16_t)0x94)
244 #define EEPROM_I2C_ADDRESS_A01 ((uint16_t)0xA0)
249 #define EEPROM_I2C_ADDRESS_A02 ((uint16_t)0xA6)
257 #ifndef I2C1_SCL_FREQ_KHZ
258 #define I2C1_SCL_FREQ_KHZ 400000
266 #define DISCO_I2C1 I2C1
267 #define DISCO_I2C1_CLK_ENABLE() __HAL_RCC_I2C1_CLK_ENABLE()
268 #define DISCO_DMAx_CLK_ENABLE() __HAL_RCC_DMA1_CLK_ENABLE()
269 #define DISCO_I2C1_SCL_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE()
271 #define DISCO_I2C1_FORCE_RESET() __HAL_RCC_I2C1_FORCE_RESET()
272 #define DISCO_I2C1_RELEASE_RESET() __HAL_RCC_I2C1_RELEASE_RESET()
276 #define DISCO_I2C1_SCL_PIN GPIO_PIN_8
277 #define DISCO_I2C1_SCL_SDA_GPIO_PORT GPIOB
278 #define DISCO_I2C1_SCL_SDA_AF GPIO_AF4_I2C1
279 #define DISCO_I2C1_SDA_PIN GPIO_PIN_9
283 #define DISCO_I2C1_EV_IRQn I2C1_EV_IRQn
284 #define DISCO_I2C1_ER_IRQn I2C1_ER_IRQn
294 #ifndef I2C2_SCL_FREQ_KHZ
295 #define I2C2_SCL_FREQ_KHZ 100000
303 #define DISCO_I2C2 I2C2
304 #define DISCO_I2C2_CLK_ENABLE() __HAL_RCC_I2C2_CLK_ENABLE()
305 #define DISCO_I2C2_SCL_SDA_GPIO_CLK_ENABLE() __HAL_RCC_GPIOH_CLK_ENABLE()
307 #define DISCO_I2C2_FORCE_RESET() __HAL_RCC_I2C2_FORCE_RESET()
308 #define DISCO_I2C2_RELEASE_RESET() __HAL_RCC_I2C2_RELEASE_RESET()
312 #define DISCO_I2C2_SCL_PIN GPIO_PIN_4
313 #define DISCO_I2C2_SCL_SDA_GPIO_PORT GPIOH
314 #define DISCO_I2C2_SCL_SDA_AF GPIO_AF4_I2C2
315 #define DISCO_I2C2_SDA_PIN GPIO_PIN_5
319 #define DISCO_I2C2_EV_IRQn I2C2_EV_IRQn
320 #define DISCO_I2C2_ER_IRQn I2C2_ER_IRQn
void BSP_PB_Init(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
Configures Button GPIO and EXTI Line.
uint32_t BSP_GetVersion(void)
This method returns the STM32F4 DISCO BSP Driver revision.
void BSP_LED_DeInit(Led_TypeDef Led)
DeInit LEDs.
ButtonMode_TypeDef
ButtonMode_TypeDef STM32469I_Discovery board Buttons Modes definitions.
Led_TypeDef
Led_TypeDef STM32469I_Discovery board leds definitions.
void BSP_LED_Off(Led_TypeDef Led)
Turns selected LED Off.
void BSP_LED_Toggle(Led_TypeDef Led)
Toggles the selected LED.
uint32_t BSP_PB_GetState(Button_TypeDef Button)
Returns the selected Button state.
Button_TypeDef
Button_TypeDef STM32469I_Discovery board Buttons definitions.
DISCO_Status_TypeDef
DISCO_Status_TypeDef STM32469I_DISCO board Status return possible values.
void BSP_LED_On(Led_TypeDef Led)
Turns selected LED On.
void BSP_PB_DeInit(Button_TypeDef Button)
Push Button DeInit.
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.