This file provides a set of firmware functions to manage LEDs, push-buttons, external SDRAM, external QSPI Flash, RF EEPROM, available on STM32469I-Discovery board (MB1189) RevA/B from STMicroelectronics. More...
#include "stm32469i_discovery.h"
Go to the source code of this file.
Macros | |
#define | __STM32469I_DISCOVERY_BSP_VERSION |
#define | __STM32469I_DISCOVERY_BSP_VERSION_MAIN (0x02) |
STM32469I Discovery BSP Driver version number V2.0.1. More... | |
#define | __STM32469I_DISCOVERY_BSP_VERSION_RC (0x00) |
#define | __STM32469I_DISCOVERY_BSP_VERSION_SUB1 (0x00) |
#define | __STM32469I_DISCOVERY_BSP_VERSION_SUB2 (0x01) |
Functions | |
void | AUDIO_IO_DeInit (void) |
DeInitializes Audio low level. More... | |
void | AUDIO_IO_Delay (uint32_t Delay) |
AUDIO Codec delay. More... | |
void | AUDIO_IO_Init (void) |
Initializes Audio low level. More... | |
uint8_t | AUDIO_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. More... | |
void | AUDIO_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. More... | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32469I Discovery 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... | |
void | EEPROM_IO_Init (void) |
Initializes peripherals used by the I2C EEPROM driver. More... | |
HAL_StatusTypeDef | EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. More... | |
HAL_StatusTypeDef | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Read data from I2C EEPROM driver in using DMA channel. More... | |
HAL_StatusTypeDef | EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Write data to I2C EEPROM driver in using DMA channel. More... | |
static void | I2C1_Error (uint8_t Addr) |
Manages error callback by re-initializing I2C. More... | |
static void | I2C1_Init (void) |
Initializes I2C HAL. More... | |
static HAL_StatusTypeDef | I2C1_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. More... | |
static void | I2C1_MspInit (void) |
Initializes I2C MSP. More... | |
static uint8_t | I2C1_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. More... | |
static HAL_StatusTypeDef | I2C1_ReadMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. More... | |
static void | I2C1_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. More... | |
static HAL_StatusTypeDef | I2C1_WriteMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Writes a value in a register of the device through BUS in using DMA mode. More... | |
static void | I2C2_Error (uint8_t Addr) |
static void | I2C2_Init (void) |
Initializes I2C HAL. More... | |
static void | I2C2_MspInit (void) |
Initializes I2C MSP. More... | |
static HAL_StatusTypeDef | I2C2_ReadMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length) |
static HAL_StatusTypeDef | I2C2_WriteMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length) |
void | OTM8009A_IO_Delay (uint32_t Delay) |
OTM8009A delay. More... | |
void | TS_IO_Delay (uint32_t Delay) |
Delay function used in TouchScreen low level driver. More... | |
void | TS_IO_Init (void) |
Initialize I2C communication channel from MCU to TouchScreen (TS). More... | |
uint8_t | TS_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads single data with I2C communication channel from TouchScreen. More... | |
uint16_t | TS_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Reads multiple data with I2C communication channel from TouchScreen. More... | |
void | TS_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes single data with I2C communication channel from MCU to TouchScreen. More... | |
void | TS_IO_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Writes multiple data with I2C communication channel from MCU to TouchScreen. More... | |
Variables | |
const uint16_t | BUTTON_IRQn [BUTTONn] = {WAKEUP_BUTTON_EXTI_IRQn } |
const uint16_t | BUTTON_PIN [BUTTONn] = {WAKEUP_BUTTON_PIN } |
GPIO_TypeDef * | BUTTON_PORT [BUTTONn] = {WAKEUP_BUTTON_GPIO_PORT } |
uint32_t | GPIO_PIN [LEDn] |
GPIO_TypeDef * | GPIO_PORT [LEDn] |
static I2C_HandleTypeDef | heval_I2c1 |
static I2C_HandleTypeDef | heval_I2c2 |
This file provides a set of firmware functions to manage LEDs, push-buttons, external SDRAM, external QSPI Flash, RF EEPROM, available on STM32469I-Discovery board (MB1189) RevA/B from STMicroelectronics.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
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.c.