Go to the documentation of this file.
67 #define __STM32469I_DISCOVERY_BSP_VERSION_MAIN (0x02)
68 #define __STM32469I_DISCOVERY_BSP_VERSION_SUB1 (0x00)
69 #define __STM32469I_DISCOVERY_BSP_VERSION_SUB2 (0x01)
70 #define __STM32469I_DISCOVERY_BSP_VERSION_RC (0x00)
71 #define __STM32469I_DISCOVERY_BSP_VERSION ((__STM32469I_DISCOVERY_BSP_VERSION_MAIN << 24)\
72 |(__STM32469I_DISCOVERY_BSP_VERSION_SUB1 << 16)\
73 |(__STM32469I_DISCOVERY_BSP_VERSION_SUB2 << 8 )\
74 |(__STM32469I_DISCOVERY_BSP_VERSION_RC))
121 #if defined(USE_IOEXPANDER)
122 static void I2C1_Write(uint8_t Addr, uint8_t Reg, uint8_t Value);
123 static uint8_t
I2C1_Read(uint8_t Addr, uint8_t Reg);
149 void TS_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value);
150 uint8_t
TS_IO_Read(uint8_t Addr, uint8_t Reg);
151 uint16_t
TS_IO_ReadMultiple(uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length);
191 gpio_init_structure.
Speed = GPIO_SPEED_HIGH;
325 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
334 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
406 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
448 gpio_init_structure.
Speed = GPIO_SPEED_FAST;
527 static void I2C1_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
772 uint8_t read_value = 0;
#define __STM32469I_DISCOVERY_BSP_VERSION
#define DISCO_I2C1_ER_IRQn
HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
HAL_StatusTypeDef
HAL Status structures definition
#define DISCO_I2C2_FORCE_RESET()
HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c)
void BSP_LED_DeInit(Led_TypeDef Led)
DeInit LEDs.
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
static void I2C2_Error(uint8_t Addr)
GPIO Init structure definition
static void I2C1_MspInit(void)
Initializes I2C MSP.
uint32_t BSP_GetVersion(void)
This method returns the STM32469I Discovery BSP Driver revision.
#define DISCO_I2C2_SCL_SDA_GPIO_CLK_ENABLE()
void AUDIO_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
Writes a single data.
#define DISCO_I2C1_SCL_SDA_GPIO_PORT
#define I2C_ADDRESSINGMODE_7BIT
#define DISCO_I2C1_FORCE_RESET()
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)
static HAL_StatusTypeDef I2C2_ReadMultiple(uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
GPIO_TypeDef * GPIO_PORT[LEDn]
void EEPROM_IO_Init(void)
Initializes peripherals used by the I2C EEPROM driver.
void AUDIO_IO_Delay(uint32_t Delay)
AUDIO Codec delay.
static HAL_StatusTypeDef I2C2_WriteMultiple(uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
#define LED2_GPIO_CLK_ENABLE()
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.
const uint16_t BUTTON_IRQn[BUTTONn]
HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
void HAL_Delay(uint32_t Delay)
This function provides minimum delay (in milliseconds) based on variable incremented.
#define DISCO_I2C2_EV_IRQn
Definition of I2C2 interrupt requests.
GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
static void I2C1_Init(void)
Initializes I2C HAL.
static uint8_t I2C1_Read(uint8_t Addr, uint8_t Reg)
Reads a single data.
static void I2C1_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
Writes a single data.
#define DISCO_I2C2_SCL_SDA_AF
#define I2C_DUALADDRESS_DISABLE
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
static HAL_StatusTypeDef I2C1_IsDeviceReady(uint16_t DevAddress, uint32_t Trials)
Checks if target device is ready for communication.
#define I2C_GENERALCALL_DISABLE
#define I2C_MEMADD_SIZE_16BIT
#define DISCO_I2C1_CLK_ENABLE()
#define DISCO_I2C2_SCL_SDA_GPIO_PORT
const uint16_t BUTTON_PIN[BUTTONn]
static HAL_StatusTypeDef I2C1_WriteMultiple(uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
Writes a value in a register of the device through BUS in using DMA mode.
#define DISCO_I2C2_ER_IRQn
void BSP_LED_Toggle(Led_TypeDef Led)
Toggles the selected LED.
static void I2C1_Error(uint8_t Addr)
Manages error callback by re-initializing I2C.
void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
uint32_t BSP_PB_GetState(Button_TypeDef Button)
Returns the selected button state.
static HAL_StatusTypeDef I2C1_ReadMultiple(uint8_t Addr, uint16_t Reg, uint16_t MemAddSize, uint8_t *Buffer, uint16_t Length)
Reads multiple data.
IRQn_Type
STM32F4XX Interrupt Number Definition, according to the selected device in Library_configuration_sect...
static void I2C2_MspInit(void)
Initializes I2C MSP.
#define DISCO_I2C1_SCL_SDA_AF
void BSP_LED_On(Led_TypeDef Led)
Turns selected LED On.
uint8_t AUDIO_IO_Read(uint8_t Addr, uint8_t Reg)
Reads a single data.
void BSP_LED_Off(Led_TypeDef Led)
Turns selected LED Off.
#define I2C_MEMADD_SIZE_8BIT
#define I2C2_SCL_FREQ_KHZ
I2C2 clock speed configuration (in Hz) WARNING: Make sure that this define is not already declared in...
#define DISCO_I2C2_CLK_ENABLE()
HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout)
#define LED1_GPIO_CLK_ENABLE()
HAL_StatusTypeDef EEPROM_IO_IsDeviceReady(uint16_t DevAddress, uint32_t Trials)
Checks if target device is ready for communication.
void OTM8009A_IO_Delay(uint32_t Delay)
OTM8009A delay.
#define I2C1_SCL_FREQ_KHZ
I2C clock speed configuration (in Hz) WARNING: Make sure that this define is not already declared in ...
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.
void TS_IO_Delay(uint32_t Delay)
Delay function used in TouchScreen low level driver.
#define DISCO_I2C1_SCL_SDA_GPIO_CLK_ENABLE()
#define DISCO_I2C1_SCL_PIN
Definition for I2C1 Pins.
#define DISCO_I2C2_RELEASE_RESET()
static void I2C2_Init(void)
Initializes I2C HAL.
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.
#define GPIO_MODE_IT_RISING
void TS_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value)
Writes single data with I2C communication channel from MCU to TouchScreen.
void BSP_PB_DeInit(Button_TypeDef Button)
Push Button DeInit.
#define DISCO_I2C1_RELEASE_RESET()
#define DISCO_I2C2_SDA_PIN
#define DISCO_I2C1_EV_IRQn
Definition of I2C interrupt requests.
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
#define DISCO_I2C1_SDA_PIN
#define GPIO_MODE_OUTPUT_PP
HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
#define I2C_NOSTRETCH_DISABLE
void AUDIO_IO_Init(void)
Initializes Audio low level.
void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.
static I2C_HandleTypeDef heval_I2c2
#define LED3_GPIO_CLK_ENABLE()
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.
void AUDIO_IO_DeInit(void)
DeInitializes Audio low level.
static I2C_HandleTypeDef heval_I2c1
HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c)
uint8_t TS_IO_Read(uint8_t Addr, uint8_t Reg)
Reads single data with I2C communication channel from TouchScreen.
void BSP_PB_Init(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
Configures button GPIO and EXTI Line.
GPIO_TypeDef * BUTTON_PORT[BUTTONn]
void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
This file contains definitions for STM32469I-Discovery LEDs, push-buttons hardware resources.
void TS_IO_Init(void)
Initialize I2C communication channel from MCU to TouchScreen (TS).
#define DISCO_I2C2_SCL_PIN
Definition for I2C2 Pins.
#define LED4_GPIO_CLK_ENABLE()