Macros | Enumerations | Functions | Variables
stm32h747i_discovery.h File Reference

This file contains definitions for STM32H747I_DISCO: LEDs push-buttons COM ports hardware resources. More...

#include "stm32h747i_discovery_conf.h"
#include "stm32h747i_discovery_errno.h"
Include dependency graph for stm32h747i_discovery.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUTTON_PRESSED   1U
 
#define BUTTON_RELEASED   0U
 
#define BUTTON_WAKEUP_EXTI_IRQn   EXTI15_10_IRQn
 
#define BUTTON_WAKEUP_EXTI_LINE   EXTI_LINE_13
 
#define BUTTON_WAKEUP_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
 
#define BUTTON_WAKEUP_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
 
#define BUTTON_WAKEUP_GPIO_PORT   GPIOC
 
#define BUTTON_WAKEUP_PIN   GPIO_PIN_13
 Wakeup push-button. More...
 
#define JOY1_DOWN_EXTI_IRQn   EXTI3_IRQn
 
#define JOY1_DOWN_EXTI_LINE   EXTI_LINE_3
 
#define JOY1_DOWN_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define JOY1_DOWN_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define JOY1_DOWN_GPIO_PORT   GPIOK
 
#define JOY1_DOWN_PIN   GPIO_PIN_3
 
#define JOY1_LEFT_EXTI_IRQn   EXTI4_IRQn
 
#define JOY1_LEFT_EXTI_LINE   EXTI_LINE_4
 
#define JOY1_LEFT_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define JOY1_LEFT_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define JOY1_LEFT_GPIO_PORT   GPIOK
 
#define JOY1_LEFT_PIN   GPIO_PIN_4
 
#define JOY1_RIGHT_EXTI_IRQn   EXTI9_5_IRQn
 
#define JOY1_RIGHT_EXTI_LINE   EXTI_LINE_5
 
#define JOY1_RIGHT_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define JOY1_RIGHT_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define JOY1_RIGHT_GPIO_PORT   GPIOK
 
#define JOY1_RIGHT_PIN   GPIO_PIN_5
 
#define JOY1_SEL_EXTI_IRQn   EXTI2_IRQn
 
#define JOY1_SEL_EXTI_LINE   EXTI_LINE_2
 
#define JOY1_SEL_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define JOY1_SEL_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define JOY1_SEL_GPIO_PORT   GPIOK
 
#define JOY1_SEL_PIN   GPIO_PIN_2
 
#define JOY1_UP_EXTI_IRQn   EXTI9_5_IRQn
 
#define JOY1_UP_EXTI_LINE   EXTI_LINE_6
 
#define JOY1_UP_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOK_CLK_DISABLE()
 
#define JOY1_UP_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOK_CLK_ENABLE()
 
#define JOY1_UP_GPIO_PORT   GPIOK
 
#define JOY1_UP_PIN   GPIO_PIN_6
 
#define JOY_KEY_NUMBER   5U
 
#define LED1_GPIO_PORT   GPIOI
 
#define LED1_PIN   GPIO_PIN_12
 
#define LED2_GPIO_PORT   GPIOI
 
#define LED2_PIN   GPIO_PIN_13
 
#define LED3_GPIO_PORT   GPIOI
 
#define LED3_PIN   GPIO_PIN_14
 
#define LED4_GPIO_PORT   GPIOI
 
#define LED4_PIN   GPIO_PIN_15
 
#define LEDx_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOI_CLK_DISABLE()
 
#define LEDx_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOI_CLK_ENABLE()
 
#define STM32H747I_DISCO_BSP_BOARD_ID   "MB12481D";
 
#define STM32H747I_DISCO_BSP_BOARD_NAME   "STM32H747I-DISCO";
 
#define STM32H747I_DISCO_BSP_VERSION
 
#define STM32H747I_DISCO_BSP_VERSION_MAIN   (0x03)
 STM32H747I Discovery BSP Driver version number V3.1.0. More...
 
