Macros | Enumerations | Functions
stm32469i_discovery.h File Reference

This file contains definitions for STM32469I-Discovery LEDs, push-buttons hardware resources. More...

#include "stm32f4xx_hal.h"
Include dependency graph for stm32469i_discovery.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AUDIO_I2C_ADDRESS   ((uint16_t)0x94)
 Audio I2C Slave address. More...
 
#define AUDIO_INT_PIN   GPIO_PIN_7
 OTG_FS1 OVER_CURRENT and POWER_SWITCH Pins definition. More...
 
#define AUDIO_INT_PORT   GPIOB
 
#define AUDIO_INT_PORT_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define BUTTON_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
 
#define BUTTON_USER   BUTTON_WAKEUP
 
#define BUTTONn   ((uint8_t)1)
 
#define DISCO_DMAx_CLK_ENABLE()   __HAL_RCC_DMA1_CLK_ENABLE()
 
#define DISCO_I2C1   I2C1
 User can use this section to tailor I2C1/I2C1 instance used and associated resources. Definition for I2C1 clock resources. More...
 
#define DISCO_I2C1_CLK_ENABLE()   __HAL_RCC_I2C1_CLK_ENABLE()
 
#define DISCO_I2C1_ER_IRQn   I2C1_ER_IRQn
 
#define DISCO_I2C1_EV_IRQn   I2C1_EV_IRQn
 Definition of I2C interrupt requests. More...
 
#define DISCO_I2C1_FORCE_RESET()   __HAL_RCC_I2C1_FORCE_RESET()
 
#define DISCO_I2C1_RELEASE_RESET()   __HAL_RCC_I2C1_RELEASE_RESET()
 
#define DISCO_I2C1_SCL_PIN   GPIO_PIN_8
 Definition for I2C1 Pins. More...
 
#define DISCO_I2C1_SCL_SDA_AF   GPIO_AF4_I2C1
 
#define DISCO_I2C1_SCL_SDA_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define DISCO_I2C1_SCL_SDA_GPIO_PORT   GPIOB
 
#define DISCO_I2C1_SDA_PIN   GPIO_PIN_9
 
#define DISCO_I2C2   I2C2
 User can use this section to tailor I2C2/I2C2 instance used and associated resources (audio codec). Definition for I2C2 clock resources. More...
 
#define DISCO_I2C2_CLK_ENABLE()   __HAL_RCC_I2C2_CLK_ENABLE()
 
#define DISCO_I2C2_ER_IRQn   I2C2_ER_IRQn
 
#define DISCO_I2C2_EV_IRQn   I2C2_EV_IRQn
 Definition of I2C2 interrupt requests. More...
 
#define DISCO_I2C2_FORCE_RESET()   __HAL_RCC_I2C2_FORCE_RESET()
 
#define DISCO_I2C2_RELEASE_RESET()   __HAL_RCC_I2C2_RELEASE_RESET()
 
#define DISCO_I2C2_SCL_PIN   GPIO_PIN_4
 Definition for I2C2 Pins. More...
 
#define DISCO_I2C2_SCL_SDA_AF   GPIO_AF4_I2C2
 
#define DISCO_I2C2_SCL_SDA_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOH_CLK_ENABLE()
 
#define DISCO_I2C2_SCL_SDA_GPIO_PORT   GPIOH
 
#define DISCO_I2C2_SDA_PIN   GPIO_PIN_5
 
#define EEPROM_I2C_ADDRESS_A01   ((uint16_t)0xA0)
 EEPROM I2C Slave address 1. More...
 
#define EEPROM_I2C_ADDRESS_A02   ((uint16_t)0xA6)
 EEPROM I2C Slave address 2. More...
 
#define I2C1_SCL_FREQ_KHZ   400000
 I2C clock speed configuration (in Hz) WARNING: Make sure that this define is not already declared in other files It can be used in parallel by other modules. More...
 
#define I2C2_SCL_FREQ_KHZ   100000
 I2C2 clock speed configuration (in Hz) WARNING: Make sure that this define is not already declared in other files It can be used in parallel by other modules. More...
 
#define LED1_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOG_CLK_DISABLE()
 
#define LED1_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOG_CLK_ENABLE()
 
#define LED1_GPIO_PORT   ((GPIO_TypeDef*)GPIOG)
 
#define LED1_PIN   ((uint32_t)GPIO_PIN_6)
 
#define LED2_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOD_CLK_DISABLE()
 
#define LED2_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOD_CLK_ENABLE()
 
#define LED2_GPIO_PORT   ((GPIO_TypeDef*)GPIOD)
 
#define LED2_PIN   ((uint32_t)GPIO_PIN_4)
 
#define LED3_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOD_CLK_DISABLE()
 
#define LED3_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOD_CLK_ENABLE()
 
#define LED3_GPIO_PORT   ((GPIO_TypeDef*)GPIOD)
 
#define LED3_PIN   ((uint32_t)GPIO_PIN_5)
 
#define LED4_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define LED4_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define LED4_GPIO_PORT   ((GPIO_TypeDef*)GPIOK)
 
#define LED4_PIN   ((uint32_t)GPIO_PIN_3)
 
#define LEDn   ((uint8_t)4)
 
#define OTG_FS1_OVER_CURRENT_PIN   GPIO_PIN_7
 
#define OTG_FS1_OVER_CURRENT_PORT   GPIOB
 
#define OTG_FS1_OVER_CURRENT_PORT_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define OTG_FS1_POWER_SWITCH_PIN   GPIO_PIN_2
 
#define OTG_FS1_POWER_SWITCH_PORT   GPIOB
 
#define OTG_FS1_POWER_SWITCH_PORT_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
 
#define SD_DETECT_EXTI_IRQn   EXTI2_IRQn
 
#define SD_DETECT_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOG_CLK_DISABLE()
 
#define SD_DETECT_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOG_CLK_ENABLE()
 
#define SD_DETECT_GPIO_PORT   ((GPIO_TypeDef*)GPIOG)
 
#define SD_DETECT_PIN   ((uint32_t)GPIO_PIN_2)
 SD-detect signal. More...
 
#define TS_I2C_ADDRESS   ((uint16_t)0x54)
 TouchScreen FT6206 Slave I2C address 1. More...
 
#define TS_I2C_ADDRESS_A02   ((uint16_t)0x70)
 TouchScreen FT6336G Slave I2C address 2. More...
 
#define TS_INT_EXTI_IRQn   EXTI9_5_IRQn
 
#define TS_INT_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOJ_CLK_DISABLE()
 
#define TS_INT_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOJ_CLK_ENABLE()
 
#define TS_INT_GPIO_PORT   ((GPIO_TypeDef*)GPIOJ)
 
#define TS_INT_PIN   ((uint32_t)GPIO_PIN_5)
 TS_INT signal from TouchScreen when it is configured in interrupt mode. More...
 
#define USER_BUTTON_EXTI_IRQn   WAKEUP_BUTTON_EXTI_IRQn
 
#define USER_BUTTON_GPIO_CLK_DISABLE()   WAKEUP_BUTTON_GPIO_CLK_DISABLE()
 
#define USER_BUTTON_GPIO_CLK_ENABLE()   WAKEUP_BUTTON_GPIO_CLK_ENABLE()
 
#define USER_BUTTON_GPIO_PORT   WAKEUP_BUTTON_GPIO_PORT
 
#define USER_BUTTON_PIN   WAKEUP_BUTTON_PIN
 
#define WAKEUP_BUTTON_EXTI_IRQn   EXTI0_IRQn
 
#define WAKEUP_BUTTON_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
 
#define WAKEUP_BUTTON_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
 
#define WAKEUP_BUTTON_GPIO_PORT   GPIOA
 
#define WAKEUP_BUTTON_PIN   GPIO_PIN_0
 Wakeup push-button. More...
 

Enumerations

enum  Button_TypeDef {
  BUTTON_KEY = 0, BUTTON_KEY = 0, BUTTON_WAKEUP = 0, BUTTON_WAKEUP = 0,
  BUTTON_WAKEUP = 0U, BUTTONn
}
 Button_TypeDef STM32469I_Discovery board Buttons definitions. More...
 
enum  ButtonMode_TypeDef {
  BUTTON_MODE_GPIO = 0, BUTTON_MODE_EXTI = 1, BUTTON_MODE_GPIO = 0, BUTTON_MODE_EXTI = 1,
  BUTTON_MODE_GPIO = 0, BUTTON_MODE_EXTI = 1, BUTTON_MODE_GPIO = 0, BUTTON_MODE_EXTI = 1,
  BUTTON_MODE_GPIO = 0U, BUTTON_MODE_EXTI = 1U
}
 ButtonMode_TypeDef STM32469I_Discovery board Buttons Modes definitions. More...
 
enum  ButtonValue_TypeDef { PB_SET = 0, PB_RESET = !PB_SET, PB_SET = 0, PB_RESET = !PB_SET }
 
enum  DISCO_Status_TypeDef { DISCO_OK = 0, DISCO_ERROR = 1, DISCO_OK = 0, DISCO_ERROR = 1 }
 DISCO_Status_TypeDef STM32469I_DISCO board Status return possible values. More...
 
enum  Led_TypeDef {
  LED4 = 0, LED3 = 1, LED5 = 2, LED6 = 3,
  LED4 = 0, LED3 = 1, LED5 = 2, LED6 = 3,
  LED1 = 0, LED_GREEN = LED1, LED2 = 1, LED_ORANGE = LED2,
  LED3 = 2, LED_RED = LED3, LED4 = 3, LED_BLUE = LED4,
  LED1 = 0, LED_RED = LED1, LED2 = 1, LED_GREEN = LED2,
  LED1 = 0U, LED_GREEN = LED1, LED2 = 1U, LED_ORANGE = LED2,
  LED3 = 2U, LED_RED = LED3, LED4 = 3U, LED_BLUE = LED4,
  LEDn
}
 Led_TypeDef STM32469I_Discovery board leds definitions. More...
 

Functions

uint32_t BSP_GetVersion (void)
 This method returns the STM32F4 DISCO BSP Driver revision. More...
 
void BSP_LED_DeInit (Led_TypeDef Led)
 DeInit LEDs. More...
 
void BSP_LED_Init (Led_TypeDef Led)
 Configures LED GPIO. More...
 
void BSP_LED_Off (Led_TypeDef Led)
 Turns selected LED Off. More...
 
void BSP_LED_On (Led_TypeDef Led)
 Turns selected LED On. More...
 
void BSP_LED_Toggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
void BSP_PB_DeInit (Button_TypeDef Button)
 Push Button DeInit. More...
 
uint32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected Button state. More...
 
void BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
 Configures Button GPIO and EXTI Line. More...
 

Detailed Description

This file contains definitions for STM32469I-Discovery LEDs, push-buttons hardware resources.

Author
MCD Application Team
Attention

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32469i_discovery.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:00