#define STM32H747I_DISCO_BSP_VERSION_RC   (0x00)
 
#define STM32H747I_DISCO_BSP_VERSION_SUB1   (0x01)
 
#define STM32H747I_DISCO_BSP_VERSION_SUB2   (0x00)
 
#define USE_STM32H747I_DISCO
 Define for STM32H747I_DISCO board. More...
 

Enumerations

enum  Button_TypeDef {
  BUTTON_KEY = 0, BUTTON_KEY = 0, BUTTON_WAKEUP = 0, BUTTON_WAKEUP = 0,
  BUTTON_WAKEUP = 0U, BUTTONn
}
 
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
}
 
enum  JOY_TypeDef { JOY1 = 0U, JOYn }
 
enum  JOYMode_TypeDef { JOY_MODE_GPIO = 0U, JOY_MODE_EXTI = 1U }
 
enum  JOYPin_TypeDef {
  JOY_NONE = 0x00U, JOY_SEL = 0x01U, JOY_DOWN = 0x02U, JOY_LEFT = 0x04U,
  JOY_RIGHT = 0x08U, JOY_UP = 0x10U, JOY_ALL = 0x1FU
}
 
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
}
 

Functions

const uint8_t * BSP_GetBoardID (void)
 This method returns the board ID. More...
 
const uint8_t * BSP_GetBoardName (void)
 This method returns the board name. More...
 
int32_t BSP_GetVersion (void)
 This method returns the STM32H747I DISCO BSP Driver revision. More...
 
__weak void BSP_JOY_Callback (JOY_TypeDef JOY, uint32_t JoyPin)
 BSP Joystick Callback. More...
 
int32_t BSP_JOY_DeInit (JOY_TypeDef JOY, JOYPin_TypeDef JoyPins)
 DeInit joystick GPIOs. More...
 
int32_t BSP_JOY_GetState (JOY_TypeDef JOY, uint32_t JoyPin)
 Returns the current joystick status. More...
 
int32_t BSP_JOY_Init (JOY_TypeDef JOY, JOYMode_TypeDef JoyMode, JOYPin_TypeDef JoyPins)
 Configures joystick GPIO and EXTI modes. More...
 
void BSP_JOY_IRQHandler (JOY_TypeDef JOY, JOYPin_TypeDef JoyPin)
 This function handles JOY keys interrupt request. More...
 
int32_t BSP_LED_DeInit (Led_TypeDef Led)
 DeInit LEDs. More...
 
int32_t BSP_LED_GetState (Led_TypeDef Led)
 Get the selected LED state. More...
 
int32_t BSP_LED_Init (Led_TypeDef Led)
 Configures LED on GPIO. More...
 
int32_t BSP_LED_Off (Led_TypeDef Led)
 Turns selected LED Off. More...
 
int32_t BSP_LED_On (Led_TypeDef Led)
 Turns selected LED On. More...
 
int32_t BSP_LED_Toggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
__weak void BSP_PB_Callback (Button_TypeDef Button)
 BSP Push Button callback. More...
 
int32_t BSP_PB_DeInit (Button_TypeDef Button)
 Push Button DeInit. More...
 
int32_t BSP_PB_GetState (Button_TypeDef Button)
 Returns the selected button state. More...
 
int32_t BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode)
 Configures button GPIO and EXTI Line. More...
 
void BSP_PB_IRQHandler (Button_TypeDef Button)
 This function handles Push-Button interrupt requests. More...
 

Variables

USART_TypeDefCOM_USART []
 
UART_HandleTypeDef hcom_uart []
 
EXTI_HandleTypeDef hpb_exti []
 

Detailed Description

This file contains definitions for STM32H747I_DISCO: LEDs push-buttons COM ports hardware resources.

Author
MCD Application Team
Attention

© Copyright (c) 2018 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32h747i_discovery.h.



